tgram_dnd.actions package

Subpackages

Submodules

tgram_dnd.actions.action module

class tgram_dnd.actions.action.Action(func: Callable = None, kwgs: dict = None, middleware: Callable = None, fill_vars: bool = True)[source]

Bases: object

The base class for all Actions

Parameters:
  • func (Callable, optional) – the function that will be executed

  • kwgs (dict[str, Any], optional) – additonal arguments for func

  • middleware (Callabe, optional) – a function to be executed before the main function run

  • fill_vars (bool, True) – Weither to automatically render vars in kwgs or not, defaults to true

inject(app: App)[source]

Module contents