messageTdlibToApi static method

num messageTdlibToApi(
  1. dynamic message_id
)

convert message_api to message_api_tdlib example:

int message_tdlib = 1048576;
num message_api = GeneralLibUtils.messageTdlibToApi(message_api); // result: 1

Implementation

static num messageTdlibToApi(dynamic message_id) {
  if (message_id is num) {
    return (message_id ~/ 1048576).toInt();
  }
  return 0;
}