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

Download "Telegram Bot PYTHON [ 2 ] | Команды и кнопки (Inline, Reply)"

input logo icon
Video tags
|

Video tags

telegram
bot
telegram bot
telegram bot on python
telegram bot python
python
bot python
script
code
fsoky
telebot
Telegram Bot API
api
фсоки
телега
телеграм
бот
бот на python
питон
бот для телеграм на pyhon
как написать бота
бот для телеграм
телеграм api
commands
inline
reply
button
reply button
inline button
telegrambot
программирование
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:01
will learn how to create teams and
00:00:04
we will also learn how to set the keyboard, that
00:00:06
is, buttons, and who has a problem there,
00:00:09
someone simply refuses
00:00:10
to start because someone lives in
00:00:13
Russia and they blocked the creation of
00:00:16
bots in the territory Russia and this is
00:00:20
very stupid because the teeth have blocked
00:00:23
this opportunity and you can download a VPN
00:00:26
or install a proxy server, I
00:00:28
don’t understand this at all and I live in another country and
00:00:31
I have no problems and I don’t know how to
00:00:33
solve your problem, maybe you need to
00:00:35
download vpn let's learn how to create
00:00:38
commands for our telegram bot
00:00:41
we register the client
00:00:44
message engler here and here we register the
00:00:48
commons parameter here we open the list from the
00:00:51
list we can add certain
00:00:53
commands for example get info
00:00:55
or there is an elephant, that is, it is the same
00:00:58
command just with different writing
00:01:00
further let's create a function for
00:01:02
example get user we will receive the
00:01:06
user's information for example it will be
00:01:08
just an ID and his nickname here we
00:01:12
pass the printer massage and let's now
00:01:14
create
00:01:15
our buttons in general there are two types of buttons
00:01:18
as far as I know these are replicas and board
00:01:20
markup and also inline keyboard markup
00:01:23
replicas and board markup is attached under ours
00:01:26
where we enter messages and inline
00:01:30
keyboard markup is attached under our
00:01:32
message, for example, I wrote a message
00:01:34
and a button of some kind is attached under this message,
00:01:37
let’s now create
00:01:40
online buttons and then move on to the
00:01:42
replicas button mark up in power example, this
00:01:47
will be the variable, this
00:01:49
will be and also let's import types to work with
00:01:53
buttons,
00:01:54
import tele boat from tele, here's import in
00:01:57
that great, we write here types in line which
00:02:02
word mark of
00:02:06
and we don't pass any parameters, in
00:02:08
any case, I don't know the parameters you
00:02:11
you can read the documentation and what we are
00:02:13
saying, we have now created an
00:02:14
online keyboard with you that is attached
00:02:17
under the messages, then we need to add
00:02:19
buttons for this keyboard, let's
00:02:22
do this for example, write oh there is a forest and
00:02:25
here we write types.
00:02:29
in-line kay
00:02:32
port barton
00:02:35
online gay board loaf and here we
00:02:39
enter the following parameter text and
00:02:41
also
00:02:42
call back call back to do the
00:02:47
parameter text we will write with you yes and in
00:02:52
call Bagrat u we will place with
00:02:54
that is, with the help of call back dates we
00:02:57
can with you to set certain
00:02:59
conditions if the user clicked on the
00:03:02
button yes then some action is triggered then
00:03:05
give them another
00:03:08
button but here we prescribe the
00:03:11
same thing so that there are no 40
00:03:14
questions further the same parameters
00:03:15
only here we already have entries and in the
00:03:18
callback date we we register, well, great,
00:03:21
and now let’s put these buttons in
00:03:23
our keyboard, how to do this, we
00:03:26
register our main variable
00:03:28
mark up in line guide and there is such a
00:03:31
function, we put these two
00:03:33
variables here, oh there’s a forest and an
00:03:36
item, well, that is, one is our buttons,
00:03:39
then we we must display a message to
00:03:41
which our buttons will be attached and
00:03:43
you already know what the
00:03:46
send message client looks like,
00:03:48
we display it in the chat from the chat.
00:03:51
go and display the text for example it will be
00:03:55
you want to know a little information about
00:04:01
you
00:04:02
for example it will be like this or about your account
00:04:04
in principle it doesn’t matter then let’s
00:04:07
write here the parameter a reply
00:04:09
mark up and here we place our main
00:04:13
variable mark up in line so that these
00:04:16
buttons tricks are attached to our
00:04:18
message next, let's create a
00:04:21
reverse request handler, that is, let's
00:04:24
write a decorator, it's
00:04:27
written like this: client call back every
00:04:33
handler great, then here we pass a
00:04:37
small fun function, for example, this
00:04:40
will be our lando lando
00:04:42
called schools and labor actually I
00:04:48
don't I figured out what this function is for,
00:04:50
so well, excuse me, I realized that it’s
00:04:53
just that we process some kind of event
00:04:58
when this button is clicked, if you know,
00:05:00
please write in the comment
00:05:02
I’m interested in finding out why
00:05:04
we are creating such a small
00:05:06
function here next we create a function for
00:05:08
example called on sofa, here we
00:05:11
pass the parameter cold conditions if
00:05:14
schools. date is equal to and with then we
00:05:19
perform some action if the count
00:05:22
date is equal to exactly well that it performs some
00:05:27
action that is, we wrote down oh
00:05:30
there is and Anton, well, we placed
00:05:32
no parameters and this one of their
00:05:35
parameters is cal big data and as we see
00:05:38
here we have the value c, that is, here
00:05:40
we write e100, the user pressed the button until
00:05:43
it is transferred to this function and
00:05:46
processing begins here, that is, gal bagdad
00:05:49
and caught if e100 he executes this
00:05:51
code if the laptop and here is this code and let's let's
00:05:55
go to kest here we will also create a keyboard with you
00:05:57
and let's call it
00:06:00
like markup only we will have a replica
00:06:05
here we write types and write
00:06:08
reply key
00:06:09
worth more than replicas and board mark is
00:06:14
excellent and then let's add here the
00:06:17
parameter resize key board equals trust
00:06:21
that is, why do we need this
00:06:23
parameter? We need this parameter in
00:06:25
order to make our keyboard
00:06:28
smaller. If we don’t pass it on, then our
00:06:30
buttons will be large and not very
00:06:33
beautiful, so I advise you to pass it on to
00:06:35
you, well, you can see for yourself how without
00:06:37
it but what to do with this and let's add
00:06:40
our buttons here too,
00:06:42
and go, for example, here we have a button, go
00:06:45
here, we have registered types
00:06:47
types key board loaf, just note
00:06:52
here without any reply in line of
00:06:55
here just key board loaf and here we
00:06:58
just put the text for example,
00:07:01
my ID is like this, we will have
00:07:05
text here and also here another
00:07:08
button will be this username
00:07:11
user name here we write the
00:07:14
same keyboard loaf and here we will place
00:07:19
my money excellent, then let’s add these
00:07:21
buttons and attach them to our
00:07:24
keyboard, we again register here is the
00:07:26
main variable markov reply so
00:07:28
to speak our keyboard and
00:07:30
function from here we enter our buttons
00:07:33
oh there ID and oh there username great we
00:07:39
entered them
00:07:40
and now let's display the text
00:07:42
corresponding to the send message client and
00:07:47
note that we did not pass the
00:07:49
a message parameter here so we You must
00:07:51
first contact the count,
00:07:52
that is, the hall. month . chat
00:07:56
Aida, there will be such a record to
00:07:59
transfer our text to the chat, then we
00:08:01
transfer the text to the example, click on one
00:08:05
of the buttons and then we must transfer
00:08:09
these
00:08:10
buttons to you, bind them to our input, so to
00:08:13
speak, we can reply
00:08:15
Markov equals and send our variable
00:08:19
Markov Ripley, that is our keyboard
00:08:21
with which we just tied up our
00:08:24
buttons and, in principle, almost everything,
00:08:28
now we move on to our content
00:08:30
types text, that is, the
00:08:32
message handler, you can, in principle, delete
00:08:35
your chat bot or create a new
00:08:38
function, it is created all the same now, I’ll even
00:08:41
show you create a new function, change her
00:08:45
name is there and work with her, well, I’ll
00:08:51
just delete this chatbot, in
00:08:53
principle, I don’t need it, and I’ll describe it further
00:08:55
and heart massage is equal to my ID
00:09:00
who is displayed some code if not
00:09:05
massage sex is
00:09:06
equal to my nickname then some kind is also performed -
00:09:10
then we will open the code simply messages
00:09:13
client send message massage charm.
00:09:18
and go ahead and what are we doing here? We’re
00:09:21
just sending the formatting sign to the tea
00:09:23
and we’re writing, for example,
00:09:27
the ID and here we have the
00:09:30
from users method.
00:09:34
see that is, we get about food and the user,
00:09:36
we can also
00:09:38
copy and paste this line into my nickname, for example,
00:09:41
here we will have first name and also
00:09:46
let's copy this method and
00:09:48
go ahead with our formatting and just
00:09:51
add laskin here, that is, it
00:09:53
will be we send the username and
00:09:55
surname of the user to whom he indicated and,
00:09:58
in principle, that’s all, that is, I
00:10:01
will now explain to you how it works, we
00:10:03
created a keyboard here and linked it,
00:10:06
now when we click on one of the
00:10:08
buttons, this text is sent to us
00:10:11
in our chat which you wrote here you
00:10:14
wrote here, for example, a message and
00:10:16
clicked on the massage button and this message
00:10:20
was sent
00:10:21
to our chat, that is, the following value of my ID will be sent to our chat
00:10:26
and here in the message handlers we
00:10:29
check if in our chat
00:10:31
if my text is present in our content
00:10:35
ID then it displays the following
00:10:38
message
00:10:39
I hope you understand let's launch
00:10:41
our bot and check it for errors
00:10:44
here we write our elf command
00:10:46
he will notice that the commands are written
00:10:48
through a slash we write info
00:10:51
and the text with the online keyboard is displayed if
00:10:53
you want to know a little
00:10:55
information about you we click yes and as
00:10:59
we see, the text is displayed, click
00:11:01
on one of the buttons and two buttons are displayed at once,
00:11:04
this is my ID and my nickname,
00:11:06
for example, I click on my ID and
00:11:09
our user’s ID or my nickname is displayed,
00:11:11
and here in the juice and handicap
00:11:15
and we have everything it works great, I can
00:11:17
tell you, and I also want to tell you
00:11:19
about one feature: if you
00:11:23
create commands, then you should
00:11:25
create them above the message handler, that is,
00:11:27
above the content types,
00:11:29
that is, it should always be higher, if
00:11:32
you put it below, nothing will work don’t
00:11:34
be, well, you can check it yourself, well, this is what
00:11:36
we got here, I
00:11:38
hope it’s cool, well,
00:11:41
thank you all for watching,
00:11:42
all the links are in the description, documentation, a
00:11:45
small article, good luck to everyone, bye

Description:

-=-=-=-=-=-=- Полезные Ссылки -=-=-=-=-=-=- 💻 Группа ВК: https://vk.com/fsoky 📒 Личка: https://vk.com/ansqqq ⬜️ Мой дискорд: Fsoky#9610 📚 Сервер Discord: http://fsokycomm.info/invite.php 📰 Сайт: http://fsokycomm.info -=-=-=-=-=-=- Материалы -=-=-=-=-=-=- 📁 Pypi Telegram BOT: https://pypi.org/project/pyTelegramBotAPI/ 📁 Статья: "Простой Telegram-бот на Python за 30 минут": https://habr.com/ru/articles/442800/ 📁 Документация Telegram BOT Api: https://core.telegram.org/bots/api Как показать расширение файлов: https://remontka.pro/file-extensions/ -=-=-=-=-=-=- Прочее -=-=-=-=-=-=-

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 "Telegram Bot PYTHON [ 2 ] | Команды и кнопки (Inline, Reply)" 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 "Telegram Bot PYTHON [ 2 ] | Команды и кнопки (Inline, Reply)" 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 "Telegram Bot PYTHON [ 2 ] | Команды и кнопки (Inline, Reply)" 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 "Telegram Bot PYTHON [ 2 ] | Команды и кнопки (Inline, Reply)" 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 "Telegram Bot PYTHON [ 2 ] | Команды и кнопки (Inline, Reply)"?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 "Telegram Bot PYTHON [ 2 ] | Команды и кнопки (Inline, Reply)"?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.