From the course: Learn API Programming by Building a Telegram Bot

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Present custom keyboards

Present custom keyboards - PHP Tutorial

From the course: Learn API Programming by Building a Telegram Bot

Start my 1-month free trial

Present custom keyboards

- [Instructor] At first glance, the Telegram client looks like a messaging app from the late nineties. But it's really more like a web browser capable of displaying interactive elements. The simplest of these is the keyboard. And I can show you this by going to another bot called Ottergram bot. Go up to search, an Ottergram bot. There it is. I start it. And after I do we see these buttons at the bottom. The entire bot in fact is a complex menu system based on such text-based buttons. You click a button and Telegram simply types out whatever's on the button. So I click help, and all it really does is type out the word help. But let's get back to the bot that we've been building. I'll go up and select it in our list here. When a user types slash get help they're instructed to type in billing tech or other. If they type anything else, they get an error message. Now this is the perfect place for a custom keyboard that…

Contents