mtproto
mtproto copied to clipboard
[FEAT]: add support for context.Context
Is your feature request related to a problem? Please describe.
I think people may prefer to have the ability to cancel their requests at any time.
Describe the solution you'd like
Add context.Context to every func/method that involves network operations.
Describe alternatives you've considered
N/A
Additional context
This isn't a difficult feature to implement. What needs to be considered is the API compatibility (since this module have already released v1.0.0).
leave this link just for my info, don't mind it