bot.setup Module

The module contains functions that register the handlers.

bot.setup.setup_dispatcher(dispatcher, admin)

Registers the different handlers, prepares chat/user/bot_data etc.

Parameters
  • dispatcher (telegram.ext.dispatcher.Dispatcher) – The dispatcher.

  • admin (int) – The admins Telegram chat ID.

Return type

None