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.
I'm newbie in this bot can anyone suggest me the link from where to start for version 20 or latest ?
Читать полностью…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?
Читать полностью…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
Читать полностью…Then the faq entry will work you are doing something wrong, double check your code
Читать полностью…