11054
This group is for questions, answers and discussions around the python-telegram-bot library. Off-topic group: @pythontelegrambottalk | Website: https://python-telegram-bot.org
I moved this discussion to the off-topic group.
Читать полностью…
Oh, hey! There's someone new joining our awesome community of Python developers ❤️ We have compiled a list of learning resources just for you:
• As Beginner
• As Programmer
• Official Tutorial
• Dive into Python
• Learn Python
• Computer Science Circles
• MIT OpenCourse
• Hitchhiker’s Guide to Python
• The @PythonRes Telegram Channel.
• Corey Schafer videos for beginners and in general
• Project Python
Sure, but please read the article in the message and write your question clearly :)
Читать полностью…
I have a lot of timeout errors when my bot sends a video to a user.
Is there a way to fix this?
Wiki of python-telegram-bot - Category Code Resources
Bots built with PTB
https://github.com/python-telegram-bot/rules-bot/blob/master/components/callbacks.py
Читать полностью…
But why not just return out of the callback?
can you please send me some examples of bots made by experienced developers? like a middle level or something like that. I just want to know what level to aim for
Читать полностью…
but it'll stop the entire bot right
I wanted for a particular user
Can I stop updater of a mid process
like if I have x = 0
and I am checking if x == 0
I am sending a and stop updating
else I am sending b
sending c
I want just a
not a and c
Hello everybody, I am new with python and ptb, I created a bot with a button for payment. I want to know if I can open directly a crypto wallet with the payment data using a Telegram button
Читать полностью…
Please don't write this here.
/channel/pythontelegrambotgroup/781646
In order for someone to help you they need to know what the problem is. All you said is "bot not work". Do you expect someone else to narrow down the issue?
Читать полностью…
Well I found a working way
I manage the tutorial check using a fast cache system that tracks which users have completed the /start tutorial. A decorator automatically checks this cache whenever a command is used allowing /start and /help, but blocking others until completion. An auto-wrapper applies this decorator to handlers during registration, so I don’t need to add checks manually. This setup keeps the system clean, centralized, and efficient.
I thought but then there will be multiple functions where I have to use that if else statement
later decided to use decorator (its what I am using currently)
but I was looking if is there any way I can check for a specific condition right at the beginning when the command is used
So
if there are 2 conv handlers going on
X and Y
and user 1 is on X
user 2 is on Y
in the same group
so will X affect the user 2 ?
No, it will completely stop handling that specific update
Читать полностью…
https://docs.python-telegram-bot.org/en/stable/telegram.ext.applicationhandlerstop.html
Maybe you can use this, if you are using conversation handlers
Here are some pointers: Automated Bot Tests :)
Читать полностью…
Ah yeah just what im looking for, thank you
Читать полностью…