toSuperGroupId static method

int toSuperGroupId(
  1. dynamic chat_id
)

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;
}