回答

0

您可以使用set_webhook()函數

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

注意!設置webhook時,API方法getUpdates不起作用。所以你可以使用

bot.delete_webhook() 

把它釋放。