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

preview_player
Показать описание
In today's video we will be creating a chat bot for Telegram using Bot Father and Python. This is the perfect bot for getting started with creating more complex Telegram bots. It will show you how to get an API Token, how to customise the bot, how you can add commands to the bot, and how you can make it work in groups!

▶ Become job-ready with Python:

▶ Follow me on Instagram:

00:00 Intro
00:32 Bot Father
01:27 API Token
02:15 Bot Customisation
04:20 Pip Install
04:51 Imports
05:11 Bot Commands
07:09 Handling Responses
09:08 Handling Messages
13:07 Errors
13:37 Putting It Together
16:24 Command Descriptions
18:12 Running The Bot
19:35 Group Chat
21:55 Success!
Рекомендации по теме
Комментарии
Автор

Excellent video man, it was exactly what I need to create my own simple bot

strycinek
Автор

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 :)

moharrammoharrami
Автор

Was searching for updated vid! This helps a lot

yashchatt
Автор

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!!!! ☺☺🙏🙏

worldofelectronicsandprogr
Автор

thank you so much for this clear, easy to follow tutorial!! you saved my project

auroram
Автор

I keep coming to your source code several times. Keep it up!

humadi
Автор

great walkthrough, and explanations along the way. Thanks man.

chris-mqrv
Автор

Thank you, very much I am so exited that my bot is actually working

xasaninomov
Автор

thank you for the updated video! very helpful

chaitanyaunavane
Автор

Thanks, I just successfully made my first Telegram bot.

sen
Автор

very excellent video my brother keep up the good work.

systemkey
Автор

Thanks brother. It working. Very informative tutorial 👍

Aditya_
Автор

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.

ezekiel
Автор

Thank you so much, i learn and make it successfully. 😍😘

taichinhexpress_official
Автор

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🎉❤

charleshu
Автор

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 =
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
```

qwert
Автор

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?

khoreugene
Автор

thanks, just inserted my token and bot name and it works!

nemira_oni
Автор

Really like your accent and sense of humour

arsalanshafiq
Автор

hey man great video, any idea on any platform recommended to run the bot?

sherminatorhd