There are two mutually exclusive ways of receiving updates for your bot — the get Updates method on one hand and Webhooks on the other.
All queries to the Telegram Bot API must be served over HTTPS and need to be presented in this form: The response contains a JSON object, which always has a Boolean field ‘ok’ and may have an optional String field ‘description’ with a human-readable description of the result.Please see our documentation on the feedback collecting for details on how to enable these updates for your bot. Must be greater by one than the highest among the identifiers of previously received updates.By default, updates starting with the earliest unconfirmed update are returned.Regardless of which option you choose, you will receive JSON-serialized Update objects as a result. At most one of the optional parameters can be present in any given update. Update identifiers start from a certain positive number and increase sequentially.This ID becomes especially handy if you’re using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order.If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially..
The result of an inline query that was chosen by a user and sent to their chat partner.The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again.Defaults to options will only work in Telegram versions released after 9 April, 2016. Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard.It can only be found in reply_to_message if someone replies to a very first message in a channel..The group has been migrated to a supergroup with the specified identifier.If ‘ok’ equals true, the request was successful and the result of the query can be found in the ‘result’ field.