Bot API 6.1
Telegram Premium
• To support 4GB files uploaded
by premium accounts,
file_size
in most media classes can no longer be stored in a signed 32-bit integer type.
• Bots can now distinguish premium
Users and
Stickers with the new respective fields
is_premium
and
premium_animation
.
Web Apps
• Added several methods and fields to the class
WebApp to handle API version, additional colors, haptic feedback and more.
• Added the events
backButtonClicked
,
settingsButtonClicked
and
invoiceClosed
.
• Updated
ThemeParams,
MainButton and
WebAppInitData with new fields and methods.
Groups, Payments and Attachment Menu
• Bots can now process join requests created without an invite link – they will still receive a
chat_join_request
update.
• HTTP links for invoices can be generated with the new
createInvoiceLink method.
• Bots can now detect when a user added them to their attachment menu via the new
added_to_attachment_menu
field. Integrated bots can now also be used in groups, supergroups and channels.
• Check that your bot's webhook was set by you with the new
secret_token parameter.
• And more, see the full changelog for details:
https://core.telegram.org/bots/api-changelog#june-20-2022Warning: Only HTTPS links are now allowed in
login_url
.