BotCommand#

class pyrogram.raw.types.BotCommand#

Describes a bot command that can be used in a chat.

Constructor of BotCommand.

Details:
  • Layer: 158

  • ID: C27AC8C7

Parameters:
  • command (str) – /command name.

  • description (str) – Description of the command.

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.