Dump of the DWGram API sources.
I made this project to get experience with the Amp Framework.
The idea of this project is to provide an easy to use API to get media and messages from Telegram channels (both private and public) and public groups.
The code is very messy and full of bugs, I'd advice a rewrite.
This is one of my first projects made during Italy quarantine: march 2020 - may 2020. After this project i started working on ShiSHtransfer
This project is dead. The code of it is bad, wasteful of resources and probably broken. I made this project only to learn.
⚠️ Neither me or Pato05 assume any responsability. The software in this repository is provided without any warranty. If you decide to run this, you fully understand what it does and everything caused by it is completely your fault.
MySQL
Atleast 4 Telegram accounts (possibily fake)
systemd (raccomended, you can install it yourself on whatever you want but I give configs only for systemd)
- You have to make the database and table yourself. Down this readme there's the DB guide.
- Search for
SECRET
and change all the hardcoded stuff. - Go to
sessions
and login in all the accounts with the commandphp index.php [accountnumber]
- Edit config/userbots.php to represent your account configuration, format is
account
=>port where it's going to be hosted
, cd ../installer
and run the php installer and then the .sh scripts with sudo, you should figure out yourself how, because you have to understand fully what it does. If you need help, contact me here: @shishcat2 on Telegram- Make a custom systemd config for the load balancer and start it
- Point a cronjob at
SECRET_SITEURL/SECRET_URL/?sprivtoken1=SECRET_TOKEN&action=midnight
every 4 hours or midnight - Point a cronjob at
SECRET_SITEURL/SECRET_URL/?sprivtoken1=SECRET_TOKEN&action=cron
every 15 minutes - You're ready.
Make a database called dwgram and a table called access_data as following: