messagesTdlibToApi static method
convert messages_api to messages_api_tdlib example:
List<int> messages_api = [1048576];
List<num> messages_tdlib = GeneralLibUtils.messagesTdlibToApi(message_api); // result: [1]
Implementation
static List<int> messagesTdlibToApi(dynamic message_ids) {
if (message_ids is List<num>) {
return message_ids
.map((message_id) => messageTdlibToApi(message_id).toInt())
.toList()
.cast<int>();
}
if (message_ids is num) {
return [message_ids.toInt()];
}
return [];
}