sig
type chat_type = Private | Group | Supergroup | Channel
val read_type : string -> Api.Chat.chat_type
type chat = {
id : int;
chat_type : Api.Chat.chat_type;
title : string option;
username : string option;
first_name : string option;
last_name : string option;
}
val create :
id:int ->
chat_type:Api.Chat.chat_type ->
?title:string option ->
?username:string option ->
?first_name:string option ->
?last_name:string option -> unit -> Api.Chat.chat
val read : Yojson.Safe.json -> Api.Chat.chat
end