package telegraml

  1. Overview
  2. Docs

This module deals with outgoing sticker messages

type sticker = {
  1. chat_id : int;
  2. sticker : string;
  3. disable_notification : bool;
  4. reply_to_message_id : int option;
  5. reply_markup : ReplyMarkup.reply_markup option;
}

Represents the outgoing sticker message. Note that the sticker field can either be an existing file id or the raw bytes from a file

val create : chat_id:int -> sticker:string -> ?disable_notification:bool -> ?reply_to:int option -> ?reply_markup:ReplyMarkup.reply_markup option -> unit -> sticker

Create a sticker in a concise manner

Prepare a sticker for sending -- used in the case of a file id

val prepare : sticker -> string

Prepare a sticker for sending -- used in the case of a file id

Prepare a sticker for sending -- used in the case of the raw bytes

val prepare_multipart : sticker -> string -> string Lwt.t

Prepare a sticker for sending -- used in the case of the raw bytes

OCaml

Innovation. Community. Security.