How To Create A Telegram Bot Using Python? | Telegram Bot In Python Tutorial | Python | Simplilearn

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

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

  • @SimplilearnOfficial
    @SimplilearnOfficial  2 года назад +16

    🔥Data Scientist Masters Program (Discount Code - YTBE15) - www.simplilearn.com/big-data-and-analytics/senior-data-scientist-masters-program-training?DTM8&Comments&RUclips
    🔥IITK - Professional Certificate Course in Data Science (India Only) - www.simplilearn.com/iitk-professional-certificate-course-data-science?DTM8&Comments&RUclips
    🔥Caltech Post Graduate Program in Data Science - www.simplilearn.com/post-graduate-program-data-science?DTM8&Comments&RUclips
    🔥Brown University - Applied AI & Data Science - www.simplilearn.com/applied-ai-data-science-course?DTM8&Comments&RUclips

    • @kissmeifyouloveme5983
      @kissmeifyouloveme5983 2 года назад +4

      Why are u liking it by yourself 😒.

    • @BraidyAirdrop
      @BraidyAirdrop Год назад

      How to save this code for permanently?

    • @JendX12
      @JendX12 Год назад

      Hello sir Can you help for mac users also

  • @NewshaAdib
    @NewshaAdib Год назад +55

    when i run the program, it show me " No module named 'telegram.ext'; 'telegram' is not a package" error although the telegram bot is installed. what should I do?

  • @GksBijoy-md2fc
    @GksBijoy-md2fc Месяц назад

    Thank you, sir. This is an old video but I am successful.
    I successfully ran my first bot by Python.
    Thanks again.

  • @akashedits4852
    @akashedits4852 Год назад +7

    ERROR: Could not find a version that satisfies the requirement telegram-python-bot (from versions: none)
    ERROR: No matching distribution found for telegram-python-bot
    bro tell about this issue !!!!!!!!!!!!!!!!!!!!! package hi available nahi hai

  • @hisarhisar1987
    @hisarhisar1987 2 года назад +7

    Thanks, i was looking for it.

  • @alexablerdu6224
    @alexablerdu6224 Год назад +7

    Thanks so much but for me I don’t have the Microsoft visual code. Can I use the IDLE and how do I open it using the cmd

  • @foydaliimkoniyat247
    @foydaliimkoniyat247 9 месяцев назад +2

    hi, I also really wanted to create a telegram bot, but I couldn't. you did not show how to install pip packages in the video. How to run the code without pip files...

  • @joliluddin17
    @joliluddin17 11 месяцев назад

    nice video

  • @sahaveerreddy742
    @sahaveerreddy742 Год назад +6

    Hello. I have created a bot which saves the fileids, name of documents received by the bot to MongoDB.
    Now, I want to use an Inlinequery to fetch the documents saved in mongod.
    I am able to return fileid saved in MongoDB using inline query but not able to send the document. Is there a way to send the document using Inlinequery

  • @prince-gamingarmy5746
    @prince-gamingarmy5746 Год назад +1

    I am getting this error 'Module' Object is not callable

  • @royalkhan2889
    @royalkhan2889 Год назад

    Will u customise telegram bot according to specific business need

  • @funwithezaz1176
    @funwithezaz1176 Год назад

    Bro can you make a video for telegram music bot 😢

  • @yuktikashyap3374
    @yuktikashyap3374 Год назад +9

    I am facing this error plz help
    Updater.__init__() got an unexpected keyword argument 'use_context'

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

      "This error message is indicating that the Updater class in the telegram library doesn't have an argument named use_context in its constructor (__init__ method).
      It's likely that you're using an outdated version of the telegram library or you're using an argument that's specific to a different library. Check the documentation for the latest version of the telegram library to see if the use_context argument is supported, or if it's been renamed or removed.
      You can also try removing the use_context argument from your code and see if the error goes away.
      Or you can refer to source code files shared in the description."

    • @shanmukhasrinivas3026
      @shanmukhasrinivas3026 Год назад

      got the same error could you please specify what to do? and an another error saying cannot import name 'Chat' from 'telegram after copying and pasting the code from github

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

    in my token for bot i am getting syntax error for colons pls help

    • @SimplilearnOfficial
      @SimplilearnOfficial  Год назад +2

      Hi
      To better understand and address the issue, it would be helpful if you could provide the specific code snippet where you're encountering the syntax error with colons.

  • @shravanideshingkar7393
    @shravanideshingkar7393 Год назад

    Hey i have error

  • @kasunpriyadarshana3553
    @kasunpriyadarshana3553 Год назад

    have any msg limit for this bot ?

  • @chaitanyakulkarni6416
    @chaitanyakulkarni6416 Год назад

    hsr layout your from da ?

  • @twilightapp5762
    @twilightapp5762 Год назад

    Mere liye ek telegram bot bana sakte ho kya jo aapki fee hogi mein aapko de dunga

  • @shreeharsha08
    @shreeharsha08 Год назад +2

    Is there a java code instead of python

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

    Updater.__init__() got an unexpected keyword argument 'use_context' hey man your source has errors fix it or mention in comments ........

    • @SimplilearnOfficial
      @SimplilearnOfficial  Год назад

      Hi
      In the code you provided, it seems that there is an error related to the Updater.__init__() method call. Specifically, it's mentioning that the use_context keyword argument is unexpected.
      The error message suggests that the Updater class's constructor (__init__() method) does not accept a use_context argument. This could be due to a couple of reasons:
      Outdated or incompatible library version: The code you are using might be based on an older version of the Python Telegram Bot library. In newer versions, the constructor may have been updated, and the use_context argument might have been removed or renamed.
      Custom modifications: If the code has been modified or customized, it's possible that the use_context argument was added as part of those modifications but hasn't been handled correctly.
      To fix the issue, you have a few options:
      Check the documentation: Review the documentation for the version of the Python Telegram Bot library you are using. Ensure that the Updater class's constructor does not require the use_context argument. If it does, make sure you are using the correct syntax or update your library version if necessary.
      Update the code: If the code has been modified or customized, you need to ensure that the modifications are compatible with the library version you are using. You might need to adjust the code to match the correct constructor signature or remove the use_context argument if it is no longer supported.
      Seek community support: If you are still having trouble resolving the issue, consider seeking help from the Python Telegram Bot community. They can provide guidance based on their experience with the library and any potential changes or known issues.
      Remember to always review and understand the documentation and requirements of the libraries you are using to ensure compatibility and avoid unexpected errors.

  • @AyeshaMukati
    @AyeshaMukati Год назад +11

    Hey Im getting this error please help me out, AttributeError: 'Updater' object has no attribute 'dispatcher'

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

      Pease have a look at the documentation for the "Telegram Bot API" and the "Updater" class to see the use case. Else have a look at the source code files provided in the description.