How to create a Telegram Bot for FREE in Python - Commands & Messaging

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • In this lesson we will be covering the main code that's required to make the bot function, and also how to add descriptions to our commands.
    Source Code: github.com/fed...

Комментарии • 33

  • @goldentertainment2335
    @goldentertainment2335 3 года назад +6

    Awesome Videos Buddy , I watch all the video on RUclips of Telegram Bot making, But Nobody explain like u, Please Continue this telegram series, & thank you for the logging method, I look for it for a while,

    • @benizukebeni
      @benizukebeni 2 года назад

      yeah dude, this is much better than the other

    • @virgo2004
      @virgo2004 2 года назад

      @@benizukebeni still.. please continue this

  • @digitalmarketingsimplify
    @digitalmarketingsimplify Год назад +1

    cannot import name 'Animation' from 'telegram' WHAT TO DO?

  • @mmrgan
    @mmrgan Год назад +1

    for some reason "use_command" doesnt work

  • @ilyassimo7530
    @ilyassimo7530 Год назад +1

    I was paying attention closely until you had me at " we need to keep our computers on in order that the bot stays alive" is there any workaround for this one 😢

  • @them_best
    @them_best 3 года назад +1

    question about the program, where is handle_message declared?
    i copied the program but python says "NameError: name 'handle_message' is not defined"
    the program run without this line but still i'm curious about this error code

    • @Indently
      @Indently  3 года назад

      It's declared right under the custom_command function. And then it's use to create the MessageHandler at the bottom of the code.

  • @sltechkolla9182
    @sltechkolla9182 2 года назад +1

    How can I code to sending files?

  • @otavioaugustosoaresoliveir3695
    @otavioaugustosoaresoliveir3695 3 года назад +1

    Hello I have a question. I did the same as you, however my bot is returning the message "Process finished with exit code 0", 5 seconds after I start it. What can I do?

    • @Indently
      @Indently  3 года назад

      I have the source code available here incase of any issues: github.com/federicocotogno/premium_telegram_bot_2021
      Otherwise, are you running this in PyCharm on Python 3.8?

    • @otavioaugustosoaresoliveir3695
      @otavioaugustosoaresoliveir3695 3 года назад

      @@Indently yes in PyCharm, however on Python 3.9. I just Ctr+C -> Ctr+V the code from the link and changed the API_Key.

    • @Indently
      @Indently  3 года назад

      I recommend cloning the code from GitHub, with all the packages, it's very easy to miss important information when copying and pasting.
      Also, is your main file called: "main.py"?

  • @PJOHNRUBENRAJURKCS
    @PJOHNRUBENRAJURKCS 2 года назад +1

    in line 47 of yours that handel_message it shows error for me

    • @Indently
      @Indently  2 года назад

      You spelled handle_message wrong, please always check your spelling in the future.

  • @th-em2zg
    @th-em2zg 3 месяца назад

    Hello, thank you for your video.
    I have a question. If I try to run the Terminal it shows following error: TypeError: Updater.__init__() got an unexpected keyword argument 'use_context
    Please tell me what I can do?

    • @geethadurgamanasa2369
      @geethadurgamanasa2369 3 месяца назад

      Did you fix this error?

    • @th-em2zg
      @th-em2zg 3 месяца назад

      @@geethadurgamanasa2369 No, but now I know that my code is correct. It is possible that I have a problem with Python. Now I have created a bot without coding and it works good.

  • @asimnns
    @asimnns 2 года назад

    is there any way bot can response to channel message????

  • @karthikanmanogaran8203
    @karthikanmanogaran8203 3 года назад

    Hello I have a question. I would like the answers given to the custom command to be added to an excel list. Can you help?

    • @Indently
      @Indently  3 года назад

      Hey! I would extract the values from the csv and store them in a list or something. realpython.com/python-csv/

  • @EthioCybrary
    @EthioCybrary 2 года назад

    How can we filter unknown command ?

  • @r4w7_
    @r4w7_ 2 года назад

    how i can bot delete msg member or me

  • @kryptoabi
    @kryptoabi Год назад +1

    NameError: name 'updater' is not defined