You can use this regular expression to identify any type of Telegram link. It doesn't matter whether it is t.me or telegram.me.
Links including "joinchat" are also accepted.