shipany.bot.contrib.aiogram.renders
shipany.bot.contrib.aiogram.renders package
Submodules
shipany.bot.contrib.aiogram.renders.bindings module
shipany.bot.contrib.aiogram.renders.bindings.default_bindings(binder)
Bind the default dependencies.
- Parameters:
binder (
Binder) — The dependency injector binder. - Return type: None
shipany.bot.contrib.aiogram.renders.namespaces module
shipany.bot.contrib.aiogram.renders.namespaces.message_namespace(ctx)
Create a namespace from the context event.
Suitable for Jinja2 templates to limit the access to the context providing message information.
- Parameters:
ctx (
ConversationContext) — The conversation context. - Return type: Namespace | None
shipany.bot.contrib.aiogram.renders.namespaces.user_namespace(ctx)
Create a namespace from the context event.
Suitable for Jinja2 templates to limit the access to the context provding user information.
- Parameters:
ctx (
ConversationContext) — The conversation context. - Returns: The namespace from the context event.
- Return type: Namespace | None
shipany.bot.contrib.aiogram.renders.namespaces.reaction_namespace(ctx)
Create a namespace from the context event.
Suitable for Jinja2 templates to limit the access to the context providing reaction information.
- Parameters:
ctx (
ConversationContext) — The conversation context. - Returns: The namespace from the context event
- Return type: Namespace | None