Closed husbey closed 1 year ago
hi @husbey
i updated the code https://github.com/Shiyinq/anonim-chat/commit/152befeb5a9d1c3dfffbed7c7b49461228950689
so when user chat and error 403, it will delete room and the user got message Your friend stops the conversation
When a user blocks the bot and the other sends a message, the bot stops and an error 403 "Forbidden: bot was blocked by the user" is generated
/root/anon/node_modules/telegraf/lib/core/network/client.js:258 throw new error_1.default(data, { method, payload }); ^
TelegramError: 403: Forbidden: bot was blocked by the user at Telegram.callApi (/root/anon/node_modules/telegraf/lib/core/network/client.js:258:19) at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
response: {
ok: false,
error_code: 403,
description: 'Forbidden: bot was blocked by the user'
},
on: {
method: 'sendMessage',
payload: { chat_id: 123456789, text: 'test' }
}
}