aahnik / tgcf

The ultimate tool to automate custom telegram message forwarding. Live-syncer, Auto-poster, backup-bot, cloner, chat-forwarder, duplicator, ... Call it whatever you like! tgcf can fulfill your custom needs.
https://github.com/aahnik/tgcf/wiki
MIT License
1.31k stars 783 forks source link

after configuration of manfodb this error come #411

Closed krish9636singh closed 1 year ago

krish9636singh commented 1 year ago

after the configuration of MongoDB these error is coming. without MongoDB it's working fine

Error

/venv/lib/python3.10/site-packages/tgcf/cli.py:120 in main │ │ │ │ 117 │ else: │ │ 118 │ │ from tgcf.live import start_sync # pylint: disable=import-out │ │ 119 │ │ │ │ ❱ 120 │ │ asyncio.run(start_sync()) │ │ 121 │ │ 122 │ │ 123 # AAHNIK 2021 │ │ │ │ /usr/local/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/local/lib/python3.10/asyncio/base_events.py:649 in run_until_complete │ │ │ │ 646 │ │ if not future.done(): │ │ 647 │ │ │ raise RuntimeError('Event loop stopped before Future comp │ │ 648 │ │ │ │ ❱ 649 │ │ return future.result() │ │ 650 │ │ │ 651 │ def stop(self): │ │ 652 │ │ """Stop running the event loop. │ │ │ │ /venv/lib/python3.10/site-packages/tgcf/live.py:156 in start_sync │ │ │ │ 153 │ │ │ │ ], │ │ 154 │ │ │ ) │ │ 155 │ │ ) │ │ ❱ 156 │ config.from_to = await config.load_from_to(client, config.CONFIG.f │ │ 157 │ await client.run_until_disconnected() │ │ 158 │ │ │ │ /venv/lib/python3.10/site-packages/tgcf/config.py:194 in load_from_to │ │ │ │ 191 │ │ if not forward.usethis: │ │ 192 │ │ │ continue │ │ 193 │ │ source = forward.source │ │ ❱ 194 │ │ if type(source) != int and source.strip() == "": │ │ 195 │ │ │ continue │ │ 196 │ │ src = await (forward.source) │ │ 197 │ │ from_todict[src] = [await (dest) for dest in forward.dest] │ ╰──────────────────────────────────────────────────────────────────────────────╯ AttributeError: 'Int64' object has no attribute 'strip'