webhook_telegram_bot.telegram.commands.start

This file contains functions to handle /start command.

Module Contents

Functions

start_command_handler(chat_id: int, db: webhook_telegram_bot.database.backends.types.DatabaseWrapperImpl, telegram_api: webhook_telegram_bot.telegram.telegram_api.TelegramAPI, template_engine: jinja2.Environment) → aiohttp.web.Response

Return bot menu.

async webhook_telegram_bot.telegram.commands.start.start_command_handler(chat_id: int, db: webhook_telegram_bot.database.backends.types.DatabaseWrapperImpl, telegram_api: webhook_telegram_bot.telegram.telegram_api.TelegramAPI, template_engine: jinja2.Environment) aiohttp.web.Response

Return bot menu.

Parameters
  • chat_id – chat identification number

  • db – DatabaseWrapper implementation instance

  • telegram_api – TelegramAPI instance

  • template_engine – template engine instance

Returns

bot response