Skip to content

Asyncio, aiogoogle, google drive... Help! #2344

Discussion options

You must be logged in to vote

Handler classes offer an option to make their callback functions run asynchronously, in their own thread: Handler(callback, run_async=True). The wiki has a pretty nice section about making the dispatcher run some handlers callbacks asynchronously.

Mind, the number of parallel updates the dispatcher will be able to run concurrently is limited to the number of workers you tell the Dispatcher to initialize (docs). You can set it while initializing your Updater object: Updater(token="", workers=16)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ciromanfredi
Comment options

Answer selected by ciromanfredi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants