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

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



-------------------------------------------------------------------------------
44 __getitem__ cache.py
> return self.__data[key]

KeyError:
1060318977

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

---

83 __getitem__ ttl.py
> return cache_getitem(self, key)

---

46 __getitem__ cache.py
> return self.__missing__(key)

---

73 __missing__ cache.py
> raise KeyError(key)

KeyError:
1060318977

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

---

110 handle_update handlers.py
> return self.callback(update, context)

---

18 command_func alternate.py
> return func(update, context, *args, **kwargs)

---

122 filters cust_filters.py
> if not has_change_info(chat_id, user):

---

477 has_change_info chat_status.py
> member = get_chat_admin(chat_id, user)

---

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(

---

279 _request_wrapper request.py
> raise BadRequest(message)

telegram.error.BadRequest

-------------------------------------------------------------------------------
An exception was raised while handling an update
User: 1060318977
Chat: None 1060318977
Callback data: None
Message: /filter hi hello

Full Traceback: Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.8/site-packages/cachetools/cache.py", line 44, in __getitem__
return self.__data[key]
KeyError: 1060318977

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/SaitamaRobot/modules/helper_funcs/chat_status.py", line 39, in get_chat_admin
for member in ADMIN_CACHE[chat_id]:
File "/app/.heroku/python/lib/python3.8/site-packages/cachetools/ttl.py", line 83, in __getitem__
return cache_getitem(self, key)
File "/app/.heroku/python/lib/python3.8/site-packages/cachetools/cache.py", line 46, in __getitem__
return self.__missing__(key)
File "/app/.heroku/python/lib/python3.8/site-packages/cachetools/cache.py", line 73, in __missing__
raise KeyError(key)
KeyError: 1060318977

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.8/site-packages/telegram/ext/dispatcher.py", line 555, in process_update
handler.handle_update(update, self, check, context)
File "/app/SaitamaRobot/modules/helper_funcs/handlers.py", line 110, in handle_update
return self.callback(update, context)
File "/app/SaitamaRobot/modules/helper_funcs/alternate.py", line 18, in command_func
return func(update, context, *args, **kwargs)
File "/app/SaitamaRobot/modules/cust_filters.py", line 122, in filters
if not has_change_info(chat_id, user):
File "/app/SaitamaRobot/modules/helper_funcs/chat_status.py", line 477, in has_change_info
member = get_chat_admin(chat_id, user)
File "/app/SaitamaRobot/modules/helper_funcs/chat_status.py", line 46, in get_chat_admin
ADMIN_CACHE[chat_id] = dispatcher.bot.getChatAdministrators(chat_id)
File "/app/.heroku/python/lib/python3.8/site-packages/telegram/bot.py", line 130, in decorator
result = func(*args, **kwargs)
File "/app/.heroku/python/lib/python3.8/site-packages/telegram/bot.py", line 3184, in get_chat_administrators
result = self._post('getChatAdministrators', data, timeout=timeout, api_kwargs=api_kwargs)
File "/app/.heroku/python/lib/python3.8/site-packages/telegram/bot.py", line 295, in _post
return self.request.post(
File "/app/.heroku/python/lib/python3.8/site-packages/telegram/utils/request.py", line 361, in post
result = self._request_wrapper(
File "/app/.heroku/python/lib/python3.8/site-packages/telegram/utils/request.py", line 279, in _request_wrapper
raise BadRequest(message)
telegram.error.BadRequest: There are no administrators in the private chat

Report Page