收藏品
Telegram 用户可以通过用户名让其他人更容易联系他们或找到他们的公开群组和频道:客户还可以将多个Fragment » 收藏用户名分配给他们拥有的帐户、超级群组和频道;Fragment »还允许购买可用于注册 Telegram 帐户的电话号码收藏品。
可收藏的用户名
模式:
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#20b1422 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:# bot_can_edit:flags2.1?true close_friend:flags2.2?true stories_hidden:flags2.3?true stories_unavailable:flags2.4?true contact_require_premium:flags2.10?true bot_business:flags2.11?true bot_has_main_app:flags2.13?true 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> stories_max_id:flags2.5?int color:flags2.8?PeerColor profile_color:flags2.9?PeerColor bot_active_users:flags2.12?int bot_verification_icon:flags2.14?long send_paid_messages_stars:flags2.15?long = User;channel#fe685355 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:# stories_hidden:flags2.1?true stories_hidden_min:flags2.2?true stories_unavailable:flags2.3?true signature_profiles:flags2.12?true autotranslation:flags2.15?true broadcast_messages_allowed:flags2.16?true monoforum:flags2.17?true forum_tabs:flags2.19?true 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> stories_max_id:flags2.4?int color:flags2.7?PeerColor profile_color:flags2.8?PeerColor emoji_status:flags2.9?EmojiStatus level:flags2.10?int subscription_until_date:flags2.11?int bot_verification_icon:flags2.13?long send_paid_messages_stars:flags2.14?long linked_monoforum_id:flags2.18?long = Chat;---functions---account.toggleUsername#58d6b376 username:string active:Bool = Bool; account.reorderUsernames#ef500eab order:Vector<string> = Bool;bots.reorderUsernames#9709b1c2 bot:InputUser order:Vector<string> = Bool; bots.toggleUsername#053ca973 bot:InputUser username:string active:Bool = 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;
收藏级用户名与基本@用户名一样,它们会出现在全局搜索结果中,并且具有深度链接 »,就像基本用户名一样。
收藏级用户名的所有权由 TON(一个快速且可扩展的区块链网络)保障。这些用户名可以通过Fragment 平台进行买卖,从而为获取和交换有价值的 Telegram 域名提供了一种简单安全的方式。
在 Fragment 平台上,客户可以将购买的收藏用户名与其 Telegram 帐户或他们拥有的机器人/频道/超级群组关联或取消关联。
如果任何可收集用户名与帐户、频道或超级群组关联,则不会设置 `user.` 和 `channel.`,而是设置username`user.`和 `channel.`:这些字段包含一个用户名构造函数数组,用于指示某个用户名是基本用户名(已设置)还是可收集用户名(未设置);以及可收集用户名是否为 `user.`或 `channel.`。向量中的第一个用户名必须在用户界面中显示为主用户名。usernameusernamesusernameseditableeditableactive
usernames
关联后,用户名会立即被标记为“未激活”active(即只有所有者才能在usernames列表中看到它):使用`account.toggleUsername`、`bots.toggleUsername`或`channels.toggleUsername`将其标记为“已激活”。
请注意,您无法将基本(不可收集)用户名标记为“未激活”(如果有的话)。
channels.deactivateAllUsernames也可用于将与特定超级组或频道关联的所有可收集用户名标记为不活跃:例如,在将组或频道设为私有时,可以通过先使用空用户名调用channels.updateUsername来删除可编辑的用户名(如果存在),然后再调用此方法来删除所有关联的可收集用户名。
使用account.reorderUsernames/bots.reorderUsernames/channels.reorderUsernames更改与帐户、频道或超级组关联的用户名的顺序:必须指定所有当前活跃的用户名。
收藏电话号码
碎片化的可收集电话号码只能用于创建 Telegram 帐户,使用通常的注册/登录流程 »。
正在获取碎片收藏品的相关信息
模式:
inputCollectibleUsername#e39460a9 username:string = InputCollectible; inputCollectiblePhone#a2e214a4 phone:string = InputCollectible;fragment.collectibleInfo#6ebdff91 purchase_date:int currency:string amount:long crypto_currency:string crypto_amount:long url:string = fragment.CollectibleInfo;---functions---fragment.getCollectibleInfo#be1e85ba collectible:InputCollectible = fragment.CollectibleInfo;
fragment.getCollectibleInfo可用于获取我们或其他用户拥有的Fragment收藏品的信息(例如购买日期和价格)。
收藏品必须对当前用户可见,例如,它可以是我们拥有的 Fragment 用户/电话号码收藏品,或者其他用户在其帐户中启用的 Fragment 用户名,或者我们可以通过所有者的隐私设置看到的其他用户的 Fragment 电话号码。