- Joined
- Jul 15, 2021
- Messages
- 38
- Awards
- 3
Offline
CODE STILL BEING WORKED ON BUT THOUGHT ID SHARE AS ITS WORKING FINE.
Right guys ive seen a few folk ask for this,.
Now the way ive done it might not be 100% the correct way. but it works for me and will only send the latest report.
So its using a php script to send information from the database table to telegram bot.
first make a bot using bot father on telegram,then make a channel and add that bot as an admin
upload the bot.php to /api/ folder where the .db file is.
now the bot is pulling from this table name ( rtxreport ) might differ from mine depending what panel you have. but you need to find the correct table for the data to pull.
"SELECT * FROM rtxreport
YOU'LL NEED TO CHANGE IN THE PHP FILE
ADD YOUR TELEGRAM API HERE
ADD YOUR TELEGRAM BOT USER WITH @
upload to hosting. ive got the script refreshing the page every 10 seconds( probs too fast but still tweaking and testing) but if you add it to a cron job. it will run without having the page open.
somebody will no doubt improve the code..
cheers
rapid
Right guys ive seen a few folk ask for this,.
Now the way ive done it might not be 100% the correct way. but it works for me and will only send the latest report.
So its using a php script to send information from the database table to telegram bot.
first make a bot using bot father on telegram,then make a channel and add that bot as an admin
upload the bot.php to /api/ folder where the .db file is.
now the bot is pulling from this table name ( rtxreport ) might differ from mine depending what panel you have. but you need to find the correct table for the data to pull.
"SELECT * FROM rtxreport
YOU'LL NEED TO CHANGE IN THE PHP FILE
ADD YOUR TELEGRAM API HERE
ADD YOUR TELEGRAM BOT USER WITH @
upload to hosting. ive got the script refreshing the page every 10 seconds( probs too fast but still tweaking and testing) but if you add it to a cron job. it will run without having the page open.
somebody will no doubt improve the code..
cheers
rapid
Attachments
Last edited: