[Python] ImportError: cannot import name 'ParseMode' from 'telegram'

Discussão em 'Python' iniciado por Stack, Fevereiro 18, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to create a telegram bot. The code i am trying to execute is :

    from telegram import ParseMode


    But it is throwing up this error:

    ImportError: cannot import name 'ParseMode' from 'telegram'
    (C:\ProgramData\Anaconda3\lib\site-packages\telegram\__init__.py)


    Could you please advise how to fix this error?

    Continue reading...

Compartilhe esta Página