2
我怎麼能設置Heroku像webhook爲電報機器人編寫使用python-telegram-bot? 我必須在代碼中添加什麼? 謝謝。設置Heroku像webhook爲電報機器人
我怎麼能設置Heroku像webhook爲電報機器人編寫使用python-telegram-bot? 我必須在代碼中添加什麼? 謝謝。設置Heroku像webhook爲電報機器人
您可以使用set_webhook()函數
bot.set_webhook('https://test.co/path')
注意!設置webhook時,API方法getUpdates不起作用。所以你可以使用
bot.delete_webhook()
把它釋放。