Kindeskind/webservices/telegram_base_communication/src/telegram-history-dump/lib/msg_id.rb
# This function extracts a sortable hex string from the full ID
# The following assumptions are made about the telegram-cli build:
# * `sizeof(long long)` equals 8
# * Little endian byte order
This function extracts a sortable hex string from the full ID
The following assumptions are made about the telegram-cli build:
`sizeof(long long)` equals 8
Little endian byte order
This function extracts a sortable hex string from the full ID The following assumptions are made about the telegram - cli build : ` sizeof ( long long ) ` equals 8 Little endian byte order
def decode_sequence
    assert_length
    sequence_hex_le = @raw_hex[-32,16]
    flip_bytes(sequence_hex_le)
  end
def decode_sequence assert_length sequence_hex_le = @raw_hex [ - 32 , 16 ] flip_bytes ( sequence_hex_le ) end
This function extracts a sortable hex string from the full ID
The following assumptions are made about the telegram-cli build:
 `sizeof(long long)` equals 8
 Little endian byte order
This function extracts a sortable hex string from the full ID The following assumptions are made about the telegram - cli build : ` sizeof ( long long ) ` equals 8 Little endian byte order