How to create a Telegram Bot for FREE in Python - Commands & Messaging
HTML-код
- Опубликовано: 11 сен 2024
- In this lesson we will be covering the main code that's required to make the bot function, and also how to add descriptions to our commands.
Source Code: github.com/fed...
Awesome Videos Buddy , I watch all the video on RUclips of Telegram Bot making, But Nobody explain like u, Please Continue this telegram series, & thank you for the logging method, I look for it for a while,
yeah dude, this is much better than the other
@@benizukebeni still.. please continue this
cannot import name 'Animation' from 'telegram' WHAT TO DO?
for some reason "use_command" doesnt work
I was paying attention closely until you had me at " we need to keep our computers on in order that the bot stays alive" is there any workaround for this one 😢
cloud devops
question about the program, where is handle_message declared?
i copied the program but python says "NameError: name 'handle_message' is not defined"
the program run without this line but still i'm curious about this error code
It's declared right under the custom_command function. And then it's use to create the MessageHandler at the bottom of the code.
How can I code to sending files?
Hello I have a question. I did the same as you, however my bot is returning the message "Process finished with exit code 0", 5 seconds after I start it. What can I do?
I have the source code available here incase of any issues: github.com/federicocotogno/premium_telegram_bot_2021
Otherwise, are you running this in PyCharm on Python 3.8?
@@Indently yes in PyCharm, however on Python 3.9. I just Ctr+C -> Ctr+V the code from the link and changed the API_Key.
I recommend cloning the code from GitHub, with all the packages, it's very easy to miss important information when copying and pasting.
Also, is your main file called: "main.py"?
in line 47 of yours that handel_message it shows error for me
You spelled handle_message wrong, please always check your spelling in the future.
Hello, thank you for your video.
I have a question. If I try to run the Terminal it shows following error: TypeError: Updater.__init__() got an unexpected keyword argument 'use_context
Please tell me what I can do?
Did you fix this error?
@@geethadurgamanasa2369 No, but now I know that my code is correct. It is possible that I have a problem with Python. Now I have created a bot without coding and it works good.
is there any way bot can response to channel message????
Hello I have a question. I would like the answers given to the custom command to be added to an excel list. Can you help?
Hey! I would extract the values from the csv and store them in a list or something. realpython.com/python-csv/
How can we filter unknown command ?
how i can bot delete msg member or me
NameError: name 'updater' is not defined
do you know how to solve this?
I started using telebot instead that one
got the same error
@@sunglassesindoors5625 use application builder not updater
same issue