You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
396 B

package mtproto
import (
"github.com/go-faster/errors"
"go.uber.org/zap"
"github.com/gotd/td/bin"
"github.com/gotd/td/internal/mt"
)
func (c *Conn) handleAck(b *bin.Buffer) error {
var ack mt.MsgsAck
if err := ack.Decode(b); err != nil {
return errors.Wrap(err, "decode")
}
c.log.Debug("Received ack", zap.Int64s("msg_ids", ack.MsgIDs))
c.rpc.NotifyAcks(ack.MsgIDs)
return nil
}