Skip to content

Telegram Group Parser/Scraper and user Adder via id or username with proxy support

License

Notifications You must be signed in to change notification settings

evilbream/TG_adder_with_proxy

Repository files navigation

TG ADDER WITH PROXY

Star it ⭐️ - don’t in darkness let me wither

Features:

  • Multiple accounts support
  • Asynchronous scraper and adder
  • Add users by username or id
  • Add accounts with 2fa and using session files
  • Warm up mode for accounts
  • Proxy support (now u can bind proxy to a specific account). Tested with http/https/socks5/socks4
  • Random time sleep from 2 to 7 seconds
  • Mtproxy support for new version - with ee secret or base 64 secret and for old version - with 16 bytes secret
  • Multiple filters to scrape users (by online time, first name, reactions in group, bot users, etc)
  • Scrape users from comments in channel
  • Remove duplicates from the user file
  • Automaticaly filter bot users, admins and group owners
  • Device model, system and app version for each account
  • Automatically skip an account, that reached limit for the day
  • Free tool
  • More features are coming

Still in development, soon more features will be added

Getting api_id and api_hash

  • Go to http://my.telegram.org and log in.
  • Click on API development tools and fill the required fields.
  • copy "api_id" n "api_hash" after clicking create app
  • ! Skip this step if u use authorization by session files

Installation and usage on Windows

Usage via terminal

  • Open terminal - click win + R and then type cmd.exe
  • pip3 install telethon
  • pip3 install TelethonFakeTLS
  • git clone https://github.com/evilbream/TG_adder_with_proxy
  • cd Tg_adder_with_proxy change directory to downloaded folder.
  • exclude_list.txt - it'll open exclude_list.txt. If u want to filter users by first name run it and add words. Users with these words in first name will be excluded
  • python account_manager.py - To run account manager. Now u can add account(s) w or without proxy, delete account(s), change proxy for the specific account(s), view all accounts and test the ability to log in to account(s)
  • python main_parser.py - To scrape members from the group
  • python main_adder.py - Add scraped members to ur group

Usage via PyCharm

  • Download and install PyCharm community edition jetbrains.com
  • Open downloaded folder Tg_adder_with_proxy with PyCharm
  • Run in PyCharm account_manager.py
  • Add account(s) to database with or without proxy
  • Add data to exclude.txt if you want to filter users by first name
  • Run in PyCharm main_parser.py to scrape members
  • Run in PyCharm main_adder.py to add members

Using session files for authorisation

  • Delete examples of session + json files in session_dir folder
  • Add session + json files to the session_dir folder. U can add any number of accounts
  • Run account_manager.py - click Add account - add account using session
  • After adding accounts don't delete session + json files
  • If u latter want to add more accounts just add more session + json files and again run account_manager.py ...

Restriction feature

  • When adding users to a group and one of the following errors occurs - PeerFloodError, UserBannedInChannelError, a note will be added to the account with current date n time
  • After 3 days note will be automatically deleted.
  • U can manually delete this note in account_manager.py by clicking change restrictions
  • When adding users to chats u can automatically skip an account if it have some restrictions

Warm up feature

  • To warm up, accounts will chat with each other in a group or/n dm
  • Accounts will chat with each other using copied messages from the provided group and reactions
  • At startup, u need to provide links to a chat from which accounts will copy messages and a chat in which accounts will chat among themself
  • Not properly tested and may lead to a ban

Some examples of supported MTProxies

ip: 170.187.188.55 port: 443 secret: eec210ca2aa6d3d81670ed32899925445b626c6f672e636c6f7564666c6172652e636f6d ip: 46.149.73.29 port: 443 secret: ee1603010200010001fc030386e24c3add646e2e79656b74616e65742e636f6d646c2e676f6f676c652e636f6d666172616b61762e636f6d160301020001000100000000000000000000000000000000

I am not responsible for the work of the public proxies above, at the time of the release, the proxies were working

Device model, system and app version for each account

If u want u may add device model, system and app version in system_model_app_versions.txt or even replace existing lines

New telegram adder with a more user-friendly interface and support for loading sessions via pyrogram/telethon/Tdata Telegradd

About

Telegram Group Parser/Scraper and user Adder via id or username with proxy support

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages