 Okay. Hi, everyone. I'm Prashant. Thanks for the introduction. So I'll be talking about how to, I don't know, control IoT devices with telegram bots. So how many of you have heard or used telegram just? Okay, good. You guys will help me test when I come to the demo. Let's hope it doesn't crash. Okay. So for those of you who haven't heard about telegram, it's a multimedia chat app similar to WhatsApp. The only difference is it's completely open source. It has an open source API and it also has a bot API which I'll be showing you today. And they also don't sell your data, so you won't have ads pop up on your Gmail randomly. Okay. So how can you integrate telegram with IoT? So you just use the bot. So the bot is basically a third-party application which you will be constructing, which will use the telegram API and so one side you have telegram and the other side you can basically have anything. It can be a web app, it can be a local app on a PC. So that's how the telegram bot works. And the good part about the bot is that it can be hosted anywhere. You don't need any port forwarding. I'll show you this thing later. So you can host it anywhere. You don't need port forwarding. You don't need to worry about DNS. So that's a good thing about bot. You can just host it on a VM on your Windows machine as simple as that. So some of the things you can do with bots, you can get these are basically from the website. You can just read through it. But the last point which is there virtually anything else, I'm going to tell you how you can do that. Okay. So a little bit of introduction. I'm not using the native telegram API. I'm using the Python telegram API. The reason why I'm doing this is because I want to make use of Raspberry Pi. So Python gives me a lot of different things to do. And the best part of Python is I already have readymade libraries, find QTT, REST, Webhooks. So the things that I can do just keep increasing. Yeah. So a simple way to get started with the telegram bot for Python, just install it. And you can open this link. I'll just show you how simple it is to get started with your first code. Okay. So this is how simple it is. You have a updater and you have a message handler. So you just put your message, the message that you want to type to the bot, and you define a function for it. It's as simple as that. So when someone opens the app and type start, so it's going to print hello world. So you can go to this website. It's there in my presentation which will be available on GitHub. And you can read through it's like pretty interactive. So coming back, to create a new bot, the one prerequisite is you need to have a telegram account. And you need to add this bot called Botfather. So once you add Botfather, he's going to give you a token and you need to use this token every time you want to post a HTTP request to your bot and so on. So the bot that I'm going to be showing you today is this. So whoever has telegram, you can just add this bot quickly. I'll just keep it there for a few seconds. The O and W caps. Okay. So I'll move on without delay. So for the first demo, I have a board called RealTech Amoeba. It's a Cortex M3 with Wi-Fi. And I have a small proximity sensor that is hooked up to it. So this board is programmed with the Arduino ID and you all are familiar with that. And I've used MQTT. So I'm constantly reading the proximity sensor which is hooked here. And I'm sending the data to Cloud MQTT. And the telegram bot that is hosted currently on my Raspberry Pi is constantly subscribing to the topic. And if the proximity sensor throws an alert, it's going to send it to the channel. So all of you who added the bot are not members of the channel. So I think it's better I show you the channel. So this is the channel. Oh, shit. Okay. Let me just delete some of them. I've been testing it for a while. Okay. Yeah. Okay. So now you can see. I'm just getting the proximity. So you can see the alerts coming. So this is happening through MQTT. I can also show it to you. So this is the broker I'm using. I'm using Cloud MQTT because if you use the default one, sometimes it works, sometimes it doesn't work. So you can see the message is coming here. So second, the message comes here. My telegram bot which is hosted on the Raspberry Pi will just post a message. So this is one demo and you can check out the example which will be uploaded to GitHub later. It's pretty simple. The next demo is something which I need your help for. So all those of you who have joined the bot, you can do start and the bot will post the welcome message. And the message that I want you to send the bot is this. So send cam capture. And it's going to capture an image from the Raspberry Pi cam and reply it to your chat. So I want everyone to try it. I want the system to get overloaded and see if it works. So if you see that, the image has just come. So this is the second demo. If any of you want to try it, I'll just wait for a moment. It works. Anyone facing interruptions? The box must be in. OK, there are some errors. So I think someone might not have got their image. OK, so yeah, that was my second demo. And some of the other interesting things that I've done with this is one is, of course, you can use the camera to monitor spaces. The demo I showed you was just for image. You can also do for video. And you can use an IR camera. Another interesting thing is you can trigger builds in your office system using Jenkins or Travis. Like you're in the night and you can make the telegram bot integrated with Jenkins. It's going to tell you if the build is failed. So just re-trigger the build with a telegram bot. That's a very interesting application. Some of you could try it. You can automate parts of your home and workspace. And another interesting thing is if you guys check out api.ai, it has direct integration for telegram. So you can make your natural language processing application and just deploy it to telegram with a click of a button. So these are some, and of course, everything else. You can, anything that uses rest api, anything that uses webhooks, you can just integrate it to telegram bot and do something interesting like this. So some of the resources from where you can check it out. These will all be in the presentation which I'll put on GitHub. Any questions? Is the API only on Python? No, there are many. There is a node. There is a JavaScript. People are constantly making different APIs. But I used Python because of the setup that it was more friendly to the setup I'm using. What plan are you using on this cloud? The basic one. The one that's called Qtcat. The most basic one that gives you 10 connections. That's it. All these is working through them. There is only one, two connections currently. So the Raspberry Pi is listening, is subscribing, and the Amoeba board is posting. So yeah, just two. And how are the both on Wi-Fi? Yeah, both on Wi-Fi. Thank you.