BotCommand

class pyrogram.raw.types.BotCommand[source]

Describes a bot command that can be used in a chat

Constructor of BotCommand.

Details:
  • Layer: 229

  • ID: 9852D6D2

Parameters:
  • command (str) – /command name

  • description (str) – Description of the command

  • ephemeral (bool, optional) – N/A

Functions:

This object can be returned by 1 function.

bots.GetBotCommands

Obtain a list of bot commands for the specified bot scope and language code