------------------------…

------------------------…



------------------------------------------------------------------------------------------------------------------------
72 __getitem__ __init__.py
> return self.__data[key]

KeyError:
-1001760678048

------------------------------------------------------------------------------------------------------------------------
39 get_chat_admin chat_status.py
> for member in ADMIN_CACHE[chat_id]:

---

422 __getitem__ __init__.py
> return cache_getitem(self, key)

---

74 __getitem__ __init__.py
> return self.__missing__(key)

---

101 __missing__ __init__.py
> raise KeyError(key)

KeyError:
-1001760678048

------------------------------------------------------------------------------------------------------------------------
555 process_update dispatcher.py
> handler.handle_update(update, self, check, context)

---

198 handle_update handler.py
> return self.callback(update, context)

---

277 is_not_admin chat_status.py
> if user and not is_user_admin(chat, user.id):

---

64 is_user_admin chat_status.py
> if not get_chat_admin(chat_id=chat.id, user_id=user_id):

---

46 get_chat_admin chat_status.py
> ADMIN_CACHE[chat_id] = dispatcher.bot.getChatAdministrators(chat_id)

---

130 decorator bot.py
> result = func(*args, **kwargs)

---

3184 get_chat_administrators bot.py
> result = self._post('getChatAdministrators', data, timeout=timeout, api_kwargs=api_kwargs)

---

295 _post bot.py
> return self.request.post(

---

361 post request.py
> result = self._request_wrapper(

---

277 _request_wrapper request.py
> raise Unauthorized(message)

telegram.error.Unauthorized

-------------------------------------------------------------------------------
An exception was raised while handling an update
User: 701937965
Chat: Kleruu -1001760678048
Callback data: None
Message: None

Full Traceback: Traceback (most recent call last):
File "e:\saitamarobot\env\lib\site-packages\cachetools\__init__.py", line 72, in __getitem__
return self.__data[key]
KeyError: -1001760678048

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "E:\SaitamaRobot\SaitamaRobot\modules\helper_funcs\chat_status.py", line 39, in get_chat_admin
for member in ADMIN_CACHE[chat_id]:
File "e:\saitamarobot\env\lib\site-packages\cachetools\__init__.py", line 422, in __getitem__
return cache_getitem(self, key)
File "e:\saitamarobot\env\lib\site-packages\cachetools\__init__.py", line 74, in __getitem__
return self.__missing__(key)
File "e:\saitamarobot\env\lib\site-packages\cachetools\__init__.py", line 101, in __missing__
raise KeyError(key)
KeyError: -1001760678048

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "e:\saitamarobot\env\lib\site-packages\telegram\ext\dispatcher.py", line 555, in process_update
handler.handle_update(update, self, check, context)
File "e:\saitamarobot\env\lib\site-packages\telegram\ext\handler.py", line 198, in handle_update
return self.callback(update, context)
File "E:\SaitamaRobot\SaitamaRobot\modules\helper_funcs\chat_status.py", line 277, in is_not_admin
if user and not is_user_admin(chat, user.id):
File "E:\SaitamaRobot\SaitamaRobot\modules\helper_funcs\chat_status.py", line 64, in is_user_admin
if not get_chat_admin(chat_id=chat.id, user_id=user_id):
File "E:\SaitamaRobot\SaitamaRobot\modules\helper_funcs\chat_status.py", line 46, in get_chat_admin
ADMIN_CACHE[chat_id] = dispatcher.bot.getChatAdministrators(chat_id)
File "e:\saitamarobot\env\lib\site-packages\telegram\bot.py", line 130, in decorator
result = func(*args, **kwargs)
File "e:\saitamarobot\env\lib\site-packages\telegram\bot.py", line 3184, in get_chat_administrators
result = self._post('getChatAdministrators', data, timeout=timeout, api_kwargs=api_kwargs)
File "e:\saitamarobot\env\lib\site-packages\telegram\bot.py", line 295, in _post
return self.request.post(
File "e:\saitamarobot\env\lib\site-packages\telegram\utils\request.py", line 361, in post
result = self._request_wrapper(
File "e:\saitamarobot\env\lib\site-packages\telegram\utils\request.py", line 277, in _request_wrapper
raise Unauthorized(message)
telegram.error.Unauthorized: Forbidden: bot is not a member of the supergroup chat

Report Page