diff --git a/mtproto.go b/mtproto.go index bc5a001a..0a62b0c5 100755 --- a/mtproto.go +++ b/mtproto.go @@ -406,7 +406,7 @@ func (m *MTProto) connect(ctx context.Context) error { } func (m *MTProto) makeRequest(data tl.Object, expectedTypes ...reflect.Type) (any, error) { - if !m.TcpActive() { + for !m.TcpActive() { time.Sleep(20 * time.Millisecond) }