bot.setup Module#
Methods for initializing the application.
- async bot.setup.setup_application(application, admin_id, sticker_chat_id)
Adds handlers and sets up
bot_data
. Also sets the bot commands.- Parameters:
application (
Application
[ExtBot
,CallbackContext
[ExtBot
,UserData
,dict
,dict
],UserData
,dict
,dict
,JobQueue
]) – Thetelegram.ext.Application
.admin_id (
int
) – The admins chat id.sticker_chat_id (
Union
[str
,int
]) – The name of the chat where stickers can be sent to get their file IDs.
- Return type: