Giter VIP home page Giter VIP logo

telescan's Introduction

Telescan

1

What is this for?

Search users in groups (and in which groups is the user) by id, username or phone number (if it's in your contacts).

What do I need?

To use this tool you need Telegram API creds. After you registered a new app, edit api_creds.ini file accordingly.

Usage

You need to install the requirements first.

python3 telescan.py api_creds.ini

Limitations

To know if a user is in a group, you have to be in that group too. You can't know which users are in a specific channel if you are not an administrator.

Credits

© Pielco11

telescan's People

Contributors

pielco11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

telescan's Issues

error

1] => chats lookup
[2] => users lookup
[3] => search user in groups
[<] 3
Traceback (most recent call last):
File "telescan.py", line 132, in
dialogs = app.get_dialogs()['dialogs']
TypeError: list indices must be integers or slices, not str

TypeError: list indices must be integers or slices, not str

After selecting item 1, an error message appears

Traceback (most recent call last):
  File "telescan.py", line 108, in <module>
    dialogs = app.get_dialogs()['dialogs']
TypeError: list indices must be integers or slices, not str

After selecting item 3, an error message appears

Traceback (most recent call last):
  File "telescan.py", line 133, in <module>
    dialogs = app.get_dialogs()['dialogs']
TypeError: list indices must be integers or slices, not str

error on run

Traceback (most recent call last):
File "telescan.py", line 105, in
with app:
File "/Users/SiNaPsE/Library/Python/3.7/lib/python/site-packages/pyrogram/client/client.py", line 222, in enter
return self.start()
File "/Users/SiNaPsE/Library/Python/3.7/lib/python/site-packages/pyrogram/client/client.py", line 825, in start
is_authorized = self.connect()
File "/Users/SiNaPsE/Library/Python/3.7/lib/python/site-packages/pyrogram/client/client.py", line 260, in connect
self.load_config()
File "/Users/SiNaPsE/Library/Python/3.7/lib/python/site-packages/pyrogram/client/client.py", line 1404, in load_config
raise AttributeError("No API Key found. More info: https://docs.pyrogram.org/intro/setup")
AttributeError: No API Key found. More info: https://docs.pyrogram.org/intro/setup

but api_id is missing in the code

not start, can you help me ?

python3 telescan.py api_creds.ini
Traceback (most recent call last):
File "telescan.py", line 9, in
app = Client(
TypeError: init() got an unexpected keyword argument 'config_file'

api_creds.ini

[pyrogram]
api_id = 18XXXX76
api_hash = e11cXXXXXXXXXXXXXdcb

No API Key found

Hi !

First of all, thanks for the code !

I have an issue with Pyrogram. Very strange because Telescan was working very well few days ago.

Now I have this :

Traceback (most recent call last):
File "/Users/XX/telescan/telescan.py", line 90, in
with app:
File "/usr/local/lib/python3.9/site-packages/pyrogram/client.py", line 249, in enter
return self.start()
File "/usr/local/lib/python3.9/site-packages/pyrogram/sync.py", line 56, in async_to_sync_wrap
return loop.run_until_complete(coroutine)
File "/usr/local/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/site-packages/pyrogram/methods/utilities/start.py", line 53, in start
is_authorized = await self.connect()
File "/usr/local/lib/python3.9/site-packages/pyrogram/methods/auth/connect.py", line 38, in connect
self.load_config()
File "/usr/local/lib/python3.9/site-packages/pyrogram/client.py", line 611, in load_config
raise AttributeError("No API Key found. More info: https://docs.pyrogram.org/intro/setup")
AttributeError: No API Key found. More info: https://docs.pyrogram.org/intro/setup

My API is in api_creds.ini.

I have tried to put in a new doc config.ini but it doesn't work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.