Telegram Bot Tutorial | Part Two
Bot Script and User Interaction To try out BobBot for yourself, head over to telegram.me/BobRossBot Last Time In the last post, I covered creating the bot in Telegram and setting up the webhook. In this post we’ll look at getting a script at the other end of that webhook and having your bot interact with the user. BobBot.php Our Bot is going to wait for a user to say /Bob, and then reply with a nugget of wisdom from Bob Ross. BobBot will be written in PHP, but your bot can be written in any language really! I might cover nodejs in a future post. However, I’ll assume you don’t need a walkthrough of PHP! Check out learnXinYMinute’s PHP docs for a quick run through. ...