pub enum InternalLinkType {
Show 25 variants GetInternalLinkType(GetInternalLinkType), ActiveSessions(InternalLinkTypeActiveSessions), AuthenticationCode(InternalLinkTypeAuthenticationCode), Background(InternalLinkTypeBackground), BotStart(InternalLinkTypeBotStart), BotStartInGroup(InternalLinkTypeBotStartInGroup), ChangePhoneNumber(InternalLinkTypeChangePhoneNumber), ChatInvite(InternalLinkTypeChatInvite), FilterSettings(InternalLinkTypeFilterSettings), Game(InternalLinkTypeGame), LanguagePack(InternalLinkTypeLanguagePack), Message(InternalLinkTypeMessage), MessageDraft(InternalLinkTypeMessageDraft), PassportDataRequest(InternalLinkTypePassportDataRequest), PhoneNumberConfirmation(InternalLinkTypePhoneNumberConfirmation), Proxy(InternalLinkTypeProxy), PublicChat(InternalLinkTypePublicChat), QrCodeAuthentication(InternalLinkTypeQrCodeAuthentication), Settings(InternalLinkTypeSettings), StickerSet(InternalLinkTypeStickerSet), Theme(InternalLinkTypeTheme), ThemeSettings(InternalLinkTypeThemeSettings), UnknownDeepLink(InternalLinkTypeUnknownDeepLink), UnsupportedProxy(InternalLinkTypeUnsupportedProxy), VideoChat(InternalLinkTypeVideoChat), // some variants omitted
}
Expand description

Describes an internal https://t.me or tg: link, which must be processed by the app in a special way

Variants

GetInternalLinkType(GetInternalLinkType)

Returns information about the type of an internal link. Returns a 404 error if the link is not internal. Can be called before authorization

ActiveSessions(InternalLinkTypeActiveSessions)

The link is a link to the active sessions section of the app. Use getActiveSessions to handle the link

AuthenticationCode(InternalLinkTypeAuthenticationCode)

The link contains an authentication code. Call checkAuthenticationCode with the code if the current authorization state is authorizationStateWaitCode

Background(InternalLinkTypeBackground)

The link is a link to a background. Call searchBackground with the given background name to process the link

BotStart(InternalLinkTypeBotStart)

The link is a link to a chat with a Telegram bot. Call searchPublicChat with the given bot username, check that the user is a bot, show START button in the chat with the bot, and then call sendBotStartMessage with the given start parameter after the button is pressed

BotStartInGroup(InternalLinkTypeBotStartInGroup)

The link is a link to a Telegram bot, which is supposed to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups, ask the current user to select a group to add the bot to, and then call sendBotStartMessage with the given start parameter and the chosen group chat. Bots can be added to a public group only by administrators of the group

ChangePhoneNumber(InternalLinkTypeChangePhoneNumber)

The link is a link to the change phone number section of the app

ChatInvite(InternalLinkTypeChatInvite)

The link is a chat invite link. Call checkChatInviteLink with the given invite link to process the link

FilterSettings(InternalLinkTypeFilterSettings)

The link is a link to the filter settings section of the app

Game(InternalLinkTypeGame)

The link is a link to a game. Call searchPublicChat with the given bot username, check that the user is a bot, ask the current user to select a chat to send the game, and then call sendMessage with inputMessageGame

LanguagePack(InternalLinkTypeLanguagePack)

The link is a link to a language pack. Call getLanguagePackInfo with the given language pack identifier to process the link

Message(InternalLinkTypeMessage)

The link is a link to a Telegram message. Call getMessageLinkInfo with the given URL to process the link

MessageDraft(InternalLinkTypeMessageDraft)

The link contains a message draft text. A share screen needs to be shown to the user, then the chosen chat must be opened and the text is added to the input field

PassportDataRequest(InternalLinkTypePassportDataRequest)

The link contains a request of Telegram passport data. Call getPassportAuthorizationForm with the given parameters to process the link if the link was received from outside of the app, otherwise ignore it

PhoneNumberConfirmation(InternalLinkTypePhoneNumberConfirmation)

The link can be used to confirm ownership of a phone number to prevent account deletion. Call sendPhoneNumberConfirmationCode with the given hash and phone number to process the link

Proxy(InternalLinkTypeProxy)

The link is a link to a proxy. Call addProxy with the given parameters to process the link and add the proxy

PublicChat(InternalLinkTypePublicChat)

The link is a link to a chat by its username. Call searchPublicChat with the given chat username to process the link

QrCodeAuthentication(InternalLinkTypeQrCodeAuthentication)

The link can be used to login the current user on another device, but it must be scanned from QR-code using in-app camera. An alert similar to “This code can be used to allow someone to log in to your Telegram account. To confirm Telegram login, please go to Settings > Devices > Scan QR and scan the code” needs to be shown

Settings(InternalLinkTypeSettings)

The link is a link to app settings

StickerSet(InternalLinkTypeStickerSet)

The link is a link to a sticker set. Call searchStickerSet with the given sticker set name to process the link and show the sticker set

Theme(InternalLinkTypeTheme)

The link is a link to a theme. TDLib has no theme support yet

ThemeSettings(InternalLinkTypeThemeSettings)

The link is a link to the theme settings section of the app

The link is an unknown tg: link. Call getDeepLinkInfo to process the link

UnsupportedProxy(InternalLinkTypeUnsupportedProxy)

The link is a link to an unsupported proxy. An alert can be shown to the user

VideoChat(InternalLinkTypeVideoChat)

The link is a link to a video chat. Call searchPublicChat with the given chat username, and then joinGoupCall with the given invite hash to process the link

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Return td type to json string

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.