-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Description
The Telegram Bot API got a new update. Changelog is here:
https://core.telegram.org/bots/api-changelog#july-26-2018
New Features:
-
Added support for Telegram Passport. See the official announcement on the blog and the manual for details.
-
Added support for editing the media content of messages: added the method editMessageMedia and new types inputMediaAnimation, [inputMediaAudio]/bots/api(#inputmediaaudio), and inputMediaDocument.
-
Added the field thumb to the Audio object to contain the thumbnail of the album cover to which the music file belongs.
-
Added support for attaching custom thumbnails to uploaded files. For animations, audios, videos and video notes, which are less than 10 MB in size, thumbnails are generated automatically.
-
tg:// URLs now can be used in inline keyboard url buttons and text_link message entities. (No changes needed?)
-
Added the method sendAnimation, which can be used instead of sendDocument to send animations, specifying their duration, width and height. (PR Animation #1172 )
-
Added the field animation to the Message object. For backward compatibility, when this field is set, the document field will be also set. (PR Animation #1172 )
-
Added two new MessageEntity types: cashtag and phone_number.
-
Added support for Foursquare venues: added the new field foursquare_type to the objects Venue, InlineQueryResultVenue and InputVenueMessageContent, and the parameter foursquare_type to the sendVenue method. (PR Adding foursquare_type field to Venue #1170 )
-
You can now create inline mentions of users, who have pressed your bot's callback buttons. (No changes needed?)
-
You can now use the Retry-After response header to configure the delay after which the Bot API will retry the request after an unsuccessful response from a webhook.
-
If a webhook returns the HTTP error 410 Gone for all requests for more than 23 hours successively, it can be automatically removed.
-
Added vCard support when sharing contacts: added the field vcard to the objects Contact, InlineQueryResultContact, InputContactMessageContent and the method sendContact. (PR Add vCard Field to Contact and related #1169 )
This issue can be used as reference for the pull requests.