sender_id_from_int static method
Implementation
static Map sender_id_from_int(int data_id) {
if (data_id > 0) {
return {
"@type": "messageSenderUser",
"user_id": data_id,
};
} else {
return {
"@type": "messageSenderChat",
"chat_id": data_id,
};
}
}