Bot API 6.1 (June 20, 2022)
See original GitHub issueBot API 6.1
Media in Descriptions
- Added support for photos and videos in the ‘What can this bot do?’ section (shown on the bot’s start screen). Use BotFather to set up media.
Web App Improvements
- Added the fields
version
,headerColor
,backgroundColor
,BackButton
,HapticFeedback
and the methodsisVersionAtLeast
,setHeaderColor
,setBackgroundColor
,openLink
,openTelegramLink
,openInvoice
to the classWebApp
. - Added the field
secondary_bg_color
to the classThemeParams
. - Added the method
offClick
to the classMainButton
. - Added the fields
chat
,can_send_after
to the classWebAppInitData
. - Added the events
backButtonClicked
,settingsButtonClicked
,invoiceClosed
.
Join Requests & Payments
- Added the fields
join_to_send_messages
andjoin_by_request
to the classChat
. - Added the ability to process join requests which were created without an invite link. Bots will receive a “
chat_join_request
” update as usual. - Added the method
createInvoiceLink
to generate an HTTP link for an invoice.
Telegram Premium Support (more info)
- The maximum value of the field
file_size
in the classesAnimation
,Audio
,Document
,Video
,Voice
, andFile
can no longer be stored in a signed 32-bit integer type. This change is necessary to support 4GB files uploaded by premium accounts. - Added the field
is_premium
to the classUser
. - Added the field
premium_animation
to the classSticker
.
Attachment Menu Integration
- Added the field
added_to_attachment_menu
to the classUser
. - Bots integrated in the attachment menu can now be used in groups, supergroups and channels.
- Added support for t.me links that can be used to select the chat in which the attachment menu with the bot will be opened.
Other Changes
- Added the parameter
secret_token
to the methodsetWebhook
. - As previously announced, only HTTPS links are now allowed in
login_url
inline keyboard buttons.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Bot API changelog
2022. December 30, 2022. Bot API 6.4. Added the field is_persistent to the class ReplyKeyboardMarkup, allowing to control ... June 20, 2022. Bot...
Read more >https://raw.githubusercontent.com/atipugin/telegra...
... Implement [Bot API 6.1](https://core.telegram.org/bots/api#june-20-2022) - Implement [Bot API 6.2](https://core.telegram.org/bots/api#august-12-2022) ...
Read more >How check user have tg subscribe premium when start bot ...
Type: True Optional. True, if this user is a Telegram Premium user. This has been added in Bot API 6.1, released on June...
Read more >Telegram-канал "BotNews"
The official source for news about the Telegram Bot API. ... Bot API 6.1. Telegram Premium ... https://core.telegram.org/bots/api-changelog#june-20-2022
Read more >BotNews
The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram. To learn how to create… 154.7K views...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Which link I have to pass to - openInvoice(url[, callback])
May someone give an example of those parameters
I think we may release this as v18.1