shipany.bot.contrib.aiogram.process.http_request
shipany.bot.contrib.aiogram.process.http_request package
Submodules
shipany.bot.contrib.aiogram.process.http_request.bindings module
shipany.bot.contrib.aiogram.process.http_request.bindings.default_bindings(binder)
Bind the default dependencies.
- Parameters:
binder (
Binder) — The dependency injector binder. - Return type: None
shipany.bot.contrib.aiogram.process.http_request.namespaces module
shipany.bot.contrib.aiogram.process.http_request.namespaces.response_namespace(ctx)
Create a namespace from the response event.
Suitable for Jinja2 templates to limit the access to the context.
- Parameters:
ctx (
ConversationContext) — The conversation context. - Returns: The namespace from the response event
- Return type: Namespace | None
shipany.bot.contrib.aiogram.process.http_request.v1 module
async shipany.bot.contrib.aiogram.process.http_request.v1.process(ctx, action)
Process the HTTP request action.
- Parameters:
- ctx (
ConversationContext) — The conversation context. - action (
HttpRequest) — The HTTP request action to process.
- ctx (
- Returns: The dispatched result
- Return type: Continue