Movatterモバイル変換


[0]ホーム

URL:


ContentsMenuExpandLight modeDark modeAuto light/dark, in light modeAuto light/dark, in dark modeSkip to content
python-telegram-bot
v22.2
Logo
python-telegram-bot
v22.2

Reference

Resources

Project

Back to top

BotCommand

classtelegram.BotCommand(command,description,*,api_kwargs=None)[source]

Bases:telegram.TelegramObject

This object represents a bot command.

Objects of this class are comparable in terms of equality. Two objects of this class areconsidered equal, if theircommand anddescription are equal.

Parameters:
  • command (str) – Text of the command;1-32 characters. Can contain only lowercaseEnglish letters, digits and underscores.

  • description (str) – Description of the command;1-256 characters.

command[source]

Text of the command;1-32 characters. Can contain only lowercaseEnglish letters, digits and underscores.

Type:

str

description[source]

Description of the command;1-256 characters.

Type:

str

MAX_COMMAND=32[source]

telegram.constants.BotCommandLimit.MAX_COMMAND

Added in version 20.0.

MAX_DESCRIPTION=256[source]

telegram.constants.BotCommandLimit.MAX_DESCRIPTION

Added in version 20.0.

MIN_COMMAND=1[source]

telegram.constants.BotCommandLimit.MIN_COMMAND

Added in version 20.0.

MIN_DESCRIPTION=1[source]

telegram.constants.BotCommandLimit.MIN_DESCRIPTION

Added in version 20.0.

On this page

[8]ページ先頭

©2009-2025 Movatter.jp