Module TelegramApi.ChatMember

module ChatMember: sig .. end
This module is used to deal with information about an individual member of a chat

type status = 
| Creator
| Administrator
| Member
| Left
| Kicked
Represents the user's role in the chat
val status_of_string : string -> status
Extract the status out of a string
type chat_member = {
   user : TelegramApi.User.user;
   status : status;
}
Represents the chat member object (the user itself and their status)
val create : user:TelegramApi.User.user ->
status:status ->
unit -> chat_member
Create a chat_member in a concise manner

Read a chat_member out of some JSON

val read : Yojson.Safe.json -> chat_member