tgbot-cpp
tgbot-cpp copied to clipboard
TgTypeParser: handle user blocked case
My bot catches exception during longPoll.start()
call saying Forbidden: user blocked
(or something like this). I need to know which user has blocked my bot to disable my service subscription fir him/her. Thanks
Library seems to be unmaintained for a while, so it's unlikely that anybody will implement it. It would be nice if you do it yourself and send PR.
The same problem here
@fnc12 I think this only happens when you try to send messages. A temporary fix would be to put sendMessage function inside a try catch block. I agree, it would be great to have a 'did user block me' function.