diff --git a/data/web/corefork.telegram.org.html b/data/web/corefork.telegram.org.html index d67bcea4bf..6827d84b41 100644 --- a/data/web/corefork.telegram.org.html +++ b/data/web/corefork.telegram.org.html @@ -205,6 +205,8 @@ This allows the server to filter messages based on a text query, and even on the
Telegram allows translating chat messages, and Telegram Premium users may even enable real-time chat translation.
Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.
+Telegram users can make it easy for others to contact them or find their public groups and channels via usernames: clients can also assign multiple collectible usernames to accounts, supergroups and channels they own.
When interacting with HTML5 games and the websites of payment gateways, Telegram apps should expose the following JS APIs.
diff --git a/data/web/corefork.telegram.org/api.html b/data/web/corefork.telegram.org/api.html index d67bcea4bf..6827d84b41 100644 --- a/data/web/corefork.telegram.org/api.html +++ b/data/web/corefork.telegram.org/api.html @@ -205,6 +205,8 @@ This allows the server to filter messages based on a text query, and even on theTelegram allows translating chat messages, and Telegram Premium users may even enable real-time chat translation.
Admins of supergroups with a certain number of members can choose to unleash the full proactive power of Telegram's own antispam algorithms – turning on the new Aggressive mode for the automated spam filters.
+Telegram users can make it easy for others to contact them or find their public groups and channels via usernames: clients can also assign multiple collectible usernames to accounts, supergroups and channels they own.
When interacting with HTML5 games and the websites of payment gateways, Telegram apps should expose the following JS APIs.
diff --git a/data/web/corefork.telegram.org/api/auth.html b/data/web/corefork.telegram.org/api/auth.html index 9a73e8ae32..0886f728a0 100644 --- a/data/web/corefork.telegram.org/api/auth.html +++ b/data/web/corefork.telegram.org/api/auth.html @@ -66,11 +66,15 @@ If any of the logout tokens matches the account we're trying to login into and t auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType; auth.sentCodeTypeMissedCall#82006484 prefix:string length:int = auth.SentCodeType; auth.sentCodeTypeEmailCode#5a159841 flags:# apple_signin_allowed:flags.0?true google_signin_allowed:flags.1?true email_pattern:string length:int next_phone_login_date:flags.2?int = auth.SentCodeType; -auth.sentCodeTypeSetUpEmailRequired#a5491dea flags:# apple_signin_allowed:flags.0?true google_signin_allowed:flags.1?true = auth.SentCodeType; +auth.sentCodeTypeSetUpEmailRequired#a5491dea flags:# apple_signin_allowed:flags.0?true google_signin_allowed:flags.1?true = auth.SentCodeType; +auth.sentCodeTypeFragmentSms#d9565c39 url:string length:int = auth.SentCodeType; +auth.sentCodeTypeFirebaseSms#e57b1432 flags:# nonce:flags.0?bytes receipt:flags.1?string push_timeout:flags.1?int length:int = auth.SentCodeType;The system will automatically choose how to send the authorization code; there are multiple possible ways the code can arrive, signaled to the client via the auth.SentCodeType constructor returned by auth.sendCode:
url
to log into fragment.com with your wallet and view the code.Telegram users can make it easy for others to contact them or find their public groups and channels via usernames: clients can also assign multiple collectible usernames to accounts, supergroups and channels they own.
+Schema:
+username#b4073647 flags:# editable:flags.0?true active:flags.1?true username:string = Username;
+
+updateUserName#a7848924 user_id:long first_name:string last_name:string usernames:Vector<Username> = Update;
+
+user#8f97c628 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true bot_attach_menu:flags.27?true premium:flags.28?true attach_menu_enabled:flags.29?true flags2:# id:long access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector<RestrictionReason> bot_inline_placeholder:flags.19?string lang_code:flags.22?string emoji_status:flags.30?EmojiStatus usernames:flags2.0?Vector<Username> = User;
+
+channel#83259464 flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true fake:flags.25?true gigagroup:flags.26?true noforwards:flags.27?true join_to_send:flags.28?true join_request:flags.29?true forum:flags.30?true flags2:# id:long access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int restriction_reason:flags.9?Vector<RestrictionReason> admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int usernames:flags2.0?Vector<Username> = Chat;
+
+---functions---
+
+account.toggleUsername#58d6b376 username:string active:Bool = Bool;
+account.reorderUsernames#ef500eab order:Vector<string> = Bool;
+
+channels.toggleUsername#50f24105 channel:InputChannel username:string active:Bool = Bool;
+channels.reorderUsernames#b45ced1d channel:InputChannel order:Vector<string> = Bool;
+channels.deactivateAllUsernames#0a245dd3 channel:InputChannel = Bool;
+The ownership of collectible usernames is secured by TON, a fast and scalable blockchain network. They can be bought and sold through the Fragment platform », giving a simple and secure way to acquire and exchange valuable Telegram domains.
+Collectible usernames work just like basic @usernames, they appear in Global Search results and have deep links », just like basic usernames.
+Clients may associate or dissociate a purchased collectible username either to the current account by using account.toggleUsername, or to a channel or supergroup by using channels.toggleUsername.
+Note that you can't dissociate the basic (non-collectible) username, if any.
channels.deactivateAllUsernames may also be used to dissociate all collectible usernames associated to a certain supergroup or channel.
+Use account.reorderUsernames/channels.reorderUsernames to change the order of the usernames associated to an account, channel or supergroup.
+All currently active usernames must be specified: the first specified username should be shown in-UI as the main username.
If any collectible username is associated to an account, channel or supergroup, user.username
and channel.username
won't be set, and user.usernames
and channel.usernames
will be set, instead: these fields contain an array of username constructors, which indicate whether a certain username is a basic username (editable
is set) or a collectible username (editable
is not set); and whether a collectible username is active
or not.
An authentication code should be delivered via Firebase Authentication.
+The code was delivered via fragment.com.
+Code | +Type | +Description | +
---|---|---|
400 | +USERNAME_INVALID | +The provided username is not valid. | +