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.
Create your first bot program - PHP Tutorial
From the course: Learn API Programming by Building a Telegram Bot
Create your first bot program
- [Instructor] You can make your bot do things by putting commands in the address bar of a web browser. For example, with this URL I'm making my bot send the text, hello to my user account. I just hit return and there it is. If we switch over to telegram we'll see that indeed, we received that message. But programming means stringing together a whole lot of commands, not just one. So let's start doing that. This is also a good moment to implement practices that'll keep our project well-organized as it grows. These are my bot files on the remote server as I'm seeing them through a text editor, by the way it's Adam on the Mac but you can use whatever you like. They're in the directory bot, which is accessible from the internet at the sub-domain botcourse.tgeller.com or set up our webhook in a web browser using the set webhook method. To make things go faster, I've already written out the URL complete with my bot token…
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.