Skip to content

shipany.bot.contrib.aiogram

shipany.bot.contrib.aiogram package

Subpackages

Submodules

shipany.bot.contrib.aiogram.backend module

async shipany.bot.contrib.aiogram.backend.serve(flow, app_config)

Start the bot server.

If the webhook URL for Telegram is set, the bot will operate in webhook mode. Otherwise, it will poll for updates.

  • Parameters:
    • flow (Flow) — The conversation flow.
    • app_config (ApplicationConfig) — The application configuration.
  • Return type: None

shipany.bot.contrib.aiogram.bindings module

shipany.bot.contrib.aiogram.bindings.default_bindings(binder)

Bind the default dependencies.

  • Parameters: binder (Binder) — The dependency injector binder.
  • Return type: None

shipany.bot.contrib.aiogram.router module

async shipany.bot.contrib.aiogram.router.handler(activation, steps, event)

Handle the activation.

shipany.bot.contrib.aiogram.router.activate_entry_points(conversation, router)

Activate the entry points of the conversation.

  • Parameters:
    • conversation (Conversation) — The conversation to activate.
    • router (Router) — The router to register the handlers.
  • Return type: None

shipany.bot.contrib.aiogram.router.create_handlers(router, conversation)

Create the handlers for the conversation.

  • Parameters:
    • router (Router) — The router to register the handlers.
    • conversation (Conversation) — The conversation to create the handlers for.
  • Return type: None

shipany.bot.contrib.aiogram.router.create(flow)

Create the aiogram router for the flow.

  • Parameters: flow (Flow) — The flow to create the router for.
  • Returns: The created aiogram router.
  • Return type: Router

Module contents