- Notifications
You must be signed in to change notification settings - Fork5.7k
-
Traceback (most recent call last): Following is my code: import logging logging.basicConfig( async def start(update: Update, context: ContextTypes.DEFAULT_TYPE): ifname == 'main':
I am doing my first tutorial on my first bot |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 4 comments 5 replies
-
This is the tutorial https://github.com/python-telegram-bot/python-telegram-bot/wiki/Extensions---Your-first-Bot |
BetaWas this translation helpful?Give feedback.
All reactions
-
Hi. Please have a look athttps://github.com/python-telegram-bot/python-telegram-bot/wiki/Frequently-Asked-Questions#why-am-i-getting-importerror-cannot-import-name-xy-from-telegram. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I continue to receive the same error. (my_test_environment) thomas@elm:~/python$ python chatmember.py I have updated the $PATH and the $PYTHONPATH I have uninstalled telegram and reinstalled python-telegram-bot |
BetaWas this translation helpful?Give feedback.
All reactions
-
Please show me the output of |
BetaWas this translation helpful?Give feedback.
All reactions
-
homas@elm: |
BetaWas this translation helpful?Give feedback.
All reactions
-
all right, that means that the installation of
If that doesn't work, I would recommend to delete |
BetaWas this translation helpful?Give feedback.
All reactions
-
damn i think this worked! Wow, thank you! |
BetaWas this translation helpful?Give feedback.
All reactions
🎉 1
-
So after I create this bot what can I do with it? https://github.com/python-telegram-bot/python-telegram-bot/wiki/Extensions---Your-first-Bot |
BetaWas this translation helpful?Give feedback.
All reactions
-
Uh .. whatever the bot API allows you to do. Have a look at the "bots built with PTB" wiki page for some inspiration. But this is a bit beyond the scope of the thread. I recommend joining our groups on telegram if you want to get some general comments from other PTB users :) |
BetaWas this translation helpful?Give feedback.