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
Post a Comment