You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
(.venv) dp@DESKTOP-OPPM00M:~/my-tgcf$ tgcf -l past
tgcf
Running latest tgcf version 1.1.8
[07/09/23 11:33:19] INFO Verbosity turned on! This is suitable for debugging cli.py:57
INFO cryptg detected, it will be used for encryption aes.py:19
INFO tgcf.config.json detected! config.py:109
INFO config.py got executed config.py:259
INFO using session string config.py:212
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /home/dp/my-tgcf/.venv/lib/python3.10/site-packages/tgcf/cli.py:116 in main │
│ │
│ 113 │ if mode == Mode.PAST: │
│ 114 │ │ from tgcf.past import forward_job # pylint: disable=import-outside-toplevel │
│ 115 │ │ │
│ ❱ 116 │ │ asyncio.run(forward_job()) │
│ 117 │ else: │
│ 118 │ │ from tgcf.live import start_sync # pylint: disable=import-outside-toplevel │
│ 119 │
│ │
│ /usr/lib/python3.10/asyncio/runners.py:44 in run │
│ │
│ 41 │ │ events.set_event_loop(loop) │
│ 42 │ │ if debug is not None: │
│ 43 │ │ │ loop.set_debug(debug) │
│ ❱ 44 │ │ return loop.run_until_complete(main) │
│ 45 │ finally: │
│ 46 │ │ try: │
│ 47 │ │ │ _cancel_all_tasks(loop) │
│ │
│ /usr/lib/python3.10/asyncio/base_events.py:646 in run_until_complete │
│ │
│ 643 │ │ if not future.done(): │
│ 644 │ │ │ raise RuntimeError('Event loop stopped before Future completed.') │
│ 645 │ │ │
│ ❱ 646 │ │ return future.result() │
│ 647 │ │
│ 648 │ def stop(self): │
│ 649 │ │ """Stop running the event loop. │
│ │
│ /home/dp/my-tgcf/.venv/lib/python3.10/site-packages/tgcf/past.py:31 in forward_job │
│ │
│ 28 │ │ │ "You cannot use bot account for tgcf past mode. Telegram does not allow bots │
│ 29 │ │ ) │
│ 30 │ │ return │
│ ❱ 31 │ SESSION = get_SESSION() │
│ 32 │ async with TelegramClient( │
│ 33 │ │ SESSION, CONFIG.login.API_ID, CONFIG.login.API_HASH │
│ 34 │ ) as client: │
│ │
│ /home/dp/my-tgcf/.venv/lib/python3.10/site-packages/tgcf/config.py:213 in get_SESSION │
│ │
│ 210 def get_SESSION(): │
│ 211 │ if CONFIG.login.SESSION_STRING and CONFIG.login.user_type == 1: │
│ 212 │ │ logging.info("using session string") │
│ ❱ 213 │ │ SESSION = StringSession(CONFIG.login.SESSION_STRING) │
│ 214 │ elif CONFIG.login.BOT_TOKEN and CONFIG.login.user_type == 0: │
│ 215 │ │ logging.info("using bot account") │
│ 216 │ │ SESSION = "tgcf_bot" │
│ │
│ /home/dp/my-tgcf/.venv/lib/python3.10/site-packages/telethon/sessions/string.py:37 in init │
│ │
│ 34 │ │ │ │
│ 35 │ │ │ string = string[1:] │
│ 36 │ │ │ ip_len = 4 if len(string) == 352 else 16 │
│ ❱ 37 │ │ │ self._dc_id, ip, self._port, key = struct.unpack( │
│ 38 │ │ │ │ _STRUCT_PREFORMAT.format(ip_len), StringSession.decode(string)) │
│ 39 │ │ │ │
│ 40 │ │ │ self._server_address = ipaddress.ip_address(ip).compressed │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
error: unpack requires a buffer of 275 bytes
(.venv) dp@DESKTOP-OPPM00M:~/my-tgcf$
Beta Was this translation helpful? Give feedback.
All reactions