background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "Загружаем aiogram бота на бесплатный сервер"

input logo icon
Audio from this video
|

Audio from this video

Similar videos from our catalog
|

Similar videos from our catalog

aiogram 3 - Telegram бот python #6 FSM Машина состояний, Админка в боте, Диалоги, фильтр IsAdmin
39:34

aiogram 3 - Telegram бот python #6 FSM Машина состояний, Админка в боте, Диалоги, фильтр IsAdmin

Channel: Python Hub Studio
Как сделать бота для TELEGRAM на Python? | Бот модератор
17:02

Как сделать бота для TELEGRAM на Python? | Бот модератор

Channel: Хауди Хо™ - Просто о мире IT!
aiogram 3 - Телеграм бот на python #3 Роутеры, организация проекта, команды
21:48

aiogram 3 - Телеграм бот на python #3 Роутеры, организация проекта, команды

Channel: Python Hub Studio
Telegram бот на python с aiogram 3 [2 часть] Курс создания бота | API Telegram, документация aiogram
23:54

Telegram бот на python с aiogram 3 [2 часть] Курс создания бота | API Telegram, документация aiogram

Channel: Python Hub Studio
Телеграм бот на python с aiogram 3 | Курс создания telegram бота с нуля [1 часть]
21:11

Телеграм бот на python с aiogram 3 | Курс создания telegram бота с нуля [1 часть]

Channel: Python Hub Studio
aiogram 3 - Telegram бот на python #4 Магические фильтры, Кастомные фильтры, фильтрация сообщений
44:58

aiogram 3 - Telegram бот на python #4 Магические фильтры, Кастомные фильтры, фильтрация сообщений

Channel: Python Hub Studio
Урок для начинающих по PyTest #7.1 | Пишем простенький и элегантный билдер для генерации данных
38:10

Урок для начинающих по PyTest #7.1 | Пишем простенький и элегантный билдер для генерации данных

Channel: SolveMe
Telegram бот на python aiogram #8 Инлайн inline кнопки
31:29

Telegram бот на python aiogram #8 Инлайн inline кнопки

Channel: Python Hub Studio
Асинхронная SqlAlchemy | База Данных в Telegram боте на aiogram 3 #7 Middleware слои, CallbackQuery
1:39:21

Асинхронная SqlAlchemy | База Данных в Telegram боте на aiogram 3 #7 Middleware слои, CallbackQuery

Channel: Python Hub Studio
Telegram бот python aiogram 3 #8 Многоуровневое инлайн меню, каталог, пагинация, корзина товаров
1:36:53

Telegram бот python aiogram 3 #8 Многоуровневое инлайн меню, каталог, пагинация, корзина товаров

Channel: Python Hub Studio
Video tags
|

Video tags

телеграм
телега
telegram
bot
telegram-bot
python-telegram-bot
telegram bot
бот
телеграм бот
aiogram
уроки
lesson
telebot
pytelegrambotapi
python
aiotg
docker
докер
питон
аиограм
база данных
бд
postgresql
deploy
деплой
сервер
на сервере
в фоне
фон
амазон
aws
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:02
watch my lessons and
00:00:03
this is a continuation of the last lesson in which
00:00:06
we were able to create a bot with balances and
00:00:08
referrals
00:00:09
and used docker and a database in
00:00:12
this short video I will show you
00:00:14
a few changes that will help us
00:00:17
create a bot create and install and
00:00:19
run the bot through the container with
00:00:22
one command, practically, and I also thought it
00:00:25
would be nice
00:00:26
at the end of this video to create a server on
00:00:28
Amazon and DPS for only 1 dollar for 1
00:00:32
year and we can have the flesh of our bot there behind us.
00:00:35
For starters, let's take a look at the
00:00:39
changes that we have, well,
00:00:41
-first
00:00:42
the guys of the press and I noticed that I
00:00:45
created a table in the creed db file
00:00:48
without checking whether it was created earlier,
00:00:51
that is, the users table
00:00:52
and we were simply created and it could
00:00:55
give an error if the table already exists, we
00:00:58
can compare using com 1
00:01:01
and select ours in the lesson on the fifth floor, the
00:01:09
same file and we see that here the
00:01:12
squeak exec has been added, that is, if the table does not
00:01:16
exist, we create it and in the same way
00:01:19
this applies to the index, there is further besides
00:01:25
this in instead of using commands in
00:01:28
but for rushing the database to query in the
00:01:31
database
00:01:32
people they recommend using o r m, that
00:01:35
is, let’s say, as far as I understand, gina
00:01:38
there is such a thing that is
00:01:41
used instead of commands. We have
00:01:43
created a class users, more precisely for the user, and the
00:01:48
table is called users, that is, in
00:01:51
principle, that is, we also
00:01:53
only have two columns of IT other nicknames we
00:01:56
can create more columns and
00:01:59
different operations are carried out here, you can
00:02:01
look and search on the Internet, here is
00:02:03
actually the one I copied
00:02:05
and I will leave a link to git hop, you
00:02:09
can also take a look and see how it is
00:02:11
used also in the campus docker file
00:02:14
I indicated the ports that we will
00:02:17
use our programs so
00:02:22
that you can access them and
00:02:25
the days of our server, that is, in our
00:02:27
database and cabinet you could connect
00:02:30
outside the
00:02:31
server, and in this video I will show you how to
00:02:33
run container bots now you
00:02:36
see the main advantage of
00:02:37
using it, but if you don’t watched the
00:02:39
previous lessons, be sure to watch it
00:02:42
because if you don’t know what
00:02:43
docker is it will be difficult to understand we
00:02:46
add a couple of lines in the docker file
00:02:48
campus firstly we create a program
00:02:51
here services to both and we call it a
00:02:55
container we indicate that we
00:02:58
will have a bot it will be built on the basis of the
00:03:00
docker file that
00:03:03
we also created here, so it loads the docker
00:03:06
file from the current folder, so build
00:03:08
context and .
00:03:10
where the dot indicates that docker far
00:03:12
is in the same folder as joker
00:03:14
campus next commands is the command that will
00:03:18
run our then up stage bot. restart
00:03:22
is the condition by which our bot will
00:03:25
reboot because we want
00:03:27
it to reboot if it crashes or if it
00:03:29
rebooted behind the server, that is, we always
00:03:31
set the loys and the last one and file is the
00:03:36
file from which the
00:03:39
variable environment will be loaded, this is exactly what we have before
00:03:42
I wrote it here in the database,
00:03:45
we imitate from that elf and we
00:03:48
don’t load the frame replacement, but in the docker file itself we
00:03:52
write the following commands, we
00:03:54
specify chrome,
00:03:55
that is, the program on the basis of which
00:03:59
our program will be created, well, in
00:04:00
other words, and the mouse
00:04:02
since we will use python we
00:04:04
indicate from python lightest,
00:04:06
that is, the latest version, but in general
00:04:08
we don’t need version 37, that is, if you
00:04:11
come out with 38, there may be some
00:04:14
changes that will not allow us to
00:04:15
use it, but for now we are using
00:04:17
matas,
00:04:18
then we perform the action using the
00:04:19
run command but as
00:04:21
the documentation suggests, each run command creates a
00:04:24
new image, so we need to create
00:04:26
only one, run it once, we
00:04:29
create a heart directory and move
00:04:31
into it, make it a working territory,
00:04:34
after that we copy all our files
00:04:36
from the current directory to the heart and we
00:04:40
run pip install advertising ns that is,
00:04:42
all our dependencies are loaded after
00:04:46
this the commands will be launched command from
00:04:49
docker campus which will launch the bot
00:04:52
this command also I want to note that
00:04:56
we will now do the creation of the table using our
00:04:58
bot before God says I’m running
00:05:01
that is, let’s go to the file in my opinion
00:05:06
oh yes, before it says I’m running,
00:05:09
it must load the database, that is,
00:05:12
firstly,
00:05:14
since we will be
00:05:16
launching the Abbott admin database in parallel,
00:05:18
it may take some time until the
00:05:21
database starts, but it can already
00:05:23
be launched, so we set a delay
00:05:25
in this function for 10 seconds while the
00:05:28
database is loaded and then we
00:05:31
create our table,
00:05:32
that is, we execute this function
00:05:36
here,
00:05:38
now our bot is ready to launch and for
00:05:42
this we need only one command, the same as
00:05:44
before, we will launch our
00:05:47
docker first, now we can launch our
00:05:55
bot let's first check
00:05:58
if nothing is working for us, it works,
00:06:04
so I will now delete everything that we
00:06:06
have, it will be using the docker command
00:06:12
you,
00:06:14
here is the admin of the fish from the feathers, I will remove
00:06:26
poker rm and now we launch docker he
00:06:32
crawled
00:06:34
about the field,
00:06:38
let's get them first built, the
00:06:42
database started, 10 seconds passed
00:06:47
and our bot created users tables
00:06:52
and our bot sent us a message that it was
00:06:55
launched, we see that one person has
00:07:00
just been added to the database, I add coins and
00:07:03
everything works fine, that is, with one
00:07:06
command our bot started and
00:07:08
database and admins in order to
00:07:12
install our work on ubuntu that is
00:07:15
our server you will need to
00:07:17
copy the ubuntu folder to this server
00:07:21
and run the file docker install
00:07:24
thousands that is the commands this is your file
00:07:27
that executes a certain set of
00:07:30
commands to download docker install
00:07:32
it and install docker campus after
00:07:35
that we make the command docker campus about
00:07:38
which executes this whole
00:07:41
set of commands and since bots usually
00:07:43
work on servers in this video we will
00:07:46
now look at how to create a server and
00:07:48
behind the flesh of the bot there so let's
00:07:51
start creating our
00:07:53
server for this we need to go to
00:07:56
amazon and dvs and create an account here in
00:08:01
order to create a server you will
00:08:03
only need a credit card with
00:08:06
one dollar on the balance and a mobile
00:08:09
phone well natural email
00:08:11
I’m here I’m entering my data now I
00:08:16
select a personal account I enter my
00:08:22
number phone
00:08:24
now I describe my credit
00:08:28
card number I enter my phone number and
00:08:31
go through the captcha
00:08:33
now after I
00:08:34
have registered I will go to
00:08:37
services and network and I will have power
00:08:43
such a message that is, Amazon needs
00:08:45
some time to confirm our
00:08:48
account so we need to wait a little
00:08:51
time Previously, it was possible to create
00:08:53
our server, but in order not to wait for a long time,
00:08:56
I have already logged into the created account, I
00:08:59
go to and heart and I click launch
00:09:04
instance in order to create a new
00:09:07
server, we will use ubuntu
00:09:11
server 1804 so you we select it and
00:09:15
we we choose the type that is suitable for the
00:09:19
Fritz, that is, free
00:09:22
free use is t 2 micro
00:09:24
which will be used for a
00:09:26
year we click preview in life in
00:09:32
principle we will not change anything
00:09:35
so we just click mine we create a
00:09:39
new type and
00:09:41
yes it has a name let's say am as we
00:09:45
let's call it a server,
00:09:49
download and launch now we will need to
00:09:53
connect to our server in order to
00:09:56
do this we find our
00:09:59
server now that our server
00:10:02
has loaded more precisely it is loading we
00:10:05
get our public IP we copy it
00:10:08
and we go to the command line to
00:10:14
connect to our server we
00:10:16
need a pavlik ip and we need our key
00:10:19
what do we need to do we need to enter
00:10:21
the command and neighbor our public ip
00:10:24
probably we will enter ubuntu as our
00:10:31
user name and in order to
00:10:34
connect using the key we
00:10:35
will need to enter like this oh and give the path to to our
00:10:41
key
00:10:43
in order to copy the path we
00:10:47
just copy this file and paste it
00:10:50
here we enter the weight and please we
00:10:58
have connected to our server
00:11:00
now in order to launch our
00:11:03
bot everything is quite simple we go to
00:11:06
git hop this repository
00:11:10
and we need to do what we need
00:11:14
in -first, we need to create a folder in the ubuntu folder
00:11:16
that we will call
00:11:20
bot, we go into it, now we need to
00:11:25
download our repository, that is, we
00:11:27
take the guide and the
00:11:30
link on the flexible one, please, we see
00:11:36
that in the list of folders we have our folder, the
00:11:40
bot program, we go into it we
00:11:45
look at what we have here in the lesson we
00:11:47
go to the fifth lesson we look at what
00:11:51
folders we have here we go into ubuntu
00:11:54
because we would already be on our server
00:11:57
now we look at we have a lot of files here
00:12:00
as I already said we first need to
00:12:02
launch installing docker in order to
00:12:05
install install on the stock you need to enter the command
00:12:07
sudo su
00:12:08
that is, we are now under root and we
00:12:12
execute the docker command so that you
00:12:16
will docker install site
00:12:22
now we wait after everything is
00:12:27
installed we go back to the folder
00:12:30
c and d mind
00:12:35
riot, yes, there since five point and
00:12:48
now we have everything installed in order to
00:12:52
run our bot, but first I
00:12:55
want to close it, but if I don’t have it
00:12:57
closed here, again docker and look, we have all
00:13:04
oxides, that is, we have all bots, everything
00:13:07
the programs on this computer are closed,
00:13:09
so you can safely run it here on the
00:13:11
docker campus server about build a
00:13:17
g.na will not be copied from us right now in order to
00:13:21
do this I will take my
00:13:24
date file and
00:13:25
here we indicate the localhost the
00:13:31
rest remains now to create
00:13:35
our dating file
00:13:37
we take enter on that elf and
00:13:41
copy here I protect our data
00:13:48
let me show you again to save
00:13:52
it there x further weight and enter now we
00:13:57
can build our work
00:14:04
now we see that there were a few errors
00:14:07
but nevertheless it will start and
00:14:10
create the table users, we can now
00:14:14
press start and everything works as we did, and
00:14:19
now we wanted to close
00:14:23
our bot and everything continued to work, we
00:14:25
press control z and we can, in principle,
00:14:30
close our server and
00:14:33
everything will continue to work, so in this
00:14:36
simple way you can pass and the
00:14:39
area of ​​your bot on the new server,
00:14:42
thank you all for watching

Description:

Обновленные видео с Aiogram 3 уже на платформе, поэтому выкладываю уроки по Aiogram 2 в открытый доступ. Чтобы зарегистрироваться на платформе и изучать новый курс по Aiogram 3 переходите по ссылке: https://botfather.dev/ Присоединиться к нашему сообществу программистов в телеграм: https://t.me/bot_devs_novice Телеграм канал: https://t.me/botfatherdev Написать вопрос относительно курсов, тарифов: https://t.me/botfatherdev_support --- Ссылки из ролика: Уроки на Гитхабе (это 5 урок) - https://github.com/Latand/telegram-bot-lessons Gino - https://github.com/python-gino/gino http://gino.fantix.pro/en/latest/

Preparing download options

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All
* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players

Questions about downloading video

mobile menu iconHow can I download "Загружаем aiogram бота на бесплатный сервер" video?mobile menu icon

  • http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.

  • The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.

  • UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.

  • UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.

mobile menu iconWhich format of "Загружаем aiogram бота на бесплатный сервер" video should I choose?mobile menu icon

  • The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.

mobile menu iconWhy does my computer freeze when loading a "Загружаем aiogram бота на бесплатный сервер" video?mobile menu icon

  • The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.

mobile menu iconHow can I download "Загружаем aiogram бота на бесплатный сервер" video to my phone?mobile menu icon

  • You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.

mobile menu iconHow can I download an audio track (music) to MP3 "Загружаем aiogram бота на бесплатный сервер"?mobile menu icon

  • The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.

mobile menu iconHow can I save a frame from a video "Загружаем aiogram бота на бесплатный сервер"?mobile menu icon

  • This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.

mobile menu iconWhat's the price of all this stuff?mobile menu icon

  • It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.