Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marx-wrld/telegramdataextract
Extracting data from telegram with telethon.
https://github.com/marx-wrld/telegramdataextract
telegram-bot-api telethon
Last synced: 2 days ago
JSON representation
Extracting data from telegram with telethon.
- Host: GitHub
- URL: https://github.com/marx-wrld/telegramdataextract
- Owner: Marx-wrld
- License: mit
- Created: 2024-01-29T18:19:44.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-17T10:52:05.000Z (9 months ago)
- Last Synced: 2024-02-17T11:41:03.519Z (9 months ago)
- Topics: telegram-bot-api, telethon
- Language: PowerShell
- Homepage:
- Size: 551 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
## TelegramDataExtract
Extracting data from telegram with telethon.
#### Getting your telegram api-id and hash
- Visit the official telegram website - http://my.telegram.org/
- Log in with your phone-number and confirmation code from telegram, to manage your apps using Telegram API or delete your account.
- On the telegram core sub-menu, click on API development tools and fill the required fields. Choose any name and random url for your app.
- After submitting, you will receive your api_id and api_hash
#### Clone or Download the repo
- Create a ```.env``` file, where you'll paste your api_id, api_hash and phone number then add the following:-
```
API_ID=
API_HASH=
PHONE_NUMBER=
````- Create a ``` telegram_code.txt``` file, then add the telegram code sent to your device. Edit the file like this, e.g - telegram_code=12345
- Also create a ```telegram_output.txt``` file, where the extracted data will be stored.
**DISCLAIMER**
>Ensure you don't leak either of the files to the public. For safety, add them to .gitignore
#### Installations
```
python -m pip > requirements.txtpip install virtualenv
pip install virtualenvwrapper-win
pip install telethon
pip install pandas
pip install python-dotenv
```