본문 바로가기

Python

can't use getUpdates method while webhook is active

Python 으로 텔레그램 이용시 getUpdates() 에서 아래와 같은 error 발생시 webhook을 삭제해주면 된다.


can't use getUpdates method while webhook is active 


텔레그램 webhook 삭제 방법 : 웹브라우저를 열고 아래의 url로 접속하면 된다.

<token>에는 각자의 발급받은 token을 입력하면 된다.

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


정상적으로 처리가 되면 웹브라우저에 아래처럼 결과가 확인된다.

 {"ok":true,"result":true,"description":"Webhook was deleted"}