Open eleksir opened 4 years ago
Ah! I pin down root of this issue.
That is not a private chat, it is public chat that have very strict policy: members are not allowed to send messages, so bot is unable to send message to this group and dies! They add bot to admins and everything becomes okay.
Can we make a check in bot that it can send messages in group it participating? or we have to do it not directly in framework, but in script that uses this Telegram-Bot?
It looks like in Telegram/Bot/Brain.pm in _post_request() we should not die, but return to caller an error, and on caller side, in case of error we should check that bot have permissions ~to send nudes~, sorry, to send messages, voice messages, photos, videos, etc. And if there is no permission, Telegram-Bot should warn about it and do not die, just do nothing.
Looks like user says something in polska mova and bot dies with
It happens until i change
to
I'll fish a bit what can possibly go wrong, but it looks like utf-8 issue.
Maybe change hard die to soft warn is not that bad idea?