10206
This group is for questions, answers and discussions around the python-telegram-bot library. Off-topic group: @pythontelegrambottalk | Website: https://python-telegram-bot.org
Hmmm, feels like a bug in the library to me, this should be handled properly. Mind creating a mwe and I can debug further later
Читать полностью…
Hi, I want to trigger a command every day at a specific time
but I don't understand how
I read the https://docs.python-telegram-bot.org/en/stable/examples.timerbot.html timerbot example
but I don't understand how to check if time has passed
My Guess is that you have app.run_polling() they is bpocking on main and After that you have and updater.run_polling() forgotten somewhere
Читать полностью…
Nothing changed means you got the same error?
Читать полностью…
https://docs.python.org/3/library/asyncio.html
Читать полностью…
Wiki of python-telegram-bot - Category Design Pattern
How do I deal with a media group?
Use your internet to the fullest. Even though you are a child, you still know how to use your internet.
You just don't know how use it properly.
Thanks btw how can I move up level accordingly ?
Читать полностью…
Hey. Please provide a minimal working example (MWE). Have a look at Minimal Working Example (MWE) if you need help.
Читать полностью…
ext.JobQueue.run_daily
python-telegram-bot documentation for this method:
telegram.ext.JobQueue.run_daily
v20 release notes and probably some discussion about it on the repo
Читать полностью…
Where I can read why PTB goes to async? What's the point?
Читать полностью…
I'm not using Updater.start_polling. I'm using app.run_polling.
Читать полностью…
Hi.
I want to check the connection to my database in a post_init function, and do other actions such as creating indexes on the db as well. And if the database is not connected, I want to shutdown the program.
My current code is this:
async def post_init(app: Application) -> None:
try:
await MongoDB().create_indexes()
except Exception as e:
logger.error(msg=f"Error Creating Indexes: {e}")
logger.critical(msg="Shutting down the bot due to error in post_init.")
sys.exit(1)
await app.bot.send_message(
chat_id=DEVELOPER_CHAT_ID,
text="Bot Started Successfully.",
)
sys:1: RuntimeWarning: coroutine 'Updater.start_polling' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
hi guys! Is it possible to retrieve the media group sent to a bot? Or does it receives photos as multiple updates?
Читать полностью…
I'm 18 now, a software engineering student in an university.
Читать полностью…
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
I'm having a hard time finding the convo, but someone had an issue with TypeHandler not handling timeouts
Читать полностью…
Wiki of python-telegram-bot - Category Must read
Introduction to the API