自定义选项
Telegram 为您的个人资料提供了许多自定义选项!
姓名和简介
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;userFull#c577b5ad flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# sponsored_enabled:flags2.7?true can_view_revenue:flags2.9?true bot_can_manage_emoji_status:flags2.10?true display_gifts_button:flags2.16?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme:flags.15?ChatTheme private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int stargifts_count:flags2.8?int starref_program:flags2.11?StarRefProgram bot_verification:flags2.12?BotVerification send_paid_messages_stars:flags2.14?long disallowed_gifts:flags2.15?DisallowedGiftsSettings stars_rating:flags2.17?StarsRating stars_my_pending_rating:flags2.18?StarsRating stars_my_pending_rating_date:flags2.18?int main_tab:flags2.20?ProfileTab saved_music:flags2.21?Document = UserFull;updateUserName#a7848924 user_id:long first_name:string last_name:string usernames:Vector<Username> = Update; updateUser#20529438 user_id:long = Update;---functions---account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User;
使用account.updateProfile更改about当前帐户的名称和简介()。
first_name并将last_name包含在用户构造函数中,以及userFullabout构造函数中的字段中。
更改名字/姓氏将发出updateUserName更新,更改about个人简介将发出updateUser更新(这应该会导致本地缓存的userFull构造函数失效,并在需要时 使用users.getFullUser重新获取)。
个人资料照片
userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto; userProfilePhoto#82d1f706 flags:# has_video:flags.0?true personal:flags.2?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = UserProfilePhoto;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;updateUser#20529438 user_id:long = Update;---functions---photos.updateProfilePhoto#9e82039 flags:# fallback:flags.0?true bot:flags.1?InputUser id:InputPhoto = photos.Photo; photos.uploadProfilePhoto#388a3b5 flags:# fallback:flags.3?true bot:flags.5?InputUser file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double video_emoji_markup:flags.4?VideoSize = photos.Photo;
使用photos.updateProfilePhoto或photos.uploadProfilePhoto设置个人资料(可选动画)图片,并发出updateUser请求。
照片将保存在用户帐户中。photo
请点击这里»查看有关个人资料图片及其使用方法的完整信息。
介绍
messages.stickersNotModified#f1749a22 = messages.Stickers; messages.stickers#30a6ec7e hash:long stickers:Vector<Document> = messages.Stickers;---functions---messages.getStickers#d5a5d3a1 emoticon:string hash:long = messages.Stickers;
当用户与没有聊天记录的用户打开私聊时,用户界面应显示随机选择的问候贴纸+发送消息的邀请。
要获取这个特殊的问候贴纸列表,请调用messages.getStickers并加上。emoticon=![]()
请注意,如果启用了自定义Telegram Business 简介 »,则必须使用userFull中指定的消息+贴纸。intro
表情符号状态
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;updateUserEmojiStatus#28373599 user_id:long emoji_status:EmojiStatus = Update;---functions---account.updateEmojiStatus#fbd3de6b emoji_status:EmojiStatus = Bool;
account.updateEmojiStatus可用于更新当前帐户的表情符号状态 »,该状态显示在帐户名称旁边。
表情符号状态将包含在用户中,emoji_status更改它将发出updateUserEmojiStatus更新。
请点击这里»了解更多关于表情符号状态的信息。
用户名
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;updateUserName#a7848924 user_id:long first_name:string last_name:string usernames:Vector<Username> = Update;contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector<Chat> users:Vector<User> = contacts.ResolvedPeer;---functions---account.updateUsername#3e0bdd7c username:string = User; account.toggleUsername#58d6b376 username:string active:Bool = Bool; account.reorderUsernames#ef500eab order:Vector<string> = Bool;contacts.resolveUsername#725afbbc flags:# username:string referer:flags.0?string = contacts.ResolvedPeer;
使用account.updateUsername更改@username当前帐户的用户名,其他用户可以使用该用户名与您联系,方法是使用contacts.resolveUsername解析用户名。
还可以配置多个可收集的用户名,使用account.toggleUsername和account.reorderUsernames。
主用户名将包含在user中,username任何其他用户名将包含在user中。更新/重新排序用户名将发出updateUserName事件。usernames
请点击这里»查看更多关于公开用户名链接的信息。
强调色
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;updateUser#20529438 user_id:long = Update;---functions---account.updateColor#7cefa15d flags:# for_profile:flags.1?true color:flags.2?int background_emoji_id:flags.0?long = Bool;
使用account.updateColor更新当前个人资料的强调色和背景表情符号,该个人资料位于user./user..colorprofile_color
更改此设置将发出updateUser更新。
请点击这里»了解更多关于装饰色的信息。
生日
birthday#6c8e1e06 flags:# day:int month:int year:flags.0?int = Birthday;userFull#c577b5ad flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# sponsored_enabled:flags2.7?true can_view_revenue:flags2.9?true bot_can_manage_emoji_status:flags2.10?true display_gifts_button:flags2.16?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme:flags.15?ChatTheme private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int stargifts_count:flags2.8?int starref_program:flags2.11?StarRefProgram bot_verification:flags2.12?BotVerification send_paid_messages_stars:flags2.14?long disallowed_gifts:flags2.15?DisallowedGiftsSettings stars_rating:flags2.17?StarsRating stars_my_pending_rating:flags2.18?StarsRating stars_my_pending_rating_date:flags2.18?int main_tab:flags2.20?ProfileTab saved_music:flags2.21?Document = UserFull;updateUser#20529438 user_id:long = Update;contactBirthday#1d998733 contact_id:long birthday:Birthday = ContactBirthday;contacts.contactBirthdays#114ff30d contacts:Vector<ContactBirthday> users:Vector<User> = contacts.ContactBirthdays;inputPrivacyKeyBirthday#d65a11cc = InputPrivacyKey;privacyKeyBirthday#2000a518 = PrivacyKey;---functions---account.updateBirthday#cc6e0c11 flags:# birthday:flags.0?Birthday = Bool;contacts.getBirthdays#daeda864 = contacts.ContactBirthdays;help.dismissSuggestion#f50dbaa1 peer:InputPeer suggestion:string = Bool;
使用account.updateBirthday设置一个生日日期,该日期将根据inputPrivacyKeyBirthday的当前隐私设置(默认情况下仅限联系人)向隐私设置中指定的用户显示» 。
用户生日(如果当前用户可访问)将存在于用户中,birthday更改生日将发出updateUser更新。
设置实际出生日期year是可选的,如果设置,允许的年龄范围目前为0 <= years <= 150(仅在更新生日时检查);400 BIRTHDAY_INVALID否则将发出错误。
要移除生日信息,请在不设置标志的情况下调用该方法birthday。
客户端应显示一个工具提示来设置生日;用户可以关闭此工具提示,这将触发对help.dismissSuggestion的调用,并传入 suggestion=,以便通过客户端配置字段 »BIRTHDAY_SETUP同步所有当前登录客户端的状态。dismissed_suggestions
contacts.getBirthdays返回所有生日在当前日期前后 1 天以内的用户:客户端应每 6-8 小时调用一次此方法,如果结果不为空,则应使用该结果适当地更新用户本地缓存的生日信息。birthday
如果且仅当未设置BIRTHDAY_CONTACTS_TODAY建议»时,所有用户.字段(通过contacts.getBirthdays和其他方式更新,例如通过updateUser更新)与今天相差在+1/-1天内的联系人应始终列在全局对话框列表(而不是用户特定的操作栏»)中的操作栏中,邀请用户向这些用户赠送生日礼物,形式为一个或多个Telegram Premium订阅»。birthday
用户可以关闭生日操作栏,并通过调用help.dismissSuggestion并传入 suggestion= 参数BIRTHDAY_CONTACTS_TODAY,将其状态同步到其他当前登录的会话。
由于BIRTHDAY_CONTACTS_TODAY这是一个反向建议,关闭它实际上会在客户端配置中启用它,所有当前登录的会话都会收到updateConfig的通知。它的出现应该被视为不显示生日操作栏的信号。
如果用户向 24 小时内过生日的朋友赠送一个或多个 Telegram Premium 订阅,服务器也会自动启用该建议,从而对其他已登录会话隐藏生日操作栏。
此外,如果用户的生日在用户指定的指定时间范围(+1/-1 天)内,birthday则在与该用户的私聊文本输入栏中应显示礼物图标工具提示,从而引导用户进入Telegram Premium 礼物流程 »(这也适用于允许我们查看其生日日期的非联系人),无论是否存在BIRTHDAY_CONTACTS_TODAY。
个人频道
inputChannel#f35aec28 channel_id:long access_hash:long = InputChannel; inputChannelEmpty#ee8c1e86 = InputChannel;userFull#c577b5ad flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# sponsored_enabled:flags2.7?true can_view_revenue:flags2.9?true bot_can_manage_emoji_status:flags2.10?true display_gifts_button:flags2.16?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme:flags.15?ChatTheme private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int stargifts_count:flags2.8?int starref_program:flags2.11?StarRefProgram bot_verification:flags2.12?BotVerification send_paid_messages_stars:flags2.14?long disallowed_gifts:flags2.15?DisallowedGiftsSettings stars_rating:flags2.17?StarsRating stars_my_pending_rating:flags2.18?StarsRating stars_my_pending_rating_date:flags2.18?int main_tab:flags2.20?ProfileTab saved_music:flags2.21?Document = UserFull;updateUser#20529438 user_id:long = Update;---functions---channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true for_personal:flags.2?true = messages.Chats;account.updatePersonalChannel#d94305e0 channel:InputChannel = Bool;
使用account.updatePersonalChannel关联(或通过inputChannelEmpty删除)个人频道 »,该频道将列在我们的个人资料页面上。
要获取可以传递给account.updatePersonalChannel的完整频道列表,请调用channels.getAdminedPublicChannels,并设置for_personal标志。
关联的频道 ID 将存在于用户中,personal_channel_id并且应在 UI 预览中显示的最新消息的 ID 也包含在用户中。personal_channel_message
更改此设置将发出updateUser更新。
企业简介
---functions---account.updateBusinessWorkHours#4b00e066 flags:# business_work_hours:flags.0?BusinessWorkHours = Bool; account.updateBusinessLocation#9e6b131a flags:# geo_point:flags.1?InputGeoPoint address:flags.0?string = Bool; account.updateBusinessGreetingMessage#66cdafc4 flags:# message:flags.0?InputBusinessGreetingMessage = Bool; account.updateBusinessAwayMessage#a26a7fa5 flags:# message:flags.0?InputBusinessAwayMessage = Bool; account.updateBusinessIntro#a614d034 flags:# intro:flags.0?InputBusinessIntro = Bool;个人资料页面上应显示大量与Telegram Business 相关的各种信息,请点击此处 »查看字段完整列表以及如何更改它们。
在线状态
userStatusEmpty#9d05049 = UserStatus; userStatusOnline#edb93949 expires:int = UserStatus; userStatusOffline#8c703f was_online:int = UserStatus; userStatusRecently#7b197dc8 flags:# by_me:flags.0?true = UserStatus; userStatusLastWeek#541a1d1a flags:# by_me:flags.0?true = UserStatus; userStatusLastMonth#65899777 flags:# by_me:flags.0?true = UserStatus;updateUserStatus#e5bdf8de user_id:long status:UserStatus = Update;---functions---account.updateStatus#6628562c offline:Bool = Bool;
使用account.updateStatus更改当前帐户的在线状态。
更改在线状态将发出updateUserStatus更新。
星级评定
Telegram 个人资料现在会显示一个徽章,其中包含根据用户与 Telegram Stars 完成的成功交易总量计算的数字评分,点击此处 »了解更多信息。
标签页
userFull#c577b5ad flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# sponsored_enabled:flags2.7?true can_view_revenue:flags2.9?true bot_can_manage_emoji_status:flags2.10?true display_gifts_button:flags2.16?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme:flags.15?ChatTheme private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int stargifts_count:flags2.8?int starref_program:flags2.11?StarRefProgram bot_verification:flags2.12?BotVerification send_paid_messages_stars:flags2.14?long disallowed_gifts:flags2.15?DisallowedGiftsSettings stars_rating:flags2.17?StarsRating stars_my_pending_rating:flags2.18?StarsRating stars_my_pending_rating_date:flags2.18?int main_tab:flags2.20?ProfileTab saved_music:flags2.21?Document = UserFull;channelFull#e4e0b29d flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true flags2:# can_delete_channel:flags2.0?true antispam:flags2.1?true participants_hidden:flags2.2?true translations_disabled:flags2.3?true stories_pinned_available:flags2.5?true view_forum_as_messages:flags2.6?true restricted_sponsored:flags2.11?true can_view_revenue:flags2.12?true paid_media_allowed:flags2.14?true can_view_stars_revenue:flags2.15?true paid_reactions_available:flags2.16?true stargifts_available:flags2.19?true paid_messages_available:flags2.20?true id:long about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?long migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector<string> groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector<long> default_send_as:flags.29?Peer available_reactions:flags.30?ChatReactions reactions_limit:flags2.13?int stories:flags2.4?PeerStories wallpaper:flags2.7?WallPaper boosts_applied:flags2.8?int boosts_unrestrict:flags2.9?int emojiset:flags2.10?StickerSet bot_verification:flags2.17?BotVerification stargifts_count:flags2.18?int send_paid_messages_stars:flags2.21?long main_tab:flags2.22?ProfileTab = ChatFull;profileTabPosts#b98cd696 = ProfileTab; profileTabGifts#4d4bd46a = ProfileTab; profileTabMedia#72c64955 = ProfileTab; profileTabFiles#ab339c00 = ProfileTab; profileTabMusic#9f27d26e = ProfileTab; profileTabVoice#e477092e = ProfileTab; profileTabLinks#d3656499 = ProfileTab; profileTabGifs#a2c0f695 = ProfileTab;---functions---account.setMainProfileTab#5dee78b0 tab:ProfileTab = Bool;channels.setMainProfileTab#3583fcb1 channel:InputChannel tab:ProfileTab = Bool;
个人资料页面的下半部分有多个选项卡:用户和频道可以使用account.setMainProfileTab和channels.setMainProfileTab选择在用户打开个人资料页面时首先显示的个人资料选项卡:有关可以设置为主选项卡的完整选项卡列表, 请参阅ProfileTab 类型页面(也列在下面)。
选定的选项卡随后将在userFull和channelFull中可用。main_tabmain_tab
故事
profileTabPosts#b98cd696 = ProfileTab;
此标签页包含置顶到个人资料中的故事 »。
用户和频道均可使用。
点击此处»了解更多关于如何从此标签页添加、删除和获取新闻的信息。
故事专辑也应该得到支持。
礼物
profileTabGifts#4d4bd46a = ProfileTab;
此标签页包含已添加到个人资料的礼物 »。
用户和频道均可使用。
点击此处»查看更多关于如何从此标签页添加、删除和获取礼物的信息。
此标签页还应包含礼品收集指示器 »。
音乐
profileTabMusic#9f27d26e = ProfileTab;account.savedMusicIdsNotModified#4fc81d6e = account.SavedMusicIds; account.savedMusicIds#998d6636 ids:Vector<long> = account.SavedMusicIds;users.savedMusicNotModified#e3878aa4 count:int = users.SavedMusic; users.savedMusic#34a2f297 count:int documents:Vector<Document> = users.SavedMusic;userFull#c577b5ad flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# sponsored_enabled:flags2.7?true can_view_revenue:flags2.9?true bot_can_manage_emoji_status:flags2.10?true display_gifts_button:flags2.16?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme:flags.15?ChatTheme private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int stargifts_count:flags2.8?int starref_program:flags2.11?StarRefProgram bot_verification:flags2.12?BotVerification send_paid_messages_stars:flags2.14?long disallowed_gifts:flags2.15?DisallowedGiftsSettings stars_rating:flags2.17?StarsRating stars_my_pending_rating:flags2.18?StarsRating stars_my_pending_rating_date:flags2.18?int main_tab:flags2.20?ProfileTab saved_music:flags2.21?Document = UserFull;---functions---account.saveMusic#b26732a9 flags:# unsave:flags.0?true id:InputDocument after_id:flags.1?InputDocument = Bool;users.getSavedMusic#788d7fe3 id:InputUser offset:int limit:int hash:long = users.SavedMusic;account.getSavedMusicIds#e09d5faf hash:long = account.SavedMusicIds;users.getSavedMusicByID#7573a4e9 id:InputUser documents:Vector<InputDocument> = users.SavedMusic;
此标签页显示使用下述方法添加到个人资料中的音乐。
仅供用户使用。
要将音乐文件添加到我们的个人资料中,请在私人聊天、群组或频道中可用的音乐文件上调用account.saveMusicunsave;要从个人资料中删除歌曲,请调用带有标志的方法。
添加到个人资料中的 第一首歌曲将在用户完整版中可用。saved_music
可以通过users.getSavedMusic获取添加到个人资料中的歌曲(我们和其他用户都可以获取)。
使用`account.saveMusic`添加歌曲时,after_id可以设置一个标志,指定要添加的歌曲id应位于传入歌曲之后after_id(传入歌曲必须已存在于已保存的歌曲列表中):即使歌曲id已存在于已保存的歌曲列表中,也可以这样做来重新排序。
添加已添加的歌曲不会重新添加它,只会将其移动到歌曲列表顶部(或传入歌曲之后after_id)。如果传入的音频文件当前不在用户个人资料中(例如,已被其他用户从个人资料中删除),则
该方法将返回 false。after_id
要获取我们添加到个人资料中的歌曲 ID 的完整无序列表,请使用account.getSavedMusicIds:此方法不需要分页,因为它只返回文档 ID,而不返回完整的文档对象:如果字段hash(以通常的方式从返回的 ID 生成)已填充,则可以使用它快速检查是否有新歌曲添加到我们的个人资料中(而不是歌曲顺序更改)。
如上所述,要获取任何个人资料(包括我们自己的个人资料)上的歌曲有序列表,请使用users.getSavedMusic。
users.getSavedMusicByID接受一个音频输入文档列表,并且仅当关联的文档当前固定在指定用户的个人资料上时才返回它们:虽然它可以用来检查某些歌曲是否仍然固定在用户的个人资料上,但它的主要用途是重新获取先前在用户个人资料上看到的歌曲的过期文件引用,因为只有在此方法的上下文中,传递的输入文档才能有一个空file_reference字段,并且如果音频仍然固定在用户的个人资料上,则该方法将返回刷新的引用(这种情况已经由文件引用映射文件自动处理)。
媒体
profileTabMedia#72c64955 = ProfileTab;
此标签页显示聊天中分享的视频和照片,使用messages.search和inputMessagesFilterPhotoVideo过滤器获取,请参阅此处 »了解更多信息。
用户和频道均可使用。
语音留言
profileTabVoice#e477092e = ProfileTab;
此选项卡显示聊天中共享的语音消息,这些消息是通过messages.search和inputMessagesFilterVoice过滤器获取的,请参阅此处 »了解更多信息。
用户和频道均可使用。
链接
profileTabLinks#d3656499 = ProfileTab;
此标签页显示聊天中共享的语音消息,这些消息是通过messages.search和inputMessagesFilterUrl过滤器获取的,请参阅此处 »了解更多信息。
用户和频道均可使用。
GIF动图
profileTabGifs#a2c0f695 = ProfileTab;
此标签页显示聊天中分享的 GIF,使用messages.search和inputMessagesFilterGif过滤器获取,请参阅此处 »了解更多信息。
用户和频道均可使用。