Python Telegram Bot Creation: Easy Tutorial for Beginners

Sdílet
Vložit
  • čas přidán 22. 07. 2024
  • In today's video we will be creating a chat bot for Telegram using Bot Father and Python. This is the perfect bot for getting started with creating more complex Telegram bots. It will show you how to get an API Token, how to customize the bot, how you can add commands to the bot, and how you can make it work in groups!
    Source Code: neamatullah.com/building-a-py...
    ---------------------------------------------------------------
    🧠 My ChatGPT Free course👇
    www.udemy.com/course/chatgpt-...
    ---------------------------------------------------------------
    🧠 My Hacking Masterclass👇
    www.udemy.com/course/the-ulti...
    ---------------------------------------------------------------
    🧠 My Complete python bootcamp + 100 Real-world Application👇
    www.udemy.com/course/python-p...
    ---------------------------------------------------------------
    🧠 My Python Automation Masterclass👇
    www.udemy.com/course/masterin...
    ---------------------------------------------------------------
    Community - www.neamatullah.com
    Facebook - / lxryofgod
    Linkedin - / neamatullah-ekhteyari-...
    instagram - / neamat_andishmand
    ---------------------------------------------------------------
    Resources:
    finding phone location using Python: • python project | Track...
    hack a computer: • How To Hack a Computer...
    the complete python bootcamp: • The Complete Python Bo...
    chatgpt for programmer: • ChatGPT For Programmer...
    Timestamps
    00:00 - Intro
    00:41 - Creating Bot With Bot father
    04:04 - Handling the Command for bot with python
    15:20 - Start the chat with bot
    #Analytics, #DataScience, #DataScientist, #Google, #WomenInTech, #coding, #codingbootcamp, #learntocode, #linux, #math, #machinelearning, #nonprofits, #programmer, #programming,

Komentáře • 11

  • @ntech559
    @ntech559 Před 3 měsíci

    The video is great thanks for the content!

  • @HazratHaji-br4zq
    @HazratHaji-br4zq Před 3 měsíci

    Nice❤❤

  • @tasbih678
    @tasbih678 Před 3 měsíci

    Is there a better way of storing the TOKEN in our script so other can't.
    And thanks the video is great... 😍😍😙

  • @anuragck8183
    @anuragck8183 Před 2 měsíci

    telegram module not found,even though i installed telegram module

  • @youtraders
    @youtraders Před 3 měsíci

    Make it on replit ser please tutorial

  • @mycheaplife1900
    @mycheaplife1900 Před 3 měsíci

    please help im getting this error
    updater = Updater(TOKEN, use_context=True)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: Updater.__init__() got an unexpected keyword argument 'use_context'

    • @AIProgrammingZone
      @AIProgrammingZone  Před 3 měsíci

      It seems like you're trying to use the use_context argument in the Updater class, but it's raising a TypeError because the use_context argument is not recognized in the Updater class.
      The use_context argument was introduced in python-telegram-bot version 12.0.0. If you are getting this error, it could mean that your installed version of python-telegram-bot is older than 12.0.0.
      To resolve this issue, you have a few options:
      Update python-telegram-bot: Update the python-telegram-bot library to the latest version. You can do this using pip:
      pip install --upgrade python-telegram-bot
      Remove use_context=True: If you're unable to update python-telegram-bot, you can remove the use_context=True argument. This may require you to adjust your code to use the old-style handlers.
      Here's how you can initialize the Updater without use_context:
      updater = Updater(TOKEN)
      However, keep in mind that removing use_context=True might affect the behavior of your bot, especially if you're using newer features that rely on the context.
      Downgrade to a Compatible Version: If for some reason, updating the library is not an option, you can downgrade to a version where use_context is not required. You can install a specific version using pip:
      pip install python-telegram-bot==
      Replace with the version number where use_context was not introduced, or where it's compatible with your code.
      Once you've taken one of these steps, your code should work without raising the TypeError.
      also the source code for this tutorial is uploaded in my blog if you need it you can follow it.
      link: neamatullah.com/building-a-python-telegram-bot-a-step-by-step-guide/

    • @mycheaplife1900
      @mycheaplife1900 Před 3 měsíci

      @@AIProgrammingZone im using python-telegram-bot version 21 the latest version

    • @AIProgrammingZone
      @AIProgrammingZone  Před 3 měsíci

      Please provide the full code ! So I understand what exactly your problem is.