How To Create A Telegram Bot In Python For Beginners (2023 Tutorial)

  Рет қаралды 393,777

Indently

Indently

Күн бұрын

Пікірлер
@moharrammoharrami3957
@moharrammoharrami3957 Жыл бұрын
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 :)
@auroram4936
@auroram4936 10 ай бұрын
thank you so much for this clear, easy to follow tutorial!! you saved my project
@jonnywoo8418
@jonnywoo8418 Жыл бұрын
Finally Latest version video! Thanks!
@qwert4871
@qwert4871 Жыл бұрын
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)}") ```
@yashchatt5754
@yashchatt5754 8 ай бұрын
Was searching for updated vid! This helps a lot
@humadi2001
@humadi2001 Жыл бұрын
I keep coming to your source code several times. Keep it up!
@strycinek
@strycinek Жыл бұрын
Excellent video man, it was exactly what I need to create my own simple bot
@arsalanshafiq9260
@arsalanshafiq9260 Жыл бұрын
Really like your accent and sense of humour
@parsahosseini4241
@parsahosseini4241 7 ай бұрын
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.
@ManojKumar-yy7yl
@ManojKumar-yy7yl 4 ай бұрын
am I need to keep the python script always in running state for access for BOT?
@sen4674
@sen4674 Жыл бұрын
Thanks, I just successfully made my first Telegram bot.
@xasaninomov1453
@xasaninomov1453 Жыл бұрын
Thank you, very much I am so exited that my bot is actually working
@chris-mq8rv
@chris-mq8rv Жыл бұрын
great walkthrough, and explanations along the way. Thanks man.
@worldofelectronicsandprogr1128
@worldofelectronicsandprogr1128 Жыл бұрын
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!!!! ☺☺🙏🙏
@lucasputz4475
@lucasputz4475 8 ай бұрын
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
@Indently
@Indently 8 ай бұрын
I make myself laugh sometimes
@ezekiel543
@ezekiel543 5 ай бұрын
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.
@OluwasegunJoshua-f2e
@OluwasegunJoshua-f2e 2 ай бұрын
Thanks man😊. You got a follower 👍
@systemkey1
@systemkey1 9 ай бұрын
very excellent video my brother keep up the good work.
@Aditya_1950
@Aditya_1950 10 ай бұрын
Thanks brother. It working. Very informative tutorial 👍
@katwokalong
@katwokalong 5 ай бұрын
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
@rangeyo
@rangeyo 2 күн бұрын
just type -> His interface renders it differently i think.
@RageJerk_lover
@RageJerk_lover 19 күн бұрын
7:40 how did you make the arow i
@Solo_Rye
@Solo_Rye 19 күн бұрын
@RageJerk_Lover You just have to use a "-" and ">" no space in between e.g. -> his just a fancier version with unicode I believe..
@sirta.7
@sirta.7 19 күн бұрын
➡️Symbols can be put into code
@muradbayr9900
@muradbayr9900 Күн бұрын
@@sirta.7 so where should we get symbols in ide?
@chaitanyaunavane5819
@chaitanyaunavane5819 Жыл бұрын
thank you for the updated video! very helpful
@hicamajig
@hicamajig Жыл бұрын
Very good overview. Thanks for this!
@nemira_oni590
@nemira_oni590 Жыл бұрын
thanks, just inserted my token and bot name and it works!
@mlindatech
@mlindatech Жыл бұрын
Great at first this thing did not work but after revisiting my code it worked
@Juan-wg4gy
@Juan-wg4gy Жыл бұрын
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?
@ramsidharth2931
@ramsidharth2931 10 ай бұрын
Finally got a legitimate code that would work !
@amalkuttu8274
@amalkuttu8274 7 күн бұрын
i create a one with slight changes. thank you for giving me bases.
@hazza6208
@hazza6208 Жыл бұрын
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
@2mat012
@2mat012 11 ай бұрын
can you share the code
@sjukastehumorn35
@sjukastehumorn35 11 ай бұрын
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.
@moh_zoro_luffy
@moh_zoro_luffy 10 ай бұрын
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
@Nemo7The7Pirate7
@Nemo7The7Pirate7 3 ай бұрын
i'm instantly sold on this guide after the banana banana bit.
@ChanXueLi
@ChanXueLi Жыл бұрын
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?
@seyftech2780
@seyftech2780 10 ай бұрын
I also face this error. how can I solve it. please?
@YHVB1
@YHVB1 Жыл бұрын
Very informative video, Thank you!
@charleshu8041
@charleshu8041 Жыл бұрын
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🎉❤
@khoanguyentrader_official
@khoanguyentrader_official Жыл бұрын
Thank you so much, i learn and make it successfully. 😍😘
@Paperella-dd2cg
@Paperella-dd2cg Ай бұрын
what pytho software does he use??
@spryzenthehonerone
@spryzenthehonerone Жыл бұрын
thanks for sharing your knowledge
@maryamfaaramarzi
@maryamfaaramarzi 11 ай бұрын
Hello, you are great, I like your teaching very much. Why didn't you post more video for telegram bot in python?
@QuranKnowledge123
@QuranKnowledge123 10 ай бұрын
4:59 how to open this window, *PLEASE SOMEONE HELP*
@RageJerk_lover
@RageJerk_lover 19 күн бұрын
you have like a skewer with symbols on it in the bottom left
@walidmat8972
@walidmat8972 Жыл бұрын
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
@sllakshancc
@sllakshancc Жыл бұрын
Great video. Thank you.
@emanuelalbuquerque9032
@emanuelalbuquerque9032 Жыл бұрын
Keep up this magnificent work that helps many people who work or want to work with technology. A hug directly from Brazil.
@anunareddy2733
@anunareddy2733 Жыл бұрын
Hello sir!
@QuranKnowledge123
@QuranKnowledge123 10 ай бұрын
*What is PYTHON SCRYT? How to get that* ?
@mayorc
@mayorc Жыл бұрын
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?
@hixidom2274
@hixidom2274 2 ай бұрын
Pretty cool tutorial. Is typing necessary or just good practice?
@grawe687
@grawe687 2 ай бұрын
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.
@夜染-x3h
@夜染-x3h Жыл бұрын
thanks for you,you are greate developer.
@__mmars
@__mmars 6 ай бұрын
you're an angel!!!!!!!!!! tysmmm
@wahbi26.
@wahbi26. 6 ай бұрын
thank you, the video is helpful
@xasaninomov1453
@xasaninomov1453 Жыл бұрын
help me a have some kind wierd situstion it says 'import 'telegram' not found'
@zvim4664
@zvim4664 Жыл бұрын
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
@v3ng4r65
@v3ng4r65 Жыл бұрын
You have to get PATH in Windows for Phyton
@Alexos92
@Alexos92 Жыл бұрын
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 !!
@whistleblower66
@whistleblower66 Жыл бұрын
Yes, it will work but I find it's a good practice, in general.
@touhami_dz6458
@touhami_dz6458 10 ай бұрын
what wallpaper are you using on ur desktop ? i like it
@biskys6718
@biskys6718 9 күн бұрын
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."
@sifiso89
@sifiso89 Жыл бұрын
BROOOOOOOOOOOOOOOOOOOOOOOO thanks a million 🇿🇦
@ledigdev
@ledigdev 5 ай бұрын
Great Video
@kamilkoterba9368
@kamilkoterba9368 Жыл бұрын
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!
@megalonightmare
@megalonightmare 8 ай бұрын
because he used pycharm
@gulnarahuseynova1718
@gulnarahuseynova1718 Жыл бұрын
Thank you so much!
@sudharsandas5779
@sudharsandas5779 Жыл бұрын
Is the explicit typing necessary in Python? Why is he doing this?
@shrill_kill9929
@shrill_kill9929 Жыл бұрын
What is the "->" part called in python and how does it work?
@Indently
@Indently Жыл бұрын
They're called ligatures: kzbin.info/www/bejne/nZTWc5-Cprx8sNE&ab_channel=Indently
@WelfredAlmiron
@WelfredAlmiron Жыл бұрын
cool video)
@deep_singh01
@deep_singh01 11 ай бұрын
Superb Video 🤟🤟 But Can you please help in building chatbot that answer any question or query automatically in this manner?
@HarutAdrenalin
@HarutAdrenalin 5 ай бұрын
What interpreter do you use?
@abbosbekpirnazarov
@abbosbekpirnazarov 8 ай бұрын
Hi guys I have a poblem with this | 14:32 | (custom_command) What should I do ?
@alteragnostik
@alteragnostik 3 ай бұрын
Chat, could you tell me please what IDE is author using? Thanks
@tonisoos937
@tonisoos937 3 ай бұрын
PyCharm
@42_14.
@42_14. Ай бұрын
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)
@mhamadnazm7588
@mhamadnazm7588 Жыл бұрын
Great tutorial
@LilaLili-j5i
@LilaLili-j5i Жыл бұрын
Did u paste the token on visual code studio or node.js
@ToddRoloff
@ToddRoloff Жыл бұрын
Nicely done.
@sherminatorhd318
@sherminatorhd318 Жыл бұрын
hey man great video, any idea on any platform recommended to run the bot?
@joshitoshi9835
@joshitoshi9835 Жыл бұрын
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
@Brandon_AppalachiaEnergy
@Brandon_AppalachiaEnergy Жыл бұрын
Do you do custom bot builds? I am definitely not this savvy with computers!
@jacksonjiang6313
@jacksonjiang6313 Жыл бұрын
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?
@FLIX_TIME-z7g
@FLIX_TIME-z7g Жыл бұрын
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?
@cabbibal
@cabbibal 11 ай бұрын
you will need a server that runs 24/7 and has the python program running
@adeola1183
@adeola1183 Жыл бұрын
Great video. How would I make one command randomly generate a predefined number of responses?
@farshadpanahi4384
@farshadpanahi4384 Жыл бұрын
خیلی هم خوب. ادامه بده.
@scotter
@scotter Жыл бұрын
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!
@abhinavsingh4176
@abhinavsingh4176 Жыл бұрын
Same issue
@telmuungan-ulzii8333
@telmuungan-ulzii8333 Жыл бұрын
What program are you using for coding?
@ilkhomjonabdurakhimov8158
@ilkhomjonabdurakhimov8158 Жыл бұрын
To create this telegram bot We should use Pycharm Ultimate or it is possible create it by Community version of program?
@Myk-ix5xs
@Myk-ix5xs Жыл бұрын
I've tried install pip same way u did but it shows me error and I don't know why
@RileyNxt
@RileyNxt Жыл бұрын
pip3 instead
@borismaiorov2703
@borismaiorov2703 Жыл бұрын
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"
@khoreugene3060
@khoreugene3060 Жыл бұрын
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?
@YasminVessey
@YasminVessey 10 ай бұрын
Would this still work using elif statements rather than if statements?
@systemkey1
@systemkey1 9 ай бұрын
thank you SO much.!!
@Aamirmahdiy
@Aamirmahdiy Ай бұрын
Where did you code? How did you import it in the bot
@-nu6co
@-nu6co 8 ай бұрын
Well explained
@zewelry
@zewelry Жыл бұрын
thank you. one question,i want run other thing when polling. how to do that.
@alexandrkardash6594
@alexandrkardash6594 8 ай бұрын
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
@bakousystems3888
@bakousystems3888 Жыл бұрын
thank you! very helpful. in grouptype show "supergroup" from console
@nikhiljoshi-hk9zu
@nikhiljoshi-hk9zu 11 ай бұрын
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
@arsalanshafiq9260
@arsalanshafiq9260 Жыл бұрын
Great well done
@henrynph
@henrynph Жыл бұрын
i have a question , i follow your tutoral to coding ,the python can run smothly but the bot can't respont my command which part aer gose wrong? also i sen the message when the code run the python out respont the message i send said channel_chat_created=False
@G_Keepingitreal
@G_Keepingitreal Жыл бұрын
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.
@Zynnel
@Zynnel Жыл бұрын
Thank you so much this worked perfectly, i just have a question, how can I add emojis to the bot responses?
@Misael62.
@Misael62. Жыл бұрын
the terminal tell me this. when i write (pip install python-telegram-bot) command not found: pip What can i do???
@domontowicz
@domontowicz Жыл бұрын
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?
@MrValVet
@MrValVet 10 ай бұрын
Thank you!
@teenu3670
@teenu3670 Жыл бұрын
this bot is replying to anyone if the user is not even mentioning the bot in group how to fix
@thelostman5625
@thelostman5625 Жыл бұрын
Hi! Can we make bot having menu subscribe and when user choose subscribe, the /subscribe menu become /unsubscribe only for the user?
@sontoviet6374
@sontoviet6374 Жыл бұрын
Hi Admin. How can i do to response user only by one fix message and do not run any command when recever message mode private. Because i only want my bot respond in group. Pls help me
@CryptoSaNjAY1
@CryptoSaNjAY1 11 ай бұрын
How to Create a bot without joining the source group it will forward messages to the designation group is it possible?
@MichaelBomett
@MichaelBomett Жыл бұрын
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?
5 Good Python Habits
17:35
Indently
Рет қаралды 667 М.
Create A Python API in 12 Minutes
12:05
Tech With Tim
Рет қаралды 714 М.
How To Create A Telegram Bot With Python
20:23
CS Dojo
Рет қаралды 637 М.
How To Create A Telegram Bot Using AI And Make.com
15:40
The Sousa Brothers
Рет қаралды 2,2 М.
How to Make a Telegram Bot Without Coding
6:11
The School of Digital Marketing
Рет қаралды 200 М.
Create a LOCAL Python AI Chatbot In Minutes Using Ollama
13:17
Tech With Tim
Рет қаралды 127 М.
Run your own AI (but private)
22:13
NetworkChuck
Рет қаралды 1,7 МЛН
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,6 МЛН
How To SCHEDULE Functions & Tasks In Python (FULL GUIDE)
19:49
I Hacked a Discord Bot, the Owner said this...
9:09
No Text To Speech
Рет қаралды 1,5 МЛН