Command

class telegram_bot_discussion.command.command.Command[source]

Bases: ABC

Command is base class for implementation handler of Telegram-bot command (like “/start”).

class Meta[source]

Bases: CommandMeta

classmethod action()[source]
Return type:

str

get_title()[source]
Return type:

str

set_title(title)[source]
Return type:

Self

Parameters:

title (str)

abstractmethod async on_call(update, context)[source]

r call command like by /command

Parameters:
  • update (Update)

  • context (CallbackContext)