package telegraml

  1. Overview
  2. Docs

This module is used for InlineQuery bots

type inline_query = {
  1. id : string;
  2. from : User.user;
  3. query : string;
  4. offset : string;
}

Represents incoming messages for an InlineQuery bot

val create : id:string -> from:User.user -> query:string -> offset:string -> unit -> inline_query

Create an inline_query in a concise manner

Read an inline_query out of some JSON

val read : Yojson.Safe.json -> inline_query

Read an inline_query out of some JSON

type chosen_inline_result = {
  1. result_id : string;
  2. from : User.user;
  3. query : string;
}

Represents the reply to an InlineQuery bot if one is requested

val read_chosen_inline_result : Yojson.Safe.json -> chosen_inline_result

Read a chosen_inline_query out of some JSON

module Out : sig ... end

This module is used to deal with outgoing replies to inline queries for an InlineQuery bot

OCaml

Innovation. Community. Security.