question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bot API 6.1 (June 20, 2022)

See original GitHub issue

Bot 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 methods isVersionAtLeast, setHeaderColor, setBackgroundColor, openLink, openTelegramLink, openInvoice to the class WebApp.
  • Added the field secondary_bg_color to the class ThemeParams.
  • Added the method offClick to the class MainButton.
  • Added the fields chat, can_send_after to the class WebAppInitData.
  • Added the events backButtonClicked, settingsButtonClicked, invoiceClosed.

Join Requests & Payments

  • Added the fields join_to_send_messages and join_by_request to the class Chat.
  • 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 classes Animation, Audio, Document, Video, Voice, and File 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 class User.
  • Added the field premium_animation to the class Sticker.

Attachment Menu Integration

  • Added the field added_to_attachment_menu to the class User.
  • 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 method setWebhook.
  • As previously announced, only HTTPS links are now allowed in login_url inline keyboard buttons.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
Artem990commented, Aug 1, 2022

Which link I have to pass to - openInvoice(url[, callback])

May someone give an example of those parameters

3reactions
tuscencommented, Jun 21, 2022

I think we may release this as v18.1

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found