Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Telegram error 409. How to solve?

When typing https://api.telegram.org/botmy bot token/getupdates i get error 409 (another webhook is active). How to solve this?

like image 929
Giovanni S. Avatar asked Oct 23 '25 08:10

Giovanni S.


1 Answers

Quoted from Telegram-Bot-Api,

Notes

  1. You will not be able to receive updates using getUpdates for as long as an outgoing webhook is set up.

To solve this, delete the webhook you did setup using your bot-token by simply providing no url:

https://api.telegram.org/bot<token>/setWebhook

let's say, your bot-token: 12345:abxef3ed
So, you just perform this: https://api.telegram.org/bot12345:abxef3ed/setWebhook

make sure you wrote 'bot' before token, not only token itself!



*I know this is too late for you, but may help others.

like image 113
user404 Avatar answered Oct 27 '25 01:10

user404



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!