Module TelegramApi.InlineQuery

module InlineQuery: sig .. end
This module is used for InlineQuery bots

type inline_query = {
   id : string;
   from : TelegramApi.User.user;
   query : string;
   offset : string;
}
Represents incoming messages for an InlineQuery bot
val create : id:string ->
from:TelegramApi.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
type chosen_inline_result = {
   result_id : string;
   from : TelegramApi.User.user;
   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