Hi, i use webhook to receiving updates, every time my

server stop the bot keep receiving updates and when i run it(the server) again, it causes a huge amount of processings, can i do timeout for receiving updates or ignore those updates from webhook ? I currently using php-fpm + apache2 as web server.

7 ответов

31 просмотр

with max connections and drop pending update, yes

you can pass true to drop_pending_updates in setWebhook method

ッ Marshmallow 🎀 ❦ ᵐⁱˢˢ Σ ᶜᵒˡˡᵉᵍⁱᵃⁿ ᵃⁿᵈ ᵍᵃᵐᵉʳ 👱🏻‍♀ 🦋²⁰²²ᵗʰ 🎀 🧞‍♀️×͜×
Can't help by using this manually

to drop pending updates (ie : every time your bot doesn't reply with a sucess code "200" ) pass 1 (true ) to the parameter drop_pending_updates while setting up your webhook

𝘼𝙗𝙙𝙤 🧢
to drop pending updates (ie : every time your bot...

I know i tried this not working Only error in the code can send message error https://t.me/BotTalk/639086 Now heroku not working with github i will try again when it's back

Похожие вопросы

Карта сайта