diff --git a/wrappers/mtproto_intermediate.go b/wrappers/mtproto_intermediate.go index 13e2d42..5b88d74 100644 --- a/wrappers/mtproto_intermediate.go +++ b/wrappers/mtproto_intermediate.go @@ -76,7 +76,7 @@ func (m *MTProtoIntermediate) Write(p []byte) (int, error) { "counter", m.writeCounter, ) - if m.opts.ReadHacks.SimpleAck { + if m.opts.WriteHacks.SimpleAck { return m.conn.Write(p) } diff --git a/wrappers/mtproto_intermediate_secure.go b/wrappers/mtproto_intermediate_secure.go index ccffc90..b5aa362 100644 --- a/wrappers/mtproto_intermediate_secure.go +++ b/wrappers/mtproto_intermediate_secure.go @@ -36,7 +36,7 @@ func (m *MTProtoIntermediateSecure) Write(p []byte) (int, error) { "counter", m.writeCounter, ) - if m.opts.ReadHacks.SimpleAck { + if m.opts.WriteHacks.SimpleAck { return m.conn.Write(p) }