ChatMemberRestricted

Raw MD
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

FieldTypeRequiredDescription
statusStringAlwaysThe member's status in the chat, always "restricted"
tagStringOptionalTag of the member
userUserAlwaysInformation about the user
is_memberBooleanAlwaysTrue, if the user is a member of the chat at the moment of the request
can_send_messagesBooleanAlwaysTrue, if the user is allowed to send text messages, rich messages, contacts, giveaways, giveaway winners, invoices, locations and venues
can_send_audiosBooleanAlwaysTrue, if the user is allowed to send audios
can_send_documentsBooleanAlwaysTrue, if the user is allowed to send documents
can_send_photosBooleanAlwaysTrue, if the user is allowed to send photos
can_send_videosBooleanAlwaysTrue, if the user is allowed to send videos
can_send_video_notesBooleanAlwaysTrue, if the user is allowed to send video notes
can_send_voice_notesBooleanAlwaysTrue, if the user is allowed to send voice notes
can_send_pollsBooleanAlwaysTrue, if the user is allowed to send polls and checklists
can_send_other_messagesBooleanAlwaysTrue, if the user is allowed to send animations, games, stickers and use inline bots
can_add_web_page_previewsBooleanAlwaysTrue, if the user is allowed to add web page previews to their messages
can_react_to_messagesBooleanAlwaysTrue, if the user is allowed to react to messages
can_edit_tagBooleanAlwaysTrue, if the user is allowed to edit their own tag
can_change_infoBooleanAlwaysTrue, if the user is allowed to change the chat title, photo and other settings
can_invite_usersBooleanAlwaysTrue, if the user is allowed to invite new users to the chat
can_pin_messagesBooleanAlwaysTrue, if the user is allowed to pin messages
can_manage_topicsBooleanAlwaysTrue, if the user is allowed to create forum topics
until_dateIntegerAlwaysDate 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 .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.