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. ...

October 31, 2015 · 3 min

Telegram Bot Tutorial | Part One

APIs and Webhooks To try out BobBot for yourself, head over to telegram.me/BobRossBot Intro Recently my friends and I migrated from Hangouts to Telegram for a multitude of reasons, but the most exciting one for me was the bot API. I’ve always wanted to put a bot into out chat for any number of reasons, and telegram finally offered me that opportunity. However, when I went to look over the API docs and the bot examples, I came away stumped. Admittedly, the API was usually only difficult to follow as this was my first time working with one, but the bot example was hilariously verbose. Hellobot is described as “A very basic example”, but there’s not a single comment in the code to help you figure out what’s going on. Beyond that, there’s just way too much going on if you’re trying to get started. ...

October 31, 2015 · 6 min