2

how can I set Heroku like webhook for a Telegram Bot written using python-telegram-bot? What I have to add in the code? Thank you.

1 Answers1

0

You can use set_webhook() function

bot.set_webhook('https://test.co/path')

Note! API method getUpdates doesn't work while webhook setted. So you may use

bot.delete_webhook()

to free it.

ABelikov
  • 613
  • 5
  • 10