ChatMemberRestricted
Represents a chat member that is under certain restrictions in the chat
Represents a chat member that is under certain restrictions in the chat. Supergroups only.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
status | String | Always | The member's status in the chat, always "restricted" |
tag | String | Optional | Tag of the member |
user | User | Always | Information about the user |
is_member | Boolean | Always | True, if the user is a member of the chat at the moment of the request |
can_send_messages | Boolean | Always | True, if the user is allowed to send text messages, rich messages, contacts, giveaways, giveaway winners, invoices, locations and venues |
can_send_audios | Boolean | Always | True, if the user is allowed to send audios |
can_send_documents | Boolean | Always | True, if the user is allowed to send documents |
can_send_photos | Boolean | Always | True, if the user is allowed to send photos |
can_send_videos | Boolean | Always | True, if the user is allowed to send videos |
can_send_video_notes | Boolean | Always | True, if the user is allowed to send video notes |
can_send_voice_notes | Boolean | Always | True, if the user is allowed to send voice notes |
can_send_polls | Boolean | Always | True, if the user is allowed to send polls and checklists |
can_send_other_messages | Boolean | Always | True, if the user is allowed to send animations, games, stickers and use inline bots |
can_add_web_page_previews | Boolean | Always | True, if the user is allowed to add web page previews to their messages |
can_react_to_messages | Boolean | Always | True, if the user is allowed to react to messages |
can_edit_tag | Boolean | Always | True, if the user is allowed to edit their own tag |
can_change_info | Boolean | Always | True, if the user is allowed to change the chat title, photo and other settings |
can_invite_users | Boolean | Always | True, if the user is allowed to invite new users to the chat |
can_pin_messages | Boolean | Always | True, if the user is allowed to pin messages |
can_manage_topics | Boolean | Always | True, if the user is allowed to create forum topics |
until_date | Integer | Always | Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever. |
Botlify Cloud Runtime
Credentials are auto-injected in
Credentials are auto-injected in
.env — always load them with getenv(): BOT_TOKEN, ADMIN_CHAT_ID, BOT_USERNAME. Main database: database.db (SQLite, WAL mode). Runtime errors: error.log. Quick test: send to $ADMIN_CHAT_ID. Full details: Runtime Reference.