Documentation ¶
Overview ¶
Package deeplink contains deeplink parsing helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDeeplinkLike ¶
IsDeeplinkLike returns true if string may be a valid deeplink.
Types ¶
type DeepLink ¶
DeepLink represents Telegram deeplink.
type Type ¶
type Type string
Type is an enum type of Telegram deeplinks types.
const ( // Resolve is deeplink like // // tg:resolve?domain={domain} // tg://resolve?domain={domain} // https://t.me/{domain} // https://telegram.me/{domain} // Resolve Type = "resolve" // Join is deeplink like // // tg:join?invite={hash} // tg://join?invite={hash} // https://t.me/joinchat/{hash} // https://telegram.me/joinchat/{hash} // Join Type = "join" )
Click to show internal directories.
Click to hide internal directories.