This group is for questions, answers and discussions around the python-telegram-bot library. Off-topic group: @pythontelegrambottalk | Website: https://python-telegram-bot.org
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 ?
Читать полностью…I'm newbie in this bot can anyone suggest me the link from where to start for version 20 or latest ?
Читать полностью…i checked many times but i didn't find the bot.send_message() as found in the faq
Читать полностью…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
ok thank you @Poolitzer i try to study more deeply this command
Читать полностью…Then the faq entry will work you are doing something wrong, double check your code
Читать полностью…