Telegram Info English
18.1K subscribers
595 photos
78 videos
3 files
1.35K links
This is the English mirror of @tginfo.

Discussion chat: @tginfochaten
Beta channel: @betainfoen
TON: @infotonen
Other languages: @tginfoall
Feedback & Commecrial: @infowritebot
Download Telegram
4GB files support for bots

It was announced on the official Bot API channel that it will no longer be possible to store the value of file_size fields in a signed 32-bit integer type.

This change is necessary to support 4GB files which Telegram Premium users will be able to upload.

The Telegram Info editors remind you that non-updated bots and clients cannot work with files of the new size.

#BotAPI
Bot API was updated to version 6.1

What's new:
— 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.
— 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.
— 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.

See the full changelog for details on the official website.

#update #BotAPI
This media is not supported in your browser
VIEW IN TELEGRAM
Telegram’s Bot Documentation has been completely overhauled

The official messenger news channel announced the completion of the documentation for bot developers.

Newcomers now have an easy way to learn about all the powerful features, and can build a bot from the step-by-step tutorial with examples for popular programming languages.

Experienced developers can explore recent updates and advanced features, ready for 2022 and beyond.

#BotAPI
Bot API was updated to version 6.3

What's new:
— Bots now support Topics in Groups.
— Added the fields is_forum and is_topic_message to Chat and Message respectively.
— Bots can send messages to a topic via the new message_thread_id parameter.
— Added service messages about new, closed and reopened topics, each with an optional field in Message.
— Bots can now create, close, edit and delete topics.
— Added chat member permissions for topic management, see can_manage_topics as a field in all relevant classes and as a parameter in promoteChatMember.

Multiple Usernames and Emoji Status
Multiple Usernames are listed by the active_usernames field in the Chat class.
— Custom user statuses are now shown in the emoji_status_custom_emoji_id field returned from getChat.

See the full changelog for details on the official website.

#update #BotAPI
Bot API was updated to version 6.4

Forums
• Bots can now open, close, edit and toggle the visibility of the General Topic.
• Added support for new service messages, like ForumTopicEdited, GeneralForumTopicHidden and more.
• The method sendChatAction can now send actions to any thread or topic via the message_thread_id parameter.

Spoilers
• Added spoiler detection via the new has_media_spoiler field in the Message class.
• Bots can send media covered by a spoiler animation via the has_spoiler field in sendPhoto, sendVideo and sendAnimation.

Web Apps
• Added a native QR scanner popup, controllable via showScanQrPopup and closeScanQrPopup.
• Web Apps launched from the attachment menu can request clipboard text via readTextFromClipboard.
• Added a platform field, showing which platform the web app is being used on.

General
• Added the is_persistent field, to keep ReplyKeyboards open by default.

See the full changelog for details on the official website.

#update #BotAPI
Bot API has been updated to version 6.5

Chat and User Selection
• Bots can now show a friendly interface that can be used to select any channel, group or user.
• Added the KeyboardButtonRequestUser and KeyboardButtonRequestChat keyboard buttons for private chats.
• Added support for "user_shared" and "chat_shared" service messages, which hold the identifiers of users and chats shared via the buttons.

Improved Permissions
• Added support for granular media permissions by replacing can_send_media_messages in ChatMemberRestricted and ChatPermissions with several separate fields for the respective media type.
• Added the parameter use_independent_chat_permissions to the methods restrictChatMember and setChatPermissions.


• Added the field user_chat_id to the class ChatJoinRequest.

• And more, see the full changelog for details.

#update #BotAPI
Bot API updated to version 6.6

Highlight:
users can now create emoji sets that adapt to app's theme

Localized Descriptions
• Bots now support localized descriptions that are shown based on the user's language.
• Added the methods setMyDescription and setMyShortDescription to set the bot's localized description and short description.
• Added the methods getMyDescription and getMyShortDescription to obtain the bot's description or short description for a given language.

Stickers and Emoji
• Bots can now create custom emoji sticker sets with createNewStickerSet.
• Added support for adaptive custom emoji colors via the needs_repainting parameter in the createNewStickerSet method.
• Added the ability to specify search keywords for stickers added to sticker sets.
• Improved editing options for sticker sets, including changing the title, deleting a pack, editing emoji lists and more.

Visit the official website for the full changelog.

#update #BotAPI
Bot API has been updated to version 6.7

Important changes:
• Now the web application can be opened via a link, inline button or inline mode, not only in private messages, but also in groups. This change allows all developers to create web bots for group chats. Previously, this feature was available only to those bots whose owners paid for the integration in the "Attach" menu. However, adding bots to the "Attach" menu is still possible only for a fee.
• BotFather now has commands for creating links to open web bots, and additional URL parameters can also be passed to them. Link example: t.me/fStikBot/catalog.

Other improvements:
• Added the ability to set different bot names for different user languages using the setMyName method.
• Added the ability to get the current bot name in the specified language as an object of the BotName class using the getMyName method.
• Added the ability to change bot settings from its profile in the official Telegram applications, including the ability to set animated profile pictures.
• Added support for custom emojis for bots with collectible username.

The full list of changes is on the official website.

#update #BotAPI
Bot API was updated to version 6.8

What's new:
• Added the field story to the class Message for messages with forwarded stories. Currently, it holds no information.
• Added the field voter_chat to the class PollAnswer, to contain channel chat voters in Polls. For backward compatibility, the field user in such objects will contain the user 136817688 (@Channel_Bot).
• Added the field emoji_status_expiration_date to the class Chat.
• Added the method unpinAllGeneralForumTopicMessages.
• Increased to 512 characters the maximum length of the startapp parameter in direct Web App links.

See the full changelog for details on the official website.

#update #BotAPI
Bot API was updated to version 6.9

What's new:
• Added the new administrator privileges can_post_stories, can_edit_stories and can_delete_stories to the classes ChatMemberAdministrator and ChatAdministratorRights.
• Added the parameters can_post_stories, can_edit_stories and can_delete_stories to the method promoteChatMember. Currently, bots have no use for these privileges besides assigning them to other administrators.
• Added the ability to set any header color using the setHeaderColor method.
• Added the field CloudStorage and the methods requestWriteAccess, requestContact to the class WebApp.
• Added the Web App events writeAccessRequested, contactRequested.
• Added the fields from_request and from_attachment_menu to the class WriteAccessAllowed.
• Added the fields added_to_attachment_menu, allows_write_to_pm to the class WebAppUser.

See the full changelog for details on the official website.

#update #BotAPI
Bot API was updated to version 7.1

Custom Emoji
Bots can now get the custom emoji sticker set chosen by a group and use any custom emoji from it.

Boosts
Added support for boost_added service messages, about new boosts added to the chat.
Added the field sender_boost_count to the class Message, counting boosts added by the sender that are active on the message send date.

Stories
Bots can now check if admins have the rights to post, edit and delete stories in supergroups.
Added the field reply_to_story to the class Message.

See the full changelog for details on the official website.

#update #BotAPI
Biometrics in Mini Apps

A function named BiometricManager has been discovered in the source code of Telegram Mini Apps tools.

Presumably, this function will allow mini apps to request verification from the messenger to confirm your identity as the device owner. This will enable services to enhance the protection of your data or assets.

The @tginfo editorial team believes that mini apps will not receive any data related to biometrics. The tool will be able to process a response from the Telegram client, which has methods for biometric confirmation.

#BotAPI
Bot API Updated to Version 7.2

Integration with Business Accounts:
• Added the BusinessConnection class and updates about connecting or disconnecting a bot to a business account, represented by the field 'business_connection' in the Update class.
• Added updates about deleting messages in a business account connected to a bot.

Acting on Behalf of Business Accounts:
• Added the field 'business_connection_id' to the Message class.
• Added the field 'sender_business_bot' to the Message class.
• Added the parameter 'business_connection_id' to the sendChatAction method.

Business Account Information:
• Added the classes 'BusinessOpeningHours' and 'BusinessOpeningHoursInterval'.
• Added the field 'business_opening_hours' to the Chat class.

Sticker Sets with Mixed Format:
• Removed the fields 'is_animated' and 'is_video' from the StickerSet class.
• Added the field 'format' to the InputSticker class.
• Removed the parameter 'sticker_format' from the createNewStickerSet method.
• Increased the maximum number of stickers in any set to 120.
• Allowed uploading stickers in WEBM format using SendSticker.

The full list of changes is available on the official website.

#update #BotAPI