Bot API has been updated to version 4.9
What's new:
β Added the new field via_bot to the Message object. You can now know which bot was used to send a message.
β Supported video thumbnails for inline GIF and MPEG4 animations.
β Supported the new basketball animation for the random dice. Choose between different animations (dice, darts, basketball) by specifying the emoji parameter in the method sendDice.
core.telegram.org/bots/api#june-4-2020
#update #BotAPI
Translated using Yandex.API
What's new:
β Added the new field via_bot to the Message object. You can now know which bot was used to send a message.
β Supported video thumbnails for inline GIF and MPEG4 animations.
β Supported the new basketball animation for the random dice. Choose between different animations (dice, darts, basketball) by specifying the emoji parameter in the method sendDice.
core.telegram.org/bots/api#june-4-2020
#update #BotAPI
Translated using Yandex.API
Run your own Bot API server
You can run Bot API locally and send the requests to your own server instead of api.telegram.org. If you switch to a local Bot API server, your bot will be able to:
- Download files without a size limit.
- Upload files up to 2000 MB.
- Upload files using their local path and the file URI scheme.
- Use an HTTP URL for the webhook.
- Use any local IP address for the webhook.
- Use any port for the webhook.
- Set max_webhook_connections up to 100000.
- Receive the absolute local path as a value of the file_path field without the need to download the file after a getFile request.
The source code of the Telegram Bot API server is licensed under the Boost Software License.
#BotAPI
You can run Bot API locally and send the requests to your own server instead of api.telegram.org. If you switch to a local Bot API server, your bot will be able to:
- Download files without a size limit.
- Upload files up to 2000 MB.
- Upload files using their local path and the file URI scheme.
- Use an HTTP URL for the webhook.
- Use any local IP address for the webhook.
- Use any port for the webhook.
- Set max_webhook_connections up to 100000.
- Receive the absolute local path as a value of the file_path field without the need to download the file after a getFile request.
The source code of the Telegram Bot API server is licensed under the Boost Software License.
#BotAPI
Transferring ownership of bots
β β β β
Along with the update Bot API to version 5.0, it became possible to transfer ownership of a bot from one account to another.
For transmission:
- Two-factor authentication must be enabled at least 7 days prior to transfer. The password should not change during this time.
- The session from which the transfer takes place must exist for at least 24 hours.
- The user to whom the transfer is carried out must write to the bot and unblock it (if the bot was blacklisted by the user).
The transfer is carried out through the bot @botfather.
#BotAPI
β β β β
Along with the update Bot API to version 5.0, it became possible to transfer ownership of a bot from one account to another.
For transmission:
- Two-factor authentication must be enabled at least 7 days prior to transfer. The password should not change during this time.
- The session from which the transfer takes place must exist for at least 24 hours.
- The user to whom the transfer is carried out must write to the bot and unblock it (if the bot was blacklisted by the user).
The transfer is carried out through the bot @botfather.
#BotAPI
Bot API has been updated to version 5.1
What's new:
β Added updates about member status changes in chats:
β Support for improved invite links.
β Basic info about voice chats.
β And more, read the full changelog.
Warning: After one of the upcoming Bot API updates, user identifiers will become bigger than
core.telegram.org/bots/api-changelog#March-9-2021
#update #BotAPI
What's new:
β Added updates about member status changes in chats:
my_chat_member
and chat_member
.β Support for improved invite links.
β Basic info about voice chats.
β And more, read the full changelog.
Warning: After one of the upcoming Bot API updates, user identifiers will become bigger than
2^31 - 1
and it will be no longer possible to store them in a signed 32-bit integer type. User identifiers will have up to 52 significant bits, so a 64-bit integer or double-precision float type would still be safe for storing them. Please make sure that your code can correctly handle such user identifiers.core.telegram.org/bots/api-changelog#March-9-2021
#update #BotAPI
Bot API was updated to version 5.2
What's new:
- Payments 2.0 support
- Inline mode payments support
- Groups, supergroups, and channels payments support
- Optional tips support for
- Now you can optionally allow paying for forwarded invoices
- Added
- Added scheduled Voice Chat message type
- Fixed mistakes in documentation
Important changes:
β In Bot API v5.3 a one-time change will happen which will update unique identifiers for photos
β Soon in large chats, join messages won't be displayed
Full changelog on the website.
#update #BotAPI
What's new:
- Payments 2.0 support
- Inline mode payments support
- Groups, supergroups, and channels payments support
- Optional tips support for
sendInvoice
method- Now you can optionally allow paying for forwarded invoices
- Added
chat_type
field in inline mode, so a bot can identify from what kind of chat a request comes from- Added scheduled Voice Chat message type
- Fixed mistakes in documentation
Important changes:
β In Bot API v5.3 a one-time change will happen which will update unique identifiers for photos
β Soon in large chats, join messages won't be displayed
Full changelog on the website.
#update #BotAPI
core.telegram.org
Bot API changelog
The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram. To learn how to createβ¦
Bot API was updated to version 5.3
What's new?
Personalized Commands
β Bots can now show lists of commands tailored to specific situations - including localized commands for users with different languages, as well as different commands based on chat type or for specific chats, and special lists of commands for chat admins.
β Added the class BotCommandScope, describing the scope to which bot commands apply.
β Added the parameters scope and language_code to the method setMyCommands to allow bots specify different commands for different chats and users.
β Added the parameters scope and language_code to the method getMyCommands.
β Added the method deleteMyCommands to allow deletion of the bot's commands for the given scope and user language.
β Improved visibility of bot commands in Telegram apps with the new 'Menu' button in chats with bots, read more on the blog.
Custom Placeholders:
β Added the ability to specify a custom input field placeholder in the classes ReplyKeyboardMarkup and ForceReply.
And More:
β Improved documentation of the class ChatMember by splitting it into 6 subclasses.
β Renamed the method kickChatMember to banChatMember. The old method name can still be used.
β Renamed the method getChatMembersCount to getChatMemberCount. The old method name can still be used.
β Values of the field file_unique_id in objects of the type PhotoSize and of the fields small_file_unique_id and big_file_unique_id in objects of the type ChatPhoto were changed.
Full changelog on the website.
#update #BotAPI
What's new?
Personalized Commands
β Bots can now show lists of commands tailored to specific situations - including localized commands for users with different languages, as well as different commands based on chat type or for specific chats, and special lists of commands for chat admins.
β Added the class BotCommandScope, describing the scope to which bot commands apply.
β Added the parameters scope and language_code to the method setMyCommands to allow bots specify different commands for different chats and users.
β Added the parameters scope and language_code to the method getMyCommands.
β Added the method deleteMyCommands to allow deletion of the bot's commands for the given scope and user language.
β Improved visibility of bot commands in Telegram apps with the new 'Menu' button in chats with bots, read more on the blog.
Custom Placeholders:
β Added the ability to specify a custom input field placeholder in the classes ReplyKeyboardMarkup and ForceReply.
And More:
β Improved documentation of the class ChatMember by splitting it into 6 subclasses.
β Renamed the method kickChatMember to banChatMember. The old method name can still be used.
β Renamed the method getChatMembersCount to getChatMemberCount. The old method name can still be used.
β Values of the field file_unique_id in objects of the type PhotoSize and of the fields small_file_unique_id and big_file_unique_id in objects of the type ChatPhoto were changed.
Full changelog on the website.
#update #BotAPI
core.telegram.org
Telegram Bot API
The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram. To learn how to createβ¦
Bot API was updated to version 5.4
What's new:
β Added the the parameter
β Added the fields
β Added the field name to the class
β Added updates about new requests to join the chat, represented by the class
β Added the methods
β Added support for the
Full changelog on the website.
#update #BotAPI
What's new:
β Added the the parameter
creates_join_request
to the methods createChatInviteLink
and editChatInviteLink
for managing chat invite links that create join requests.β Added the fields
creates_join_request
and pending_join_request_count
to the class ChatInviteLink
.β Added the field name to the class
ChatInviteLink
and the parameters name to the methods createChatInviteLink
and editChatInviteLink
for managing invite link names.β Added updates about new requests to join the chat, represented by the class
ChatJoinRequest
and the field chat_join_request
in the Update class. The bot must be an administrator in the chat with the can_invite_users
administrator right to receive these updates.β Added the methods
approveChatJoinRequest
and declineChatJoinRequest
for managing requests to join the chat.β Added support for the
choose_sticker
action in the method sendChatAction
.Full changelog on the website.
#update #BotAPI
Bot API was updated to version 5.5
β Bots can now contact users who sent a join request to a chat where the bot is an admin β even if the user never interacted with the bot before.
β Added support for protected content in groups and channels.
β Added support for users posting as a channel in public groups and channel comments.
β Added support for mentioning users by their ID in inline keyboards.
See the full changelog for details on the official website.
#update #BotAPI
β Bots can now contact users who sent a join request to a chat where the bot is an admin β even if the user never interacted with the bot before.
β Added support for protected content in groups and channels.
β Added support for users posting as a channel in public groups and channel comments.
β Added support for mentioning users by their ID in inline keyboards.
See the full changelog for details on the official website.
#update #BotAPI
Bot API was updated to version 5.6
β Improved support for Protected Content.
β Added the parameter
β Added support for spoiler entities, which will work in Telegram versions released after December 30, 2021. Older clients will display unsupported message.
β Added new MessageEntity type βspoilerβ.
β Added the ability to specify spoiler entities using HTML and MarkdownV2 formatting options.
See the full changelog for details on the official website.
#update #BotAPI
β Improved support for Protected Content.
β Added the parameter
protect_content
to the methods sendMessage, sendPhoto, sendVideo, sendAnimation, sendAudio, sendDocument, sendSticker, sendVideoNote, sendVoice, sendLocation, sendVenue, sendContact, sendPoll, sendDice, sendInvoice, sendGame, sendMediaGroup, copyMessage, forwardMessage to allow sending messages with protected content to any chat.β Added support for spoiler entities, which will work in Telegram versions released after December 30, 2021. Older clients will display unsupported message.
β Added new MessageEntity type βspoilerβ.
β Added the ability to specify spoiler entities using HTML and MarkdownV2 formatting options.
See the full changelog for details on the official website.
#update #BotAPI
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
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
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,
β Bots can now distinguish premium Users and Stickers with the new respective fields
β Added several methods and fields to the class WebApp to handle API version, additional colors, haptic feedback and more.
β Added the events
β 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
β 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
See the full changelog for details on the official website.
#update #BotAPI
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
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
β Bots can send messages to a topic via the new
β 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
Multiple Usernames and Emoji Status
β Multiple Usernames are listed by the
β Custom user statuses are now shown in the
See the full changelog for details on the official website.
#update #BotAPI
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
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
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
β’ 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
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
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