- class telegram.ChatPermissions(*args, **kwargs)#
Describes actions that a non-administrator user is allowed to take in a chat.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
Though not stated explicitly in the official docs, Telegram changes not only the permissions that are set, but also sets all the others to
False. However, since not documented, this behaviour may change unbeknown to PTB.
True, if the user is allowed to send text messages, contacts, locations and venues.
True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups.
True, if the user is allowed to pin messages. Ignored in public supergroups.
- classmethod all_permissions()#
New in version 20.0.