Thanks, today was my off day and I randomly found this video. First I made this exactly as you taught, then I changed stuff and learned more about python (I'm a JS developer). Best way for a software developer to spend his off day :)
Great tutorial! There's one thing I want to add though. Your implementation of error handler lacks information on a line of the problem. After passing around with GPT-4 for a while I found a solution to get more information: ```python async def error(update: Update, context: ContextTypes.DEFAULT_TYPE): _, _, tb = sys.exc_info() line_number = traceback.extract_tb(tb)[-1][1] exc_type, exc_value, exc_traceback = sys.exc_info() error_traceback = traceback.format_exception(exc_type, exc_value, exc_traceback) print(f"Update {update} caused error {context.error}: {''.join(error_traceback)}") ```
Awesome tutorial!! ☺☺ I've managed to make my first chat box watching this great and simple video! Many thanks! 👏👏🙏🙏 You are a great tutor and you explain very well the concepts! 👍👍Keep up the good work!!!! ☺☺🙏🙏
i love your descriptions like "we'll need a command handler that is handling the commands". you could have just published your code with explanations like that
it's amazing I followed your video did the same and it works and running well in my local PC, this my first time learn Python!! thank you so much!!! can you also make another video to show how to deploy these codes to Lambda? One thousand thanks to you🎉❤
Amazing video, really great way to get started on a bot project :) You cast all your variables into a type. This is not very common in python no ? Will the code work without it ? Thanks for your work !!
Thank you for tutorial. Just wonder if you familiar with telegram payments platform? Hopefully you'll find this topic interesting and create amazing short tutorial for that. Thanks you for your work
Can you make a video for the updated workflow for telegram bots using login credentials, two factors authentication using OTP, and ConversationHandler using multiple STATES?
Hi, how are you?. When I run all the telegram libraries, such as: Filters, it returns me that it is not compatible with version 3.11 of python. But from what I see you are using 3.11, what could be the reason that throws me that error?
Thanks for the tut but plz teach us with more details about the api, like why we are using or calling this and that function. Plus how can we restrcit access to some users only? like i want 5 people to use the bot only. Also teach us how to convert any python script to telegram bot. Thanks
Hi! Thanks for the tutorial! Could you make a video about how to create a bot grabbing messages by keywords from different telegram private channels and sending to our private channel?
hi! i have this error when i sent 'how are you' to my telebot and it doesn't give me any response as it should written in the code: case error check_update() missing 1 required positional argument: 'update' but i don't see any check_update() in the code, so i assume is probably because of the library, can someone explain to me the error and how i can debug this error?
Thanks for this! I got it working the first time. THANK YOU! Wondering if you can help with one issue: In supergroups it responds to everyone. I tried merely adding "or 'supergroup' in ..." but that didn't work. Also, issues getting user id or username. Telegram's page on their API is either old or just difficult for me to figure out. Any help welcome!
Hey man im pretty Newbie to programming, what i must do to have Python set up like You? As i download it and it doesent look the same the tabs below and the line numbers, Cheers!
So listen to the I main...... I'm not gonna write it all anyway He made it a function basically make a key word that triggers a big sentence so when he typed "main" it trigger the long sentence I main....... or as we call it a function
I was kind of curious to ask: if I create this bot - will i be able to access data of a website through it's API key? I want to perform an analysis of the data.
i was wondering. after you wright your code. and you close studio code. will the bot still be active and running or will it crash. and if it crashes how can you get back to the script that you wrote. should you save the code itself and store it somewhere?
Thank you for your very clear explanation. But I am wondering how to purely send a message instead of replying? Coz I don't think it should be added into add_handler. Could you help me to solve that?
Thanks for the video, how do i add the script to a django project so it runs alongside and uses context from django model to respond back? Any pointers?
Can somebody help me when i type % pip install python-telegram-bot in terminal i get this: You cannot call a method on a null-valued expression. Im stuck here for an hour cant find a solution help
the "pip install python-telegram-bot" command is not working, getting this error code: "pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
Thanks, today was my off day and I randomly found this video. First I made this exactly as you taught, then I changed stuff and learned more about python (I'm a JS developer). Best way for a software developer to spend his off day :)
Thanks. Finally my bot is working. After watching 6 other tutorials
Clear, to the point, no bs, clean code and understandable instructions.
This man got himself my respect ❤
Thanks a lot for this quality content mate.
thank you so much for this clear, easy to follow tutorial!! you saved my project
Great tutorial! There's one thing I want to add though. Your implementation of error handler lacks information on a line of the problem. After passing around with GPT-4 for a while I found a solution to get more information:
```python
async def error(update: Update, context: ContextTypes.DEFAULT_TYPE):
_, _, tb = sys.exc_info()
line_number = traceback.extract_tb(tb)[-1][1]
exc_type, exc_value, exc_traceback = sys.exc_info()
error_traceback = traceback.format_exception(exc_type, exc_value, exc_traceback)
print(f"Update {update} caused error {context.error}:
{''.join(error_traceback)}")
```
I keep coming to your source code several times. Keep it up!
Awesome tutorial!! ☺☺ I've managed to make my first chat box watching this great and simple video! Many thanks! 👏👏🙏🙏 You are a great tutor and you explain very well the concepts! 👍👍Keep up the good work!!!! ☺☺🙏🙏
Finally Latest version video! Thanks!
Excellent video man, it was exactly what I need to create my own simple bot
i love your descriptions like "we'll need a command handler that is handling the commands". you could have just published your code with explanations like that
I make myself laugh sometimes
Was searching for updated vid! This helps a lot
This video is very good and the best I found on creating a Telegram bot with Python. Its super easy to understand and follow along.
Thanks, I just successfully made my first Telegram bot.
Really like your accent and sense of humour
Thank you, very much I am so exited that my bot is actually working
This video is very helpful, thank you master❤❤❤❤
it's amazing I followed your video did the same and it works and running well in my local PC, this my first time learn Python!! thank you so much!!! can you also make another video to show how to deploy these codes to Lambda? One thousand thanks to you🎉❤
great walkthrough, and explanations along the way. Thanks man.
very excellent video my brother keep up the good work.
Thanks brother. It working. Very informative tutorial 👍
It worked for me. Thank you for the wonderful content. I hope you can explain to us how to put all the languages in artificial intelligence
can you share the code
Thanks man😊. You got a follower 👍
Great❤
Hello, you are great, I like your teaching very much. Why didn't you post more video for telegram bot in python?
Great at first this thing did not work but after revisiting my code it worked
Amazing video, really great way to get started on a bot project :)
You cast all your variables into a type. This is not very common in python no ? Will the code work without it ? Thanks for your work !!
Yes, it will work but I find it's a good practice, in general.
Pretty cool tutorial. Is typing necessary or just good practice?
Just good practice, it's mainly so that other people that read the code don't have to guess the type of a variable/constant.
Keep up this magnificent work that helps many people who work or want to work with technology. A hug directly from Brazil.
Hello sir!
*What is PYTHON SCRYT? How to get that* ?
thanks, just inserted my token and bot name and it works!
Finally got a legitimate code that would work !
am I need to keep the python script always in running state for access for BOT?
thank you for the updated video! very helpful
you're an angel!!!!!!!!!! tysmmm
Very good overview. Thanks for this!
BROOOOOOOOOOOOOOOOOOOOOOOO
thanks a million 🇿🇦
Superb Video 🤟🤟
But Can you please help in building chatbot that answer any question or query automatically in this manner?
Thank you so much, i learn and make it successfully. 😍😘
Great Video
Very informative video, Thank you!
Thank you for tutorial. Just wonder if you familiar with telegram payments platform? Hopefully you'll find this topic interesting and create amazing short tutorial for that. Thanks you for your work
i create a one with slight changes. thank you for giving me bases.
Great tutorial
hey man great video, any idea on any platform recommended to run the bot?
thanks for sharing your knowledge
cool video)
Can you make a video for the updated workflow for telegram bots using login credentials, two factors authentication using OTP, and ConversationHandler using multiple STATES?
i'm instantly sold on this guide after the banana banana bit.
thanks for you,you are greate developer.
Great video. Thank you.
Thank you so much!
thank you, the video is helpful
what wallpaper are you using on ur desktop ? i like it
Well explained
Hi, how are you?. When I run all the telegram libraries, such as: Filters, it returns me that it is not compatible with version 3.11 of python. But from what I see you are using 3.11, what could be the reason that throws me that error?
Nicely done.
Hi, i love you videos, can you do one that integrate sending photos from certain url once you do a command? and also do one video with inlinekeyboard?
Thanks for the tut but plz teach us with more details about the api, like why we are using or calling this and that function. Plus how can we restrcit access to some users only? like i want 5 people to use the bot only.
Also teach us how to convert any python script to telegram bot. Thanks
Hi! Thanks for the tutorial! Could you make a video about how to create a bot grabbing messages by keywords from different telegram private channels and sending to our private channel?
Do you do custom bot builds? I am definitely not this savvy with computers!
hi! i have this error when i sent 'how are you' to my telebot and it doesn't give me any response as it should written in the code:
case error check_update() missing 1 required positional argument: 'update'
but i don't see any check_update() in the code, so i assume is probably because of the library, can someone explain to me the error and how i can debug this error?
I also face this error. how can I solve it. please?
thank you SO much.!!
Great well done
Thank you so much this worked perfectly, i just have a question, how can I add emojis to the bot responses?
Can you make a video on creating automated welcome messages to new members in a Telegram group? It would be extremely useful! Thanks! ☺☺🙏🙏
Thanks for this! I got it working the first time. THANK YOU! Wondering if you can help with one issue: In supergroups it responds to everyone. I tried merely adding "or 'supergroup' in ..." but that didn't work. Also, issues getting user id or username. Telegram's page on their API is either old or just difficult for me to figure out. Any help welcome!
Same issue
Hey man im pretty Newbie to programming, what i must do to have Python set up like You? As i download it and it doesent look the same the tabs below and the line numbers, Cheers!
because he used pycharm
Thank you!
pleas how can i make the bot respond with a video like a tutorial to use the bot ? and how to host the bot on aserver ? thnx
Hey! thanks for this video! is it possible to do a bot answering in my place to a private conversation with an another telegram bot? (not mine)
I do not understand what you did at 13:43 I wrote if __name__ == '__main__': but how did you do that blue stuff that covers all text.
So listen to the I main...... I'm not gonna write it all anyway
He made it a function basically make a key word that triggers a big sentence so when he typed "main" it trigger the long sentence I main....... or as we call it a function
thanks for your video!!!!!!
thank you! very helpful. in grouptype show "supergroup" from console
Great video. How would I make one command randomly generate a predefined number of responses?
Legend!
Is the explicit typing necessary in Python? Why is he doing this?
To create this telegram bot We should use Pycharm Ultimate or it is possible create it by Community version of program?
I was kind of curious to ask: if I create this bot - will i be able to access data of a website through it's API key? I want to perform an analysis of the data.
Did u paste the token on visual code studio or node.js
What interpreter do you use?
Hi! Thank you very much! Got it all done, no errors, but when i running the script i getting "Process finished with exit code 0"
thank you. one question,i want run other thing when polling. how to do that.
i was wondering.
after you wright your code.
and you close studio code.
will the bot still be active and running or will it crash.
and if it crashes how can you get back to the script that you wrote.
should you save the code itself and store it somewhere?
you will need a server that runs 24/7 and has the python program running
7:40 how did you make the arow i
@RageJerk_Lover You just have to use a "-" and ">" no space in between e.g. -> his just a fancier version with unicode I believe..
➡️Symbols can be put into code
@@sirta.7 so where should we get symbols in ide?
What program are you using for coding?
Chat, could you tell me please what IDE is author using? Thanks
PyCharm
what pytho software does he use??
OK does anyone know how to do the arrow command @ 7:50 ?? I tried the hyphen and the symbol but it did not work for me
just type ->
His interface renders it differently i think.
@@rangeyo thank you so much been struggling to make it work
Would this still work using elif statements rather than if statements?
Thanks!
Thank you for your very clear explanation. But I am wondering how to purely send a message instead of replying? Coz I don't think it should be added into add_handler. Could you help me to solve that?
Man,you're cool!
Thanks!
No problem!
Where did you code? How did you import it in the bot
Thanks for the video, how do i add the script to a django project so it runs alongside and uses context from django model to respond back? Any pointers?
hey nice video but can you please teach us how to make a AI chatbot for groups?
What is the "->" part called in python and how does it work?
They're called ligatures: ruclips.net/video/gcsBlLqWIzo/видео.html&ab_channel=Indently
Can somebody help me when i type % pip install python-telegram-bot in terminal i get this: You cannot call a method on a null-valued expression. Im stuck here for an hour cant find a solution help
You have to get PATH in Windows for Phyton
the "pip install python-telegram-bot" command is not working, getting this error code:
"pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
may be either you don't have python installed or added to path.
@@yonasdotdev i do have python installed. i dont know what "Added to path means
Can you please make tutorial on telethon or pyrogram?
as the bot developer do you have access of the material I sent to the bot, or can the bot spread the material I have sent to it ....pls tell