tgram_dnd.conditions package

Submodules

tgram_dnd.conditions.base module

class tgram_dnd.conditions.base.BaseCondition[source]

Bases: object

inject(app: App)[source]

tgram_dnd.conditions.condition module

class tgram_dnd.conditions.condition.Condition(action: Callable | Action, success: Callable | Action = None, fail: Callable | Action = None, stop: bool = False)[source]

Bases: BaseCondition

a condition in its name, is a condition

this is a basic condition just like if-else which takes action as the main condition and it executes the success function if action turned out to be True else it will execute the fail function

Parameters:

Module contents