Options
All
  • Public
  • Public/Protected
  • All
Menu

Restrict Chat Member API Payload

Hierarchy

  • IRestrictChatMemberPayload

Index

Properties

Optional can_add_web_page_previews

can_add_web_page_previews: boolean

Pass True, if the user may add web page previews to their messages, implies can_send_media_messages.

Optional can_send_media_messages

can_send_media_messages: boolean

Pass True, if the user can send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages.

Optional can_send_messages

can_send_messages: boolean

Pass True, if the user can send text messages, contacts, locations and venues.

Optional can_send_other_messages

can_send_other_messages: boolean

Pass True, if the user can send animations, games, stickers and use inline bots, implies can_send_media_messages.

chat_id

chat_id: number | string

Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)

Optional until_date

until_date: number

Date when the user will be unbanned, unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever.

user_id

user_id: number

Unique identifier of the target user.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc