- @BotFather - register new bot + bot token
- find hosting with SSL
- copy any of php bot script, edit bot token, place script on your hosting (with SSL).
- set webHook to script: https://api.telegram.org/botXXXX:XXXXXXXXXXX/setWebhook?url=https://MY.SITE.COM/bot/MYTUPOBOT.php (change uppercased)
- use it!
- hellobot.php - hello world php bot script
- tupobot.php - exaple php webhook script sendMessage example
- debugerbot.php - php bot script to show json
- net4mebot.php - real bot http://t.me/net4mebot example of inline keyboard, case, replyMarkup, answerCallbackQuery, sendMessage, editMessageText
- inline.php - php bot script for show json "as is" + inline keyboard with callback query answer
- curl-funtions.php The simplest telegram php bot with Curl sending functions ( Curl sendPhoto, sendLocation, sendMessage etc... )
https://net4me.net/telegram/telegram_php.html https://net4me.net/telegram/telegram_curl.html