Skip to content

Bot API 6.0 #1501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 23, 2022
Merged

Bot API 6.0 #1501

merged 7 commits into from
Apr 23, 2022

Conversation

coder2020official
Copy link
Collaborator

@coder2020official coder2020official commented Apr 16, 2022

April 16, 2022
Bot API 6.0

  • Added support for Web Apps, see the detailed manual here. (blog announcement)

  • Added the class WebAppInfo and the fields web_app to the classes KeyboardButton and InlineKeyboardButton.

  • Added the class SentWebAppMessage and the method answerWebAppQuery for sending an answer to a Web App query, which originated from an inline button of the 'web_app' type.

  • Added the class WebAppData and the field web_app_data to the class Message.

  • Added the class MenuButton and the methods setChatMenuButton and getChatMenuButton for managing the behavior of the bot's menu button in private chats.

  • Added the class ChatAdministratorRights and the methods setMyDefaultAdministratorRights and getMyDefaultAdministratorRights for managing the bot's default administrator rights.

  • Added support for t.me links that can be used to add the bot to groups and channels as an administrator.

  • Added the field last_synchronization_error_date to the class WebhookInfo.

  • Renamed the field can_manage_voice_chats to can_manage_video_chats in the class ChatMemberAdministrator. The old field will remain temporarily available.

  • Renamed the parameter can_manage_voice_chats to can_manage_video_chats in the method promoteChatMember. The old parameter will remain temporarily available.

  • Renamed the fields voice_chat_scheduled, voice_chat_started, voice_chat_ended, and voice_chat_participants_invited to video_chat_scheduled, video_chat_started, video_chat_ended, and video_chat_participants_invited in the class Message. The old fields will remain temporarily available.

  • Both sync and async

  • Checked documentation

  • Added tests for types

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@coder2020official coder2020official marked this pull request as ready for review April 17, 2022 12:21
@Badiboy Badiboy merged commit cfbbfe8 into eternnoir:master Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants