PHP Webhook/API for telegram.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Frank Bischof f1739d55c3 Innitial commit 2 weeks ago Innitial commit 2 weeks ago
telegram_webhook.php Innitial commit 2 weeks ago


PHP Webhook for telegram bots


Create a bot using the botfather ( Set the bot webhook using setWebhook.


curl -F "url=https://<DOMAIN.TLD>/<YOUR_WEBHOOK_PHP>"<BOT_ID>/setWebhook

Afterwards check if the webhook info is set properly on<BOT_ID>/getWebhookInfo


Only thing to set is the BOT ID in the code.



You can use the following commands as an example: /ping /time /chatid /picture

You can easily add more in the case statement in the code.