Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "/mnt/c/Users/cened/Desktop/archivebot1/archivebot/helper/session.py", line 26, in wrapper
- response = await func(event, session)
- File "/mnt/c/Users/cened/Desktop/archivebot1/archivebot/archivebot.py", line 209, in scan_chat
- async for message in archive.iter_messages(event.message.to_id):
- File "/home/*****/.cache/pypoetry/virtualenvs/archivebot-py3.6/lib/python3.6/site-packages/telethon/requestiter.py", line 75, in __anext__
- if await self._load_next_chunk():
- File "/home/*****/.cache/pypoetry/virtualenvs/archivebot-py3.6/lib/python3.6/site-packages/telethon/client/messages.py", line 158, in _load_next_chunk
- r = await self.client(self.request)
- File "/home/*****/.cache/pypoetry/virtualenvs/archivebot-py3.6/lib/python3.6/site-packages/telethon/client/users.py", line 65, in __call__
- result = await future
- 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