LyoSU/quote-bot

/qs not working when the chat group creator has deleted the account

Opened this issue · 1 comments

When the chat creator admin has deleted the tg account, the bots fails with this message:

I wasn't able to save that sticker.
Error: 400: Bad Request: have no access to the user

I think the problem is in

if (administrator.status === 'creator') chatAdministrator = administrator.user
, it doesn't check if the user still exists.

LyoSU commented

I know about it. I'll fix it as the time will be. PR is welcome