mini_apps.command
- class mini_apps.command.BotCommand(function, trigger, description, hidden)
Bases:
object
Class bot command
- classmethod from_function(func, trigger, description, hidden)
Constructs an instance, filling missing data based on function introspection
- to_data()
Returns the telegram data for the command
- mini_apps.command.bot_command(*args, **kwargs)
Decorator that automatically marks functions as commands
- Parameters:
trigger – Command trigger
description – Command description as shown in the bot menu