package telegraml

  1. Overview
  2. Docs

Module TelegramApi.UserSource

Sourcetype user = {
  1. id : int;
  2. first_name : string;
  3. last_name : string option;
  4. username : string option;
}

Represents a user profile

Sourceval create : id:int -> first_name:string -> ?last_name:string option -> ?username:string option -> unit -> user

Create a user in a concise manner

Read a user out of some JSON

Read a user out of some JSON