telegram_post static method
convert messages_api to messages_api_tdlib example:
String telegram_post = GeneralLibUtils.telegram_post(chat_id: -1001201210, message_id: 102903); // result: https://t.me/c/1201210/102903
Implementation
static String telegram_post({
required dynamic chat_id,
required dynamic message_id,
}) {
return Uri.parse("https://t.me/").replace(
pathSegments: [
"c",
chat_id
.toString()
.replaceAll(RegExp(r"^(-100|-)", caseSensitive: false), ""),
message_id.toString(),
],
).toString();
}