package telegraml

  1. Overview
  2. Docs

This module is used to deal with information about an individual member of a chat

type status =
  1. | Creator
  2. | Administrator
  3. | Member
  4. | Left
  5. | 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 = {
  1. user : User.user;
  2. status : status;
}

Represents the chat member object (the user itself and their status)

val create : user: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

Read a chat_member out of some JSON

OCaml

Innovation. Community. Security.