Skip to content
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

[API] Api 5.5 #2808

Closed
7 of 8 tasks
Poolitzer opened this issue Dec 7, 2021 · 2 comments · Fixed by #2809
Closed
7 of 8 tasks

[API] Api 5.5 #2808

Poolitzer opened this issue Dec 7, 2021 · 2 comments · Fixed by #2809

Comments

@Poolitzer
Copy link
Member

Poolitzer commented Dec 7, 2021

Api 5.5 is here. Rejoice.

  • Doc note: Bots are now allowed to contact users who sent a join request to a chat where the bot is an administrator with the can_invite_users administrator right – even if the user never interacted with the bot before.

  • Doc note/potential shortcut: Added support for mentioning users by their ID in inline keyboards. This will only work in Telegram versions released after December 7, 2021. Older clients will display unsupported message.

  • New methods, nedds shortcuts at : Added the methods banChatSenderChat and unbanChatSenderChat for banning and unbanning channel chats in supergroups and channels.

  • Chat addition: Added the field has_private_forwards to the class Chat for private chats, which can be used to check the possibility of mentioning the user by their ID.

  • Chat/Message addition: Added the field has_protected_content to the classes Chat and Message.

  • Message addition: Added the field is_automatic_forward to the class Message.

  • Evaluate if worth adding to channel post/forward method docs: Note: After this update it will become impossible to forward messages from some chats. Use the fields has_protected_content in the classes Message and Chat to check this.

  • Evaluate if worth adding to channel post: Note: After this update users are able to send messages on behalf of channels they own. Bots are expected to use the field sender_chat in the class Message to correctly support such messages. Edit: Decided to not add it.

@Poolitzer
Copy link
Member Author

I already added the first doc note to the JoinRequestClass, is it worth adding to handler/Update class? Or not worth at all? a20e95c

@jk6521
Copy link

jk6521 commented Dec 7, 2021

Eagerly waiting for this feature in PTB.

@harshil21 harshil21 linked a pull request Dec 8, 2021 that will close this issue
16 tasks
@Bibo-Joshi Bibo-Joshi mentioned this issue Dec 10, 2021
16 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants