Skip to content

miniproto.connection.sender.MTProtoSender.flush_acks

miniproto.connection.sender.MTProtoSender.flush_acks

Section titled “miniproto.connection.sender.MTProtoSender.flush_acks”
flush_acks() -> int | None

Send currently queued acknowledgements, or return None when empty.

Returns:

  • int | None – The outgoing acknowledgement message ID, or None if there were
  • int | None – no pending acknowledgements to flush.

Raises:

  • BaseException – Any send failure after restoring popped acknowledgements to the state queue.