Проблема с botkicked for supergroup
После того как отправляю ссылку в консоли вылазит ошибка
future: <Task finished name='Task-18' coro=<Dispatcher._process_polling_updates() done, defined at C:\Users\SystemX\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\dispatcher\dispatcher.py:407> exception=BotKicked('Forbidden: bot was kicked from the supergroup chat')>
Traceback (most recent call last):
File "C:\Users\SystemX\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 415, in _process_polling_updates
for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
File "C:\Users\SystemX\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 235, in process_updates
return await asyncio.gather(*tasks)
File "C:\Users\SystemX\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\dispatcher\handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "C:\Users\SystemX\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\dispatcher\dispatcher.py", line 256, in process_update
return await self.message_handlers.notify(update.message)
File "C:\Users\SystemX\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\dispatcher\handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "C:\Users\SystemX\Desktop\botnetik\codebotnet.py", line 623, in handle_demolition_link
await bot.send_message(LOG_GROUP_ID, f"? Пользователь {message.from_user.username or message.from_user.id} снес сообщение: {link}\nПричина: {reason.__class__.__name__}\n✅ Успешно: {success_count}\n❌ Неудачно: {failure_count}")
File "C:\Users\SystemX\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\bot\bot.py", line 346, in send_message
result = await self.request(api.Methods.SEND_MESSAGE, payload)
File "C:\Users\SystemX\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\bot\base.py", line 236, in request
return await api.make_request(await self.get_session(), self.server, self.__token, method, data, files,
File "C:\Users\SystemX\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\bot\api.py", line 140, in make_request
return check_result(method, response.content_type, response.status, await response.text())
File "C:\Users\SystemX\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\bot\api.py", line 121, in check_result
exceptions.Unauthorized.detect(description)
File "C:\Users\SystemX\AppData\Local\Programs\Python\Python310\lib\site-packages\aiogram\utils\exceptions.py", line 140, in detect
raise err(cls.text or description)
aiogram.utils.exceptions.BotKicked: Forbidden: bot was kicked from the supergroup chat