🛠

How to setup Telegram Scraper

Guide to setup telegram scraper
Before being able to use the Telegram scraper, you need to follow the following steps to create the necessary files.
Follow this tutorial on YouTube to obtain the required data:
Obtain API hash and API id
​
Now you can fill in the tg_config.json configuration file as shown in the following image.
tg_config.json example
​
The phone number should have the international prefix.
Note that the channels must be setted to 0 when you run the session creator
​
You can run now the file named session_creator in the bot folder
A Terminal window will show up and you will receive a message on telegram with a 6 digit code
Enter the code in the terminal and press enter
If you have protected your telegram account with a password, you will need to enter it in the terminal
Check in the bot folder that the .session file is created.
session files example
This file must remain in the same folder as the bot when it is running
You can now use the telegram scraper in the bot
​

MAC users

For MAC users the usual rule applies. all files (including the session_creator file) must be placed in the HOME FOLDER. The rest of the procedure is identical