package telegraml

  1. Overview
  2. Docs

This module deals with outgoing contact messages

type contact = {
  1. chat_id : int;
  2. phone_number : string;
  3. first_name : string;
  4. last_name : string option;
  5. disable_notification : bool;
  6. reply_to_message_id : int option;
  7. reply_markup : ReplyMarkup.reply_markup option;
}

Represents the outgoing contact message

val create : chat_id:int -> phone_number:string -> first_name:string -> ?last_name:string option -> ?disable_notification:bool -> ?reply_to:int option -> ?reply_markup:ReplyMarkup.reply_markup option -> unit -> contact

Create a contact in a concise manner

Prepare a contact for sending

val prepare : contact -> string

Prepare a contact for sending

OCaml

Innovation. Community. Security.