• Get the marked (non-bare) ID from a tl.TypePeer

    Mark* is bot API compatible, which is:

    • ID stays the same for users
    • ID is negated for chats
    • ID is negated and -1e12 is subtracted for channels

    Parameters

    Returns number

  • Get the marked (non-bare) ID from a tl.TypePeer

    Mark* is bot API compatible, which is:

    • ID stays the same for users
    • ID is negated for chats
    • ID is negated and -1e12 is subtracted for channels

    Returns number