telegram.ChatMemberRestricted

class telegram.ChatMemberRestricted(*args, **kwargs)[source]

Bases: telegram.ChatMember

Represents a chat member that is under certain restrictions in the chat. Supergroups only.

New in version 13.7.

Parameters
status[source]

The member’s status in the chat, always 'restricted'.

Type

str

user[source]

Information about the user.

Type

telegram.User

is_member[source]

True, if the user is a member of the chat at the moment of the request.

Type

bool

can_change_info[source]

True, if the user can change the chat title, photo and other settings.

Type

bool

can_invite_users[source]

True, if the user can invite new users to the chat.

Type

bool

can_pin_messages[source]

True, if the user is allowed to pin messages; groups and supergroups only.

Type

bool

can_send_messages[source]

True, if the user is allowed to send text messages, contacts, locations and venues.

Type

bool

can_send_media_messages[source]

True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes.

Type

bool

can_send_polls[source]

True, if the user is allowed to send polls.

Type

bool

can_send_other_messages[source]

True, if the user is allowed to send animations, games, stickers and use inline bots.

Type

bool

can_add_web_page_previews[source]

True, if the user is allowed to add web page previews to their messages.

Type

bool

until_date[source]

Date when restrictions will be lifted for this user.

Type

datetime.datetime