From the course: Learn API Programming by Building a Telegram Bot
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Challenge: Auto-reply to a customer's inquiry - PHP Tutorial
From the course: Learn API Programming by Building a Telegram Bot
Challenge: Auto-reply to a customer's inquiry
(bright music) - [Instructor] We now have a bot with a simple help function. Type /gethelp and it asks what kind of help you want. If you answer other, you're prompted to describe the problem, and then your response is forwarded to a customer service staffer. The code works great, but there's a user interface problem. The customer gets no feedback after their message is forwarded. We see that the message is received only because we happen to have that other account loaded into this Telegram app. That is the recipient account. This is your challenge. Get the bot to both forward the message to customer service and tell the customer what's happening. To show you what it should look like, I'm going to switch to my version of the bot that has this code implemented. We go up here to the Course Solutions Bot and go through the same procedure. The question gets forwarded to customer service and the customer gets this…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.