Information about a bot

Constructors

Properties

Accessors

  • get commands(): RawBotCommand[]
  • List of the bot's registered commands

    Returns RawBotCommand[]

  • get description(): string
  • Returns string

  • get descriptionPhoto(): null | Photo
  • Returns null | Photo

  • get descriptionVideo(): null | Video
  • Returns null | Video

  • get hasPreviewMedia(): boolean
  • Whether the bot has preview medias available

    Returns boolean

  • get id(): number
  • ID of the bot

    Returns number

  • Action to be performed when the bot's menu button is pressed

    Returns null | TypeBotMenuButton

  • get privacyPolicyUrl(): null | string
  • URL of the bot's privacy policy

    Returns null | string