Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a sugared wrapper around takeout functions #1332

Open
flexagoon opened this issue Mar 6, 2024 · 1 comment
Open

Add a sugared wrapper around takeout functions #1332

flexagoon opened this issue Mar 6, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@flexagoon
Copy link

flexagoon commented Mar 6, 2024

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.

@flexagoon flexagoon added the enhancement New feature or request label Mar 6, 2024
@flexagoon
Copy link
Author

Looking at it, it seems like currently you can't even easily invoke things with a takeout session at all? You have to manually wrap the request and run it with Invoke().

@ernado ernado added help wanted Extra attention is needed good first issue Good for newcomers labels Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants