Clear “pending_update_count” in Telegram Bot

后端 未结 5 1800
渐次进展
渐次进展 2021-01-04 05:44

I want to clear all pending_update_count in my bot!

The output of below command :

https://api.telegram.org/botxxxxxxxxxxxxxxxx/getWebhoo         


        
5条回答
  •  暖寄归人
    2021-01-04 06:07

    I solved is like this

    POST tg.api/bottoken/setWebhook to emtpy "url"
    POST tg.api/bottoken/getUpdates
    POST tg.api/bottoken/getUpdates with "offset" last update_id appeared before
    

    doing this serveral times

    POST tg.api/bottoken/getWebhookInfo
    

    had a look if all away.

    POST tg.api/bottoken/setWebhook with filled "url"
    

提交回复
热议问题