messageApiToTdlib static method

num messageApiToTdlib(
  1. dynamic message_id
)

convert message_api to message_api_tdlib example:

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

Implementation

static num messageApiToTdlib(dynamic message_id) {
  if (message_id is num) {
    return (message_id * 1048576).toInt();
  }
  return 0;
}