Advertisement
Guest User

archive

a guest
Jun 7th, 2019
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.06 KB | None | 0 0
  1. Traceback (most recent call last):
  2.   File "/mnt/c/Users/cened/Desktop/archivebot1/archivebot/helper/session.py", line 26, in wrapper
  3.     response = await func(event, session)
  4.   File "/mnt/c/Users/cened/Desktop/archivebot1/archivebot/archivebot.py", line 209, in scan_chat
  5.     async for message in archive.iter_messages(event.message.to_id):
  6.   File "/home/*****/.cache/pypoetry/virtualenvs/archivebot-py3.6/lib/python3.6/site-packages/telethon/requestiter.py", line 75, in __anext__
  7.     if await self._load_next_chunk():
  8.   File "/home/*****/.cache/pypoetry/virtualenvs/archivebot-py3.6/lib/python3.6/site-packages/telethon/client/messages.py", line 158, in _load_next_chunk
  9.     r = await self.client(self.request)
  10.   File "/home/*****/.cache/pypoetry/virtualenvs/archivebot-py3.6/lib/python3.6/site-packages/telethon/client/users.py", line 65, in __call__
  11.     result = await future
  12. telethon.errors.rpcerrorlist.BotMethodInvalidError: The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot (caused by GetHistoryRequest)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement