shipany.bot.contrib.aiogram.factories
shipany.bot.contrib.aiogram.factories package
Submodules
shipany.bot.contrib.aiogram.factories.send_message module
shipany.bot.contrib.aiogram.factories.send_message.construct_from(ctx, action)
Construct the message to send.
- Parameters:
- ctx (
ConversationContext) — The conversation context. - action (
MessageAction) — The message action to construct.
- ctx (
- Returns: The message to send.
- Return type: SendMessage
- Raises: EventProcessingNotImplementedError — If the event type is not supported.
shipany.bot.contrib.aiogram.factories.telegram_objects module
shipany.bot.contrib.aiogram.factories.telegram_objects.bot_from_config(app_config)
Given an application configuration, returns a bot instance.
- Parameters: app_config (ApplicationConfig) — application configuration
- Returns: bot instance
- Return type: Bot
shipany.bot.contrib.aiogram.factories.telegram_objects.bot()
Create a bot instance. This function is cached.
- Returns: bot instance
- Return type: Bot
shipany.bot.contrib.aiogram.factories.telegram_objects.dispatcher()
Create a dispatcher instance. This function is cached.
- Return type: Dispatcher