Add a sugared wrapper around takeout functions #1332
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Description
Currently you have to manually start a takeout session and wrap all of your calls in a InvokeWithTakeout. It would be nice to have a wrapper which streamlines this process.
References
Here's how Telethon does it:
https://docs.telethon.dev/en/stable/modules/client.html#telethon.client.account.AccountMethods.takeout
They have a special client class which wraps all of the method calls in an InvokeWithTakeout.
The text was updated successfully, but these errors were encountered: