How does Telegram Bots work and How you can create a Telegram Bot[2020]

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hi in this video I will show you how does telegram box work but what is telegram telegram is a messaging app with a focus on speed and security it's super fast simple and free you can use telegram on all your devices at the same time your messages sync seamlessly across any number of your phones tablets or computers with telegram you can send messages photos videos and files of any type doc zip mp3 etc as well as create groups for up to two hundred thousand people or channels for broadcasting to unlimited audiences you can write to your phone contacts and find people by their user names as a result telegram is like SMS and email combined and can take care of all your personal or business messaging needs you can read more about telegram an official telegram web site and now how we can create a telegram bot we can create a telegram bot with BOTS father bot father is an official telegram bot that rule all BOTS let me show you open your telegram then search for bot father start bot father and send new bot command send your bot name and send your about username which must end with bot if username available telegram gives you an HTTP API key now you have a telegram bot but how does your bot work when a user send a message to your bot because your bot connected to telegram server telegram give us and data in JSON format data contain information about user and message like what is message is text or photo or video what is message text what is user first name and last name and so on let me show you go to telegram website [Music] in telegram bot doc read about making requests copy this link and paste it in new tab telegram have a method called get updates with that method you can get the JSON data users messages to make a request your URL must be in this format this URL have three parts the first part is telegram bot API all your requests must send to this API the second part is thought keyword with your telegram bot token replace token with your telegram bot token and last part is the method name now let's use get updates method and make a request go to bot bother and copy your bot Oken open your browser and go to new tab replace token with your telegram bot token [Music] goto telegram bot dock and copy the get updates method replace method name with get updates then press enter to see result you can see result is empty because nobody send message to our bot so go to bot father and click on your bot username and start your bot now you send a message with the start text to your bot back to your browser and reload the page you can see this time result is not empty copy JSON data [Music] and go to this website paste copy text here and click on tree viewer now you can see information about the message like message ID and message text and about you sir like ID first name and last name I think that's enough for this video like and share video with your friend if you enjoy it in the next video I will show you how to create a simple telegram bot with PHP and don't forget to subscribe my channel [Music]
Info
Channel: TG Bot
Views: 12,120
Rating: undefined out of 5
Keywords: telegram, telegrambot, telegram bot, botfather, bot, how to create telegram bot, how does telegram bot work, php, telegram api, api bot, nodejs, java, c#
Id: QRlKjN6ZvRQ
Channel Id: undefined
Length: 6min 5sec (365 seconds)
Published: Wed May 13 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.