How can I detect whether a user deletes the Telegram Bot chat? -


is possible check, via api, whether has deleted bot chat in telegram?

my test : if user deletes chat, new messages not stop sending user.

nope. getting error while sending user something.

even calling sendchataction method not return error if user blocked chat:

 $ curl https://api.telegram.org/bot***/sendchataction -d 'chat_id=7975895' -d "action=typing" {"ok":true,"result":true} 
 $ curl https://api.telegram.org/bot***/sendmessage -d 'chat_id=81083738' -d "text=ololo" {"ok":false,"error_code":403,"description":"[error]: bot blocked user"} 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -