Skip to content

miniproto.mtproto.state.MTProtoState.record_incoming

miniproto.mtproto.state.MTProtoState.record_incoming

Section titled “miniproto.mtproto.state.MTProtoState.record_incoming”
record_incoming(msg_id: int, *, content_related: bool = True) -> bool

Record a server message unless it is already known.

Parameters:

  • msg_id (int) – Server message ID.
  • content_related (bool) – Queue an acknowledgement when True (the default).

Returns:

  • boolTrue for a newly recorded ID, otherwise False.