WEBVTT

00:00.350 --> 00:03.800
You can now take photos using the Raspberry Pi camera.

00:03.950 --> 00:06.250
Let's now switch to the telegram bot.

00:06.260 --> 00:07.610
So why telegram?

00:07.790 --> 00:15.620
Well, telegram is a quite good and open messaging app with the possibility of creating useful bots

00:15.710 --> 00:22.850
about basically is a program that will interact with the chat on the telegram application and the bot

00:22.850 --> 00:29.540
will be running where we'll be running in the Raspberry Pi as a Python program, for example, you can

00:29.540 --> 00:36.140
send a message to a chat from the Raspberry Pi and you can also respond to some comments that you type

00:36.140 --> 00:37.400
directly on the chat.

00:37.430 --> 00:41.060
We are going to see both cases in the following lessons.

00:41.060 --> 00:47.600
But first we need to do a few configuration steps to create this bot on the Telegram app.

00:47.780 --> 00:52.520
The very first step is to create a telegram account from your phone.

00:52.610 --> 00:56.170
Telegram is free, so no problem with that.

00:56.180 --> 01:06.690
So you go to the Telegram website here with telegram.org and you download one of the application.

01:06.730 --> 01:07.220
Okay.

01:07.230 --> 01:13.590
So if you have like an Android phone, a iPhone or a Windows phone, for example.

01:13.590 --> 01:17.520
So you download the application and you just follow the setup.

01:17.550 --> 01:18.090
Okay.

01:18.270 --> 01:23.130
So with telegram you need to link your account to your phone number.

01:23.160 --> 01:23.400
Okay.

01:23.400 --> 01:26.760
That's why you need to start the account from your phone.

01:26.790 --> 01:30.990
Then you are free to use any of the phone, tablet or desktop application.

01:30.990 --> 01:33.000
So I'm not going to show you the setup.

01:33.000 --> 01:38.940
You just basically well, you just download an application and you just click on next until you get

01:38.940 --> 01:44.460
to the chat and then, well, you can use the application from anywhere.

01:44.460 --> 01:49.920
If you want to use your application from your phone, you can do that if you want to use the application.

01:49.920 --> 01:55.530
Also, you can download it for Windows, you can download it for Mac OS, you can download it for Linux.

01:55.530 --> 02:00.090
And that's what actually I'm going to do here is I'm going to use the application.

02:00.090 --> 02:07.170
So I have the application on my phone as well, but I'm going to use the application, the desktop application

02:07.170 --> 02:13.920
also from the Raspberry Pi desktop, just so it is simpler for me to record the video basically so I

02:13.920 --> 02:19.020
can have the Python program, the Arduino program, and I can also have the telegram application.

02:19.020 --> 02:19.500
Okay.

02:19.500 --> 02:22.320
But you don't need to use the telegram application here.

02:22.320 --> 02:24.780
You just use it anywhere you want.

02:24.780 --> 02:30.270
And so if you want to use the Telegram app from a Windows or Mac OS, you just download it from the

02:30.270 --> 02:38.700
website and if you want to use it from Linux, well you can just do sudo apt install.

02:39.710 --> 02:43.970
Telegram desktop with Autocompletion.

02:44.330 --> 02:44.780
Okay.

02:44.780 --> 02:53.330
And well, for me it's already installed, but well, on any Linux you just do this and then you will

02:53.330 --> 03:02.000
see that if you go to the menu and internet, you have the web browser and you have Telegram desktop.

03:04.850 --> 03:05.270
Okay.

03:05.270 --> 03:06.860
And now you have the Telegram app.

03:06.860 --> 03:11.930
So this will look exactly the same on mobile or on the desktop application.

03:11.930 --> 03:12.740
So that's great.

03:12.740 --> 03:15.920
Basically, you have a list of chats, you can have your contact, everything.

03:15.920 --> 03:19.370
So I'm not going to explain to you how a messaging app works.

03:19.370 --> 03:23.270
And now, well, your account is correctly configured.

03:23.300 --> 03:25.430
We can create a bot.
