Tiny PHP class to setup webhook & broadcast messaging
Installation
- Create Telegram bot, refer to the page: https://core.telegram.org/bots
- Update the token in
config.php
- To setup webhook, update the HTTPS url in
setwebhook.php
- Run
setwebhook.php
to enable Telegram Webhook - Use your own Telegram to add your bot, and send some message. You may customize feedback message by updating
webhook.php
. - Run
broadcast.php
to broadcast message to users who registered your bot. - Run
channel.php
to broadcast message to the channel specified.