tgram_dnd.blocks package¶
Submodules¶
tgram_dnd.blocks.callback_block module¶
- class tgram_dnd.blocks.callback_block.CallbackBlock(actions: List[Action] | Action | None, filter: Filter | None = None)[source]¶
Bases:
objectthe block that process Callbacks and runs a series of Actions (What Is An Action?)
- Parameters:
actions (Union[List[
tgram_dnd.actions.Action],tgram_dnd.actions.Action]) – the actions that will be executedfilter (tgram.filters.Filter, optional) – filter incoming callbacks, pass Nothing to trigger all updates
tgram_dnd.blocks.message_block module¶
- class tgram_dnd.blocks.message_block.MessageBlock(actions: List[Action] | Action | None, filter: Filter | None = None)[source]¶
Bases:
objectthe block that process Messages and runs a series of Actions (What Is An Action?)
- Parameters:
actions (Union[List[
tgram_dnd.actions.Action],tgram_dnd.actions.Action]) – the actions that will be executedfilter – filter incoming callbacks, pass Nothing to trigger all updates