bot.setup Module#
The module contains functions that register the handlers.
- async bot.setup.setup_application(application, cache_timeout, admin, docs_url)#
Registers the different handlers, prepares
chat/user/bot_data
etc.- Parameters:
application (
telegram.ext._application.Application
) – The application.cache_timeout (
int
) – Timeout for YOURLS statistics cache.admin (
int
) – The admins Telegram chat ID.docs_url (
str
) – The URL of the Sphinx docs.
- Return type: