A template for running your aiogram bots on serverless functions.
Note: After deployment, Goto the
/updateWebhooks?token=\<your bot token\>
path of your deployed app url to setup webhooks. An example will be https://bot-name.vercel.app/updateWebhooks?token=your-bot-token
BOT_TOKEN
- Your bot tokenWEBHOOK_HOST
- Your webhook host urlPORT
- Port to run the server on (Default: 8000)SERVERLESS
- Set totrue
if you are hosting on serverless functions (Default:false
)
python -m bot