Basics of creating a Telegram bot (with code/Python)

Sdílet
Vložit
  • čas přidán 21. 08. 2021
  • Coding a Telegram bot is pretty simple! In less than 10 lines of code you got your first command ready to be executed! Creating a Telegram is as simple as importing the module and starting up the bot!
    You're not much of a programmer? Learn how to create a working bot on Telegram without any code: • How to create a bot on...
    Telegram Bot API: core.telegram.org/bots/api
    pyTelegramBotAPI: github.com/eternnoir/pyTelegr...
    Subscribe for more videos: czcams.com/users/stevesteacher...
    For more programming videos, feel free to subscribe to my 2nd channel: / @programmervibe
    Python Programming Tutorials: • (Old) Python Programmi...
    C++ Programming Tutorials: • C++ Projects
    Lua Programming Tutorials: • Lua Programming Tutorials
    Become a Web Developer: • Become a Web Developer
    HTML Tutorials: • HTML Course
    TKinter Tutorials: • Tkinter Tutorials
    Linux Tutorials/Videos: • Linux Videos
    Delphi Programming Tutorials: • Delphi Programming (Tu...
    Godot Game Dev Tutorials: • Godot Game Dev Tutorials
    How-to videos: • How to
    Crash Courses: • Crash Courses
    MySQL Tutorials: • MySQL Tutorials
    Japanese Lessons: • Japanese Lessons
    Group Chats:
    Weeb Chat: t.me/weeb_haven
    Programmer Haven: t.me/programmer_haven
    You can contact me on:
    Email: StevesTeacherYT@gmail.com
    Discord: / discord
    Kitsu: kitsu.io/users/Netsu
    Twitter: @stevesteacherYT or click here: stevesteacherYT?s=09
    Hey there!!! Wanna help support the channel :D? You can donate on PayPal: paypal.me/stephenvdw?locale.x...
    Any suggestions? Leave it in the comment section or contact me somewhere else!
    Thank you for watching!
    #stevesteacher #telebot #bot #telegram #code #coding #programming #api #telebot #telepy #python #py #python3 #tg #telegramapi
  • Věda a technologie

Komentáře • 57

  • @Stevesteacher
    @Stevesteacher  Před 2 lety +8

    Hello everyone! First, I'd like to thank you for watching this video, I had a ton of fun making it! Second, if you have any questions, feel free to leave them in the comment section below, or to checkout the docs (links in description) :)
    Also, if you enjoyed the video, please leave a like and subscribe, it would mean a lot :D

  • @Abd-cw1rz
    @Abd-cw1rz Před rokem

    you cant imagine how much i was struggling with creating telegram bot as a beginner and as a non native English speaker you explained everything so good best than anyone did best video ever, liked and subscribed.

  • @kalahari8295
    @kalahari8295 Před 2 lety +2

    ❤️ Best have seen on CZcams 🔥
    Others just abstracted the syntax of the package. I really appreciate ✅

  • @cyruskabir16
    @cyruskabir16 Před 2 lety +1

    Great job buddy. Helped me a lot!

  • @dhrumilchauhan9420
    @dhrumilchauhan9420 Před 11 měsíci

    bro this tutorial was really helpful i was searching here and there to learn how to crate bot. but really you have explained very
    deeply

  • @dennysgrimaldi9623
    @dennysgrimaldi9623 Před 2 lety

    i learn a lot from your video, thx.
    Now it's my time to pull out a first bot

  • @cranberry888
    @cranberry888 Před 2 lety

    I'm from reddit, thanks a lot for the videos, he was useful to me

  • @notfunkypotato
    @notfunkypotato Před 2 lety

    THIS IS THE BEST VIDEO EVER

  • @akifsalleh2043
    @akifsalleh2043 Před rokem

    Can you help me how to hosting this code to make the telegram bot active forever?

  • @arthurrogado
    @arthurrogado Před 2 lety

    Nice video!

  • @ProgrammingWithManojSharma

    Create a video in which we have nested inline menu

  • @saralika9643
    @saralika9643 Před 2 lety

    How u control backend?

  • @gamericeking
    @gamericeking Před 2 lety

    Nice video you deserve many likes n subscribers😊

  • @fabian_ftn6604
    @fabian_ftn6604 Před 2 lety

    How do I make bot reply to message without then being a command?

  • @StorybookProduction
    @StorybookProduction Před 2 lety

    Hi there!
    Im curious how do you make the bot reply with a picture after a user send a regexp?
    Thanks!

    • @afeef5226
      @afeef5226 Před rokem

      wondering about the same thing, have you found a solution?

  • @bitcloud-botemnuvem9256

    How to use it with multiprocess ?
    PLEASE DO A VIDEO EXPLAIN IT

  • @namtran4638
    @namtran4638 Před rokem

    how to make a dice . Help me

  • @studiospan6426
    @studiospan6426 Před 9 měsíci

    Hey steve, i want to setup a key based authentication for premium and normal users on my bot . can you please help me it. i would greatly appreciate it

  • @elizadelgado1521
    @elizadelgado1521 Před 27 dny

    Has any one used the message_reaction under the Update section of the Telegram Bot API docs? I want to create a bot that records who reacts to messages sent to the groups and the amount of reactions in a group.

  • @jobianstechie
    @jobianstechie Před rokem

    Good job

  • @jagginapavan7949
    @jagginapavan7949 Před rokem

    Hello how to create bot for telegram

  • @sportshighlight390
    @sportshighlight390 Před 2 lety

    good job

  • @ashutoshpatel5030
    @ashutoshpatel5030 Před 2 lety

    🔥

  • @tinanghong2268
    @tinanghong2268 Před rokem

    How to get the value of the dice?

    • @Stevesteacher
      @Stevesteacher  Před rokem

      I recommend taking a look at the documentation ;)

  • @valhallamusic6187
    @valhallamusic6187 Před 2 lety

    🌻

  • @peroboy99
    @peroboy99 Před rokem

    Hey bro please help me 😭it shows error like
    TypeError :__init__() got an unexpected key word argument 'parse_word'
    Please help thanks🌹❤🌹

  • @ClaudioBOsorio
    @ClaudioBOsorio Před 2 lety

    Hihi thanks for the video! It's very helpful. If you don't mind me asking, how could I make the bot read a few strings in sequence like.. Give name , user enters name, give lastname , user enters lastname... Thanks!

  • @dragon444676
    @dragon444676 Před rokem

    I get ModuleNotFoundError: No module named 'telebot'

    • @Stevesteacher
      @Stevesteacher  Před rokem

      You need to install the module as shown in the video using pip

  • @peroboy99
    @peroboy99 Před rokem

    Hey bro how can i deploy this bot??

    • @Stevesteacher
      @Stevesteacher  Před rokem

      I think one of the simplest ways would be to host it on Google Cloud or AWS (or any hosting provider that will allow it)

    • @peroboy99
      @peroboy99 Před rokem

      @@Stevesteacher yes teacher but can you please make a video on that

    • @peroboy99
      @peroboy99 Před rokem

      @@Stevesteacher please make a video on that

  • @friday2.054
    @friday2.054 Před 2 lety

    What if I want to send a photo

    • @Stevesteacher
      @Stevesteacher  Před 2 lety

      The API docs are linked in the description ;)

    • @friday2.054
      @friday2.054 Před 2 lety

      @@Stevesteacher thanku....l will look at it again...but will you please make a short video on it....By the way...really informative video

    • @friday2.054
      @friday2.054 Před 2 lety

      @@Stevesteacher Actually I spend a whole day (today) on it.....but I didnt find anything.....while searching I found your video....so it is request ....

  • @younesalgerian4179
    @younesalgerian4179 Před 2 lety

    unlimited size!

  • @nicolas06gaming6
    @nicolas06gaming6 Před 2 lety

    thats fuckin high IQ LEVEL RIGHT HERE, best ytbe vids my brother. he make youunderstand every line of code, and you can start coding while understanding every thing

    • @reculture
      @reculture Před 2 lety +1

      lol you have low expectations mate. He's literally copying sample code from github link above, with every so often repeats: "i don't know what this means/does, but go on and use it"

  • @babywaffles
    @babywaffles Před rokem

    Heads up tip for everyone, when using the decorator function, "@bot.message_handler(func=lambda message:True)", and you want to check for a custom user input that is not inside the dictionary or an array but attempting to do so causes the bot to jump to another function due to multiple of that same decorator, you can use bot.register_next_step_handler(message,) to do the custom user input logic checking. It took me a week to figure it out.

    • @thereisonlyonegod3807
      @thereisonlyonegod3807 Před rokem

      Everything is working for me, but my VScode is showing yellow line under telebot though it is same interpreter i am using for project. Can you help please? (Still it works but i dont know why line is there)

  • @tanyalouise3586
    @tanyalouise3586 Před 2 lety

    Getting this error:
    Traceback (most recent call last):
    File "c:\Users\DELL\Documents\python\telegrambot.py", line 5, in
    bot = telebot.Telebot(API_KEY)
    AttributeError: module 'telebot' has no attribute 'Telebot'

    • @Stevesteacher
      @Stevesteacher  Před 2 lety +3

      Remember to install telebot via pip (make sure to install the correct one, pip install pyTelegramBotAPI), then you need to import it with: import telebot, then make sure to capitalize that 'b' in telebot.Telebot, so it is: telebot.TeleBot

  • @fendi3184
    @fendi3184 Před rokem

    I’m sorry bro but you don’t explain nothing how am I suppose to create a bot without knowing I had to have visual studio code?

    • @Stevesteacher
      @Stevesteacher  Před rokem

      Just use a different text editor, VSCode is just what I prefer, but it is not required

  • @teametf2532
    @teametf2532 Před 2 lety

    Wow! You're scary!

  • @reculture
    @reculture Před 2 lety

    Sounds to me that you suffer lisp or some similarly annoying speech impediment, if thats the case i hope you get well. good luck