StaticGramBot API

ChatMemberRestricted

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

Поля

statusString
The member's status in the chat, always “restricted”
tagStringoptional
Tag of the member
Information about the user
is_memberBoolean
True, if the user is a member of the chat at the moment of the request
True, if the user is allowed to send text messages, rich messages, contacts, giveaways, giveaway winners, invoices, locations and venues
True, if the user is allowed to send audios
True, if the user is allowed to send documents
True, if the user is allowed to send photos
True, if the user is allowed to send videos
True, if the user is allowed to send video notes
True, if the user is allowed to send voice notes
True, if the user is allowed to send polls and checklists
True, if the user is allowed to send animations, games, stickers and use inline bots
True, if the user is allowed to add web page previews to their messages
True, if the user is allowed to react to messages
True, if the user is allowed to edit their own tag
True, if the user is allowed to change the chat title, photo and other settings
True, if the user is allowed to invite new users to the chat
True, if the user is allowed to pin messages
True, if the user is allowed to create forum topics
until_dateInteger
Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever.

Минимальный JSON

JSON
{
  "status": "restricted",
  "user": {
    "id": 1780243423,
    "is_bot": true,
    "first_name": "..."
  },
  "is_member": true,
  "can_send_messages": true,
  "can_send_audios": true,
  "can_send_documents": true,
  "can_send_photos": true,
  "can_send_videos": true,
  "can_send_video_notes": true,
  "can_send_voice_notes": true,
  "can_send_polls": true,
  "can_send_other_messages": true,
  "can_add_web_page_previews": true,
  "can_react_to_messages": true,
  "can_edit_tag": true,
  "can_change_info": true,
  "can_invite_users": true,
  "can_pin_messages": true,
  "can_manage_topics": true,
  "until_date": 1
}

Где используется

Типы

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top