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.phpto 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.phpto broadcast message to users who registered your bot. - Run
channel.phpto broadcast message to the channel specified.