README - Telegram broadcast bot package
-------------------------------------

Files included:
- bot.php      : webhook handler (place on your web server, set as webhook URL)
- sender.php   : send messages to all registered groups (run via cron every minute)
- messages.txt : list of messages (one per line)
- groups.txt   : list of group chat IDs (one per line)
- status.txt   : 'on' or 'off' for automatic sending (default: off)
- pointer.txt  : internal pointer (default: 0)

IMPORTANT SECURITY NOTE:
You asked to embed the bot token and admin id directly into the files. Because you posted the token in chat previously, it is highly recommended to **regenerate (revoke) the token** in BotFather and update the files with the new token before putting this bot into production.

How to use:
1) Upload the package contents to your web server, e.g. /var/www/telegrambot/
2) Set webhook (replace domain with yours):
   https://api.telegram.org/bot8019927469:AAF3OJ7uVkEI7Qi22PUuXcFFU0BGJ-rigx0/setWebhook?url=https://yourdomain.com/path/to/bot.php
3) Ensure bot.php is reachable via HTTPS and executable by the webserver.
4) Edit messages.txt to add messages, one per line.
5) Add group IDs to groups.txt (use /addgroup command or edit file directly).
6) Turn on sending by sending /startsend to the bot (from the ADMIN account), or edit status.txt to contain 'on'.
7) Set up cron to run sender.php every minute:
   * * * * * /usr/bin/php /path/to/sender.php

