proseltd / Telepathy-Community

Public release of Telepathy, an OSINT toolkit for investigating Telegram chats.
MIT License
949 stars 133 forks source link

Request to add for channel existence verification... #56

Open Juunjui opened 1 year ago

Juunjui commented 1 year ago

Hello, I tried telephaty and made a mistake of mistyping the name of a chat... looks like when the chat doesn't exist the "total_participants" is returned as a string "no" which is handled as an error by 'int()'

I received the following error:

 [!] Performing comprehensive scan
 [-] Fetching details for [REDACTED]...
Traceback (most recent call last):
  File "/home/[REDACTED]/.local/bin/telepathy", line 8, in <module>
    sys.exit(cli())
  File "/home/[REDACTED]/.local/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/[REDACTED]/.local/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/[REDACTED]/.local/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/[REDACTED]/.local/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/[REDACTED]/.local/lib/python3.9/site-packages/telepathy/telepathy.py", line 1745, in cli
    client.loop.run_until_complete(main())
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/home/[REDACTED]/.local/lib/python3.9/site-packages/telepathy/telepathy.py", line 555, in main
    int(found_participants) / int(total_participants) * 100.
ValueError: invalid literal for int() with base 10: 'no'