telethon.network.mtprotosender:Request caused struct.error: argument out of range #95
Answered
by
ankit-sinha-18
thunderpavan-1997
asked this question in
Q&A
-
PS C:\Users\saipa\Downloads\my-tgcf-folder> tgcf past
Enter API_ID: 2995977
tgcf filter data loaded
Loaded plugin filter
Loaded plugin replace
ERROR:telethon.network.mtprotosender:Request caused struct.error: argument out of range: GetHistoryRequest(peer=InputPeerChat(chat_id=100327663313), offset_id=1, offset_date=None, add_offset=-100, limit=100, max_id=0, min_id=0, hash=0)
Traceback (most recent call last):
File "c:\users\saipa\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\saipa\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\saipa\AppData\Local\Programs\Python\Python39\Scripts\tgcf.exe\__main__.py", line 7, in <module>
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\typer\main.py", line 214, in __call__
return get_command(self)(*args, **kwargs)
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\typer\main.py", line 497, in wrapper
return callback(**use_params) # type: ignore
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\tgcf\cli.py", line 79, in main
asyncio.run(forward_job())
File "c:\users\saipa\appdata\local\programs\python\python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "c:\users\saipa\appdata\local\programs\python\python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\tgcf\past.py", line 21, in forward_job
async for message in client.iter_messages(
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\telethon\requestiter.py", line 74, in __anext__
if await self._load_next_chunk():
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\telethon\client\messages.py", line 178, in _load_next_chunk
r = await self.client(self.request)
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\telethon\client\users.py", line 30, in __call__
return await self._call(self._sender, request, ordered=ordered)
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\telethon\client\users.py", line 58, in _call
future = sender.send(request, ordered=ordered)
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\telethon\network\mtprotosender.py", line 176, in send
state = RequestState(request)
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\telethon\network\requeststate.py", line 17, in
__init__
self.data = bytes(request)
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\telethon\tl\tlobject.py", line 194, in __bytes__
return self._bytes()
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\telethon\tl\functions\messages.py", line 2159,
in _bytes
self.peer._bytes(),
File "c:\users\saipa\appdata\local\programs\python\python39\lib\site-packages\telethon\tl\types\__init__.py", line 9939, in _bytes
struct.pack('<i', self.chat_id),
struct.error: argument out of range
PS C:\Users\saipa\Downloads\my-tgcf-folder> |
Beta Was this translation helpful? Give feedback.
Answered by
ankit-sinha-18
Apr 25, 2021
Replies: 1 comment 2 replies
-
Your chat id is not correct |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
aahnik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your chat id is not correct
It should start with prefix -100
Not 100