diff --git a/data/web/corefork.telegram.org/api/links.html b/data/web/corefork.telegram.org/api/links.html index 30db31d77b..345a70faf3 100644 --- a/data/web/corefork.telegram.org/api/links.html +++ b/data/web/corefork.telegram.org/api/links.html @@ -107,28 +107,6 @@

Note that chat invite links have the same syntax, but <phone_number> is not a valid phone number.

-

User ID links

-

Used to link to users by their user ID: such links should only be parsed when encountered in inline or reply keyboard buttons.
-They are useful when linking to users without a username, but of course they will work only if the client has the user's access hash already stored in its database.

-

tg: syntax:

-
tg://user?id=<user_id>
-

Parameters:

- - - - - - - - - - - - - - - -
NameOptionalDescription
user_idRequiredUser ID

Chat invite links

Used to invite users to private groups and channels, see here for more info on how to generate such links ».

t.me syntax:

@@ -211,48 +189,12 @@ They are useful when linking to users without a username, but of course they wil -

Settings links

-

Settings link

-

Used to bring the user to the app settings.

-

tg: syntax:

-
tg://settings
-

No parameters.

-

Change phone number link

-

Used to bring the user to the phone number modification page, invoking account.sendChangePhoneCode and account.changePhone.

-

tg: syntax:

-
tg://settings/change_number
-

No parameters.

-

Active sessions link

-

Used to bring the user to the active sessions page, calling account.getAuthorizations.

-

tg: syntax:

-
tg://settings/devices
-

No parameters.

-

Folder settings link

-

Used to bring the user to the folder settings.

-

tg: syntax:

-
tg://settings/folders
-

No parameters.

-

Language settings link

-

Used to bring the user to the language settings.

-

tg: syntax:

-
tg://settings/language
-

No parameters.

-

Privacy and security settings link

-

Used to bring the user to the privacy and security settings.

-

tg: syntax:

-
tg://settings/privacy
-

No parameters.

-

Theme settings link

-

Used to bring the user to the theme settings section of the app.

-

tg: syntax:

-
tg://settings/theme
-

No parameters.

-

Login code link

-

Contains the phone number verification code to use during user authorization ».

+

Stickerset links

+

Used to import stickersets:

t.me syntax:

-
t.me/login/<code>
+
t.me/addstickers/<name>

tg: syntax:

-
tg://login?code=<code>
+
tg://addstickers?set=<name>

Parameters:

@@ -264,9 +206,161 @@ They are useful when linking to users without a username, but of course they wil - + - + + + +
codename RequiredLogin code.Stickerset name
+

Custom emoji stickerset links

+

Used to import custom emoji stickersets:

+

t.me syntax:

+
t.me/addemoji/<name>
+

tg: syntax:

+
tg://addemoji?set=<name>
+

Parameters:

+ + + + + + + + + + + + + + + +
NameOptionalDescription
nameRequiredStickerset name
+

Theme links

+

t.me syntax:

+
t.me/addtheme/<name>
+

tg: syntax:

+
tg://addtheme?slug=<name>
+

Parameters:

+ + + + + + + + + + + + + + + +
NameOptionalDescription
nameRequiredTheme name
+

Voice chat/Video chat/Livestream links

+

Used to join voice chats and video chats in groups, and livestreams in channels.
+Such links are generated using phone.exportGroupCallInvite.

+

t.me syntax:

+
t.me/<username>?voicechat
+t.me/<username>?voicechat=<invite_hash>
+t.me/<username>?videochat
+t.me/<username>?videochat=<invite_hash>
+t.me/<username>?livestream
+t.me/<username>?livestream=<invite_hash>
+

tg: syntax:

+
tg://resolve?domain=<username>&voicechat
+tg://resolve?domain=<username>&voicechat=<invite_hash>
+tg://resolve?domain=<username>&videochat
+tg://resolve?domain=<username>&videochat=<invite_hash>
+tg://resolve?domain=<username>&livestream
+tg://resolve?domain=<username>&livestream=<invite_hash>
+

Parameters:

+ + + + + + + + + + + + + + + +
NameOptionalDescription
invite_hashOptionalInvite hash exported if the can_self_unmute flag is set when calling phone.exportGroupCallInvite: should be passed to phone.joinGroupCall, allows the user to speak in livestreams or muted group chats.
+

Proxy links

+

Used to share a proxy server that can be used to connect to Telegram.

+

MTProxy links

+

Used for MTProxies ».

+

t.me syntax:

+
t.me/proxy?server=<server>&port=<port>&secret=<secret>
+

tg: syntax:

+
tg://proxy?server=<server>&port=<port>&secret=<secret>
+

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameOptionalDescription
serverRequiredMTProxy server IP address or host
portRequiredMTProxy server port
secretRequiredMTProxy secret »
+

Socks5 proxy links

+

Used for socks5 proxies.

+

t.me syntax:

+
t.me/socks?server=<server>&port=<port>&user=<user>&pass=<pass>
+

tg: syntax:

+
tg://socks?server=<server>&port=<port>&user=<user>&pass=<pass>
+

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameOptionalDescription
serverRequiredProxy server IP address or host
portRequiredProxy server port
userOptionalProxy server username
passOptionalProxy server password
@@ -661,6 +755,65 @@ tg://resolve?domain=<bot_username>&startgroup&admin=<permission +

Settings links

+

Settings link

+

Used to bring the user to the app settings.

+

tg: syntax:

+
tg://settings
+

No parameters.

+

Change phone number link

+

Used to bring the user to the phone number modification page, invoking account.sendChangePhoneCode and account.changePhone.

+

tg: syntax:

+
tg://settings/change_number
+

No parameters.

+

Active sessions link

+

Used to bring the user to the active sessions page, calling account.getAuthorizations.

+

tg: syntax:

+
tg://settings/devices
+

No parameters.

+

Folder settings link

+

Used to bring the user to the folder settings.

+

tg: syntax:

+
tg://settings/folders
+

No parameters.

+

Language settings link

+

Used to bring the user to the language settings.

+

tg: syntax:

+
tg://settings/language
+

No parameters.

+

Privacy and security settings link

+

Used to bring the user to the privacy and security settings.

+

tg: syntax:

+
tg://settings/privacy
+

No parameters.

+

Theme settings link

+

Used to bring the user to the theme settings section of the app.

+

tg: syntax:

+
tg://settings/theme
+

No parameters.

+

Login code link

+

Contains the phone number verification code to use during user authorization ».

+

t.me syntax:

+
t.me/login/<code>
+

tg: syntax:

+
tg://login?code=<code>
+

Parameters:

+ + + + + + + + + + + + + + + +
NameOptionalDescription
codeRequiredLogin code.

Invoice links

t.me syntax:

t.me/invoice/<slug>
@@ -798,79 +951,6 @@ These links are used to confirm ownership of the phone number, to prevent accoun
 
 
 
-

Proxy links

-

Used to share a proxy server that can be used to connect to Telegram.

-

MTProxy links

-

Used for MTProxies ».

-

t.me syntax:

-
t.me/proxy?server=<server>&port=<port>&secret=<secret>
-

tg: syntax:

-
tg://proxy?server=<server>&port=<port>&secret=<secret>
-

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameOptionalDescription
serverRequiredMTProxy server IP address or host
portRequiredMTProxy server port
secretRequiredMTProxy secret »
-

Socks5 proxy links

-

Used for socks5 proxies.

-

t.me syntax:

-
t.me/socks?server=<server>&port=<port>&user=<user>&pass=<pass>
-

tg: syntax:

-
tg://socks?server=<server>&port=<port>&user=<user>&pass=<pass>
-

Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameOptionalDescription
serverRequiredProxy server IP address or host
portRequiredProxy server port
userOptionalProxy server username
passOptionalProxy server password

QR code login links

Used by QR code login.

tg: syntax:

@@ -892,108 +972,6 @@ These links are used to confirm ownership of the phone number, to prevent accoun -

Stickerset links

-

Used to import stickersets:

-

t.me syntax:

-
t.me/addstickers/<name>
-

tg: syntax:

-
tg://addstickers?set=<name>
-

Parameters:

- - - - - - - - - - - - - - - -
NameOptionalDescription
nameRequiredStickerset name
-

Custom emoji stickerset links

-

Used to import custom emoji stickersets:

-

t.me syntax:

-
t.me/addemoji/<name>
-

tg: syntax:

-
tg://addemoji?set=<name>
-

Parameters:

- - - - - - - - - - - - - - - -
NameOptionalDescription
nameRequiredStickerset name
-

Theme links

-

t.me syntax:

-
t.me/addtheme/<name>
-

tg: syntax:

-
tg://addtheme?slug=<name>
-

Parameters:

- - - - - - - - - - - - - - - -
NameOptionalDescription
nameRequiredTheme name
-

Voice chat/Video chat/Livestream links

-

Used to join voice chats and video chats in groups, and livestreams in channels.
-Such links are generated using phone.exportGroupCallInvite.

-

t.me syntax:

-
t.me/<username>?voicechat
-t.me/<username>?voicechat=<invite_hash>
-t.me/<username>?videochat
-t.me/<username>?videochat=<invite_hash>
-t.me/<username>?livestream
-t.me/<username>?livestream=<invite_hash>
-

tg: syntax:

-
tg://resolve?domain=<username>&voicechat
-tg://resolve?domain=<username>&voicechat=<invite_hash>
-tg://resolve?domain=<username>&videochat
-tg://resolve?domain=<username>&videochat=<invite_hash>
-tg://resolve?domain=<username>&livestream
-tg://resolve?domain=<username>&livestream=<invite_hash>
-

Parameters:

- - - - - - - - - - - - - - - -
NameOptionalDescription
invite_hashOptionalInvite hash exported if the can_self_unmute flag is set when calling phone.exportGroupCallInvite: should be passed to phone.joinGroupCall, allows the user to speak in livestreams or muted group chats.

Bot attachment menu links

t.me syntax:

t.me/<username>?attach=<bot_username>