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

Поділитися
Вставка
  • Опубліковано 26 сер 2024

КОМЕНТАРІ • 34

  • @SimplilearnOfficial
    @SimplilearnOfficial  2 роки тому +15

    Become A Data Scientist Today: taplink.cc/simplilearn_c_data_science

    • @kissmeifyouloveme5983
      @kissmeifyouloveme5983 2 роки тому +3

      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

  • @user-dd3xd1de2v
    @user-dd3xd1de2v Рік тому +52

    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?

  • @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

  • @alexablerdu6224
    @alexablerdu6224 Рік тому +8

    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

  • @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.

  • @sahaveerreddy742
    @sahaveerreddy742 Рік тому +5

    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

  • @hisarhisar1987
    @hisarhisar1987 Рік тому +7

    Thanks, i was looking for it.

  • @foydaliimkoniyat247
    @foydaliimkoniyat247 6 місяців тому +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...

  • @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

  • @prince-gamingarmy5746
    @prince-gamingarmy5746 Рік тому +1

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

  • @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.

  • @royalkhan2889
    @royalkhan2889 Рік тому

    Will u customise telegram bot according to specific business need

  • @joliluddin17
    @joliluddin17 7 місяців тому

    nice video

  • @funwithezaz1176
    @funwithezaz1176 Рік тому

    Bro can you make a video for telegram music bot 😢

  • @chaitanyakulkarni6416
    @chaitanyakulkarni6416 Рік тому

    hsr layout your from da ?

  • @kasunpriyadarshana3553
    @kasunpriyadarshana3553 Рік тому

    have any msg limit for this bot ?

  • @shravanideshingkar7393
    @shravanideshingkar7393 9 місяців тому

    Hey i have error

  • @shreeharsha08
    @shreeharsha08 Рік тому +2

    Is there a java code instead of python

  • @twilightapp5762
    @twilightapp5762 10 місяців тому

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

  • @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.