Forwarded from Telegram Info English
Bot API has been updated to version 4.7
What's new:
— Support for "Animated dice."
— The methods
— The ability to create sets of animated stickers.
— Ability to add and change icons for sticker sets.
core.telegram.org/bots/api#march-30-2020
#update #BotAPI
Translated using Yandex.API
What's new:
— Support for "Animated dice."
— The methods
getMyCommands and setMyCommands to view and edit the list of commands the bot via Bot API. Previously this could only be done through bot @BotFather.— The ability to create sets of animated stickers.
— Ability to add and change icons for sticker sets.
core.telegram.org/bots/api#march-30-2020
#update #BotAPI
Translated using Yandex.API
Forwarded from Telegram Info English (@veewopostbot)
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
Forwarded from Telegram Info English (Antonio Marreti 🚩)
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
Forwarded from Telegram Info English (Antonio Marreti 🚩)
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
Forwarded from Telegram Info English (Azer Sadykhzadeh)
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…
Forwarded from Telegram Info English (Eugene ☕️ 🌚🦠)
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
Forwarded from Telegram Info English (Полян)
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
Forwarded from Telegram Info English (Azer Sadykhzadeh)
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 some 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 some 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
Forwarded from Telegram Info English (Полян)
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