Skip to content
#

mtproto

Here are 119 public repositories matching this topic...

mtproto
aofei
aofei commented Mar 6, 2021

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 imple

tdakkota
tdakkota commented Mar 21, 2021

For now, there is no method which does handle SLOWMODE_WAIT error automatically.
It would be great to add chain parameter to set handler and retry request by default.

d := sender.Resolve("chat")
d.OnSlowMode(slowmode.Wait).Text(ctx, "Disable slow mode, please!") // same as call without OnSlowMode, Wait by default
d.OnSlowMode(slowmode.Err).Text(ctx, "Disable slow mode, please!") // re

Improve this page

Add a description, image, and links to the mtproto topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the mtproto topic, visit your repo's landing page and select "manage topics."

Learn more