Create Your Own Telegram Bot In Python 3.10 Tutorial (Works With Groups)

preview_player
Показать описание
Learn how you can create your very own Telegram bot with Python 3.10 in 2022. We will also be covering how to make sure the bot responds in group chats, and how you can freely customise it.

▶ Become job-ready with Python:

▶ Follow me on Instagram:

00:00 Bot Preview
01:15 Bot Father Setup
05:00 Writing the code
12:10 Running the bot
Рекомендации по теме
Комментарии
Автор

Hello. Can you help me please? in my code it says: " TypeError: Updater.__init__() got an unexpected keyword argument 'use_context'." I upgraded the python version, but the problem still exists.

mtvtvyo
Автор

I had just finished your telegram bot playlist. And now this amazing tutorial 🤩🤩 Sir, your channel benefits me a lot. You deserve more subscribers. Will try to share your content as much as possible 🤩

costube
Автор

Wow! Thank you for the video, helped with understanding this library

cama
Автор

hi! thank you for a very nice toturial
however i am running against an error.

its about your code at line 65
updater = Updater(keys.token, use_context=True)

it says ; NameError: name 'Updater' is not defined

how can i fix this ?

hatseflats
Автор

Excellent video! I did notice that the bot did not respond to messages if the message _type == 'group. Setting that to != 'group' got the responses to display in telegram. I may not understand using groups in that context.

daveoeste
Автор

ITT:
1 guy: thanks so much, it work, you are a great teacher

100 recent comments:
doesnt work
doesnt work
doesnt work
doesnt work


wtf happens in 1 year with that package?

gabrieldomingues
Автор

Buddy can you make a video on how to create a group management bot having this additional function

AdityaSingh-hrgv
Автор

hey man! great video! im having an issue with de def handle response, i have a few auto replies set up,

def handle_response(text: str) -> str:
if 'gm' in text:
return 'or GN, where ever you are!'

if 'trust no one, trust code' in text:
return 'long live defi!'

return ''

i think because its left blank, every message that is sent in a gorup is printing an error ( caused error: Message text is empty)

anyway to fix this?

AdamYarco
Автор

Can you make a video on how to setup webhook, deploy as web application on pythonanywhere using flask module?

mamidalaramu
Автор

Sir i need to run my chat bot with a dynamic dataset could you recommend me anything for knowing how to make it?

rohanrajpasupunoori
Автор

mine is not giving back the might be the problem??

velazreagan
Автор

when i type in hello in telegram the bot doesn''t respond

flamethekid
Автор

I've checked, have helped me a lot. Just a little question, what is the equivalent of update.message.reply_text for photos?

ainanirina
Автор

Why don't you use pyrogram or telethon

memoking
Автор

i keep getting ModuleNotFoundError: No module named 'telegram' ..any help please ...im using python 3.11

paw_maintenance
Автор

how can we make the bot create quiz for new members before they join, and submit their info ?

habeshaman
Автор

cannot import name 'Animation' from 'telegram'

makedifferenteverything
Автор

Hi, Thank you very much for the tutorial, am really appreciate your efforts, i have a request to make, i have a website and when user asks something is it possible to search that term on website and send user that searched link?? This even helps to others who want to display google search results, Thank you

iasmaterials
Автор

def handle_response(text: str) -> str:

i cant get this line to work in groups, only direct with the bot. any ideas?

AdamYarco
Автор

How do I run a local bot api server on windows?

ianrudey
welcome to shbcf.ru