very simple php telegram bot without any dependencies
Open bot.conf to enter your bot API TOKEN, bot admins and your telegram channel name if exists.
php bot.php init https://server.com/bot.php
4 API methods implemented:
- setWebhook
- deleteWebhook
- getWebhookInfo
- sendMessage
php bot.php sendMessage @channel_name text message
Open bot.php. To add new bot command you need to add new method to the Commands class.