Skip to content

1.3.0

Latest
Compare
Choose a tag to compare
@Antiokh Antiokh released this 08 Nov 02:25
· 1 commit to master since this release

Telegram Scraper and Adder (Users, Messages, Addition, Sending, Metadata)

Initial release.

Usage: tgs.exe [command] [options]

Help on commands: tgs.exe [command] -h

Commands:

setup        Initial setup with data from https://my.telegram.org/apps
users        Scrape members from a group
add          Add members to a group
dump         Fetch messages and users from a group or channel into sqlite db
posts        Fetch messages from a group or channel
send         Send messages to users
license      Check the license or create a license request

Tested on Telegram groups with >400000 messages and >4000 users.

API Setup

  • Go to http://my.telegram.org and log in.
  • Click on API development tools and fill the required fields.
  • put app name you want & select other in platform Example :
  • copy "api_id" & "api_hash" after clicking create app ( will be used in setup.py )

How To Install and Use

$ pkg install -y git python

$ git clone https://github.com/Antiokh/tgs.py

$ cd tgs.py

  • Install requierments

$ python3 setup.py -i

  • setup configration file ( apiID, apiHASH )

$ python3 setup.py -c

  • To Genrate User Data

$ python3 tgs.py scrape

  • To Add Users

$ python3 tgs.py add

  • To Spam

$ python3 tgs.py spam -i members.csv

To make it work on Termux:

  1. Install Termux from F-Droid (as Google Play’s version can’t use all the mirrors for packeges)
  2. Run $ pkg update & pkg upgrade -y
  3. Run $ pkg install rust
  4. Run $ pkg install termux-api
  5. Run $ pkg-install python-pip

Full Changelog: https://github.com/Antiokh/TeleGram-Scraper/commits/Release