Deploy this to delete non-commands messages in any Group.
- Import this repo as private.
- Get an account at vercel.com
- Add your bot token in Line 3 of
/api/bot.php - Add your Telegram ID (for Admin's) in Line 36 of
/api/bot.php, you can add multiple too. - Deploy the app.
- Get that url from vercel.com after deployment.
- Create a webhook using below.
- https://api.telegram.org/bot{my_bot_token}/setWebhook?url={url_to_send_updates_to}
- eg. if bot token is
123:AAABBBCCCand URL ishttps://BBB.COM/api/bot.phpthen https://api.telegram.org/bot123:AAABBBCCC/setWebhook?url=https://BBB.COM/api/bot.php- When you open this URL with required field's It should say webhook set or when you try again It'll say webhook already set.
- Don't fork and edit. Use Import Repo option at GitHub and keep code private.
- Change
index.htmltoindex.php - Add your bot token in Line 3 of
/api/bot.php - Add your Telegram ID (for Admin's) in Line 36 of
/api/bot.php, you can add multiple too. - Create an App at Heroku and Connect your GitHub Account.
- Deploy the Heroku App.
- Create a webhook using below.
- https://api.telegram.org/bot{my_bot_token}/setWebhook?url={url_to_send_updates_to}
- eg. if bot token is
123:AAABBBCCCand URL ishttps://BBB.COM/api/bot.phpthen https://api.telegram.org/bot123:AAABBBCCC/setWebhook?url=https://BBB.COM/api/bot.php- When you open this URL with required field's It should say webhook set or when you try again It'll say webhook already set.
- Don't fork and edit. Use Import Repo option at GitHub and keep code private.
- Download and Extract the api folder to root or where you want to deploy.
- Add your bot token in Line 3 of
/api/bot.php - Add your Telegram ID (for Admin's) in Line 36 of
/api/bot.php, you can add multiple too. - Create a webhook using below.
- https://api.telegram.org/bot{my_bot_token}/setWebhook?url={url_to_send_updates_to}
- eg. if bot token is
123:AAABBBCCCand URL ishttps://BBB.COM/api/bot.phpthen https://api.telegram.org/bot123:AAABBBCCC/setWebhook?url=https://BBB.COM/api/bot.php- When you open this URL with required field's It should say webhook set or when you try again It'll say webhook already set.
- Don't fork and edit. Use Import Repo option at GitHub and keep code private.
Note: Vercel.com is recommened as it is free forver and it doesn't sleeps like heroku free apps.
- NCDSBot
- Note: No Admin Features will be available. So create your own if you want your messages to be excluded from deletion.
- Telegram Bot PHP
- Created by Parveen Bhadoo