Represents the permissions of a user in a Chat.

Constructors

Properties

Accessors

  • get canAddWebPreviews(): boolean
  • Whether users can use inline bots.

    Implies canSendMedia

    Returns boolean

  • get canChangeInfo(): boolean
  • Whether users can change the chat title, photo and other settings.

    Returns boolean

  • get canInviteUsers(): boolean
  • Whether users can invite other users to the chat

    Returns boolean

  • get canManageTopics(): boolean
  • Whether users can pin messages

    Returns boolean

  • get canPinMessages(): boolean
  • Whether users can pin messages

    Returns boolean

  • get canSendAudios(): boolean
  • Whether users can send audio files.

    Implies canSendMedia

    Returns boolean

  • get canSendFiles(): boolean
  • Whether users can send files.

    Implies canSendMedia

    Returns boolean

  • get canSendGames(): boolean
  • Whether users can send games.

    Implies canSendMedia

    Returns boolean

  • get canSendGifs(): boolean
  • Whether users can send GIFs.

    Implies canSendMedia

    Returns boolean

  • get canSendMedia(): boolean
  • Whether users can send media messages, including documents, photos, videos, video notes and voice notes.

    Implies canSendMessages

    Returns boolean

  • get canSendMessages(): boolean
  • Whether users can send text messages, contacts, locations and venues

    Returns boolean

  • get canSendPhotos(): boolean
  • Whether users can send photos.

    Implies canSendMedia

    Returns boolean

  • get canSendPolls(): boolean
  • Whether users can send polls.

    Implies canSendMessages

    Returns boolean

  • get canSendRoundVideos(): boolean
  • Whether users can send round videos (i.e. video notes).

    Implies canSendMedia

    Returns boolean

  • get canSendStickers(): boolean
  • Whether users can send stickers.

    Implies canSendMedia

    Returns boolean

  • get canSendText(): boolean
  • Whether users can send text messages.

    Implies canSendMessages

    Returns boolean

  • get canSendVideos(): boolean
  • Whether users can send videos.

    Implies canSendMedia

    Returns boolean

  • get canSendVoices(): boolean
  • Whether users can send voice notes.

    Implies canSendMedia

    Returns boolean

  • get canUseInline(): boolean
  • Whether users can use inline bots.

    Implies canSendMedia

    Returns boolean

  • get canViewMessages(): boolean
  • Whether users can view messages

    Returns boolean

  • get untilDate(): null | Date
  • UNIX date until which these permissions are valid, or null if forever.

    For example, represents the time when the restrictions will be lifted from a ChatMember

    Returns null | Date