telegram.ChatMemberRestricted¶
-
class
telegram.
ChatMemberRestricted
(user, is_member=None, can_change_info=None, can_invite_users=None, can_pin_messages=None, can_send_messages=None, can_send_media_messages=None, can_send_polls=None, can_send_other_messages=None, can_add_web_page_previews=None, until_date=None, **_kwargs)¶ Bases:
telegram.chatmember.ChatMember
Represents a chat member that is under certain restrictions in the chat. Supergroups only.
New in version 13.7.
- Parameters
user (
telegram.User
) – Information about the user.is_member (
bool
, optional) –True
, if the user is a member of the chat at the moment of the request.can_change_info (
bool
, optional) –True
, if the user can change the chat title, photo and other settings.can_invite_users (
bool
, optional) –True
, if the user can invite new users to the chat.can_pin_messages (
bool
, optional) –True
, if the user is allowed to pin messages; groups and supergroups only.can_send_messages (
bool
, optional) –True
, if the user is allowed to send text messages, contacts, locations and venues.can_send_media_messages (
bool
, optional) –True
, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes.can_send_polls (
bool
, optional) –True
, if the user is allowed to send polls.can_send_other_messages (
bool
, optional) –True
, if the user is allowed to send animations, games, stickers and use inline bots.can_add_web_page_previews (
bool
, optional) –True
, if the user is allowed to add web page previews to their messages.until_date (
datetime.datetime
, optional) – Date when restrictions will be lifted for this user.
-
status
¶ The member’s status in the chat, always
telegram.ChatMember.RESTRICTED
.- Type
str
-
user
¶ Information about the user.
- Type
-
is_member
¶ Optional.
True
, if the user is a member of the chat at the moment of the request.- Type
bool
-
can_change_info
¶ Optional.
True
, if the user can change the chat title, photo and other settings.- Type
bool
-
can_invite_users
¶ Optional.
True
, if the user can invite new users to the chat.- Type
bool
-
can_pin_messages
¶ Optional.
True
, if the user is allowed to pin messages; groups and supergroups only.- Type
bool
-
can_send_messages
¶ Optional.
True
, if the user is allowed to send text messages, contacts, locations and venues.- Type
bool
-
can_send_media_messages
¶ Optional.
True
, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes.- Type
bool
-
can_send_polls
¶ Optional.
True
, if the user is allowed to send polls.- Type
bool
-
can_send_other_messages
¶ Optional.
True
, if the user is allowed to send animations, games, stickers and use inline bots.- Type
bool
-
can_add_web_page_previews
¶ Optional.
True
, if the user is allowed to add web page previews to their messages.- Type
bool
-
until_date
¶ Optional. Date when restrictions will be lifted for this user.
- Type
datetime.datetime