toSuperGroupId static method
Implementation
static int toSuperGroupId(dynamic chat_id) {
if (chat_id is int) {
if (chat_id.isNegative) {
return int.parse("${chat_id}".replaceAll(RegExp(r"-100"), ""));
}
}
return 0;
}
static int toSuperGroupId(dynamic chat_id) {
if (chat_id is int) {
if (chat_id.isNegative) {
return int.parse("${chat_id}".replaceAll(RegExp(r"-100"), ""));
}
}
return 0;
}