Improve chatInviteLinkInfo.type documentation.

This commit is contained in:
levlam 2023-09-11 00:29:09 +03:00
parent 40973f0977
commit edb3d08757
2 changed files with 4 additions and 4 deletions

View File

@ -905,7 +905,7 @@ chatInviteLinkMembers total_count:int32 members:vector<chatInviteLinkMember> = C
//@description Contains information about a chat invite link
//@chat_id Chat identifier of the invite link; 0 if the user has no access to the chat before joining
//@accessible_for If non-zero, the amount of time for which read access to the chat will remain available, in seconds
//@type Type of the chat
//@type Type of the chat; basic_group_id or supergroup_id can be 0 if the user has no access to the chat before joining
//@title Title of the chat
//@photo Chat photo; may be null
//@param_description Chat description
@ -6404,7 +6404,7 @@ clearRecentlyFoundChats = Ok;
//@description Returns recently opened chats; this is an offline request. Returns chats in the order of last opening @limit The maximum number of chats to be returned
getRecentlyOpenedChats limit:int32 = Chats;
//@description Checks whether a username can be set for a chat @chat_id Chat identifier; must be identifier of a supergroup chat, or a channel chat, or a private chat with self, or zero if the chat is being created @username Username to be checked
//@description Checks whether a username can be set for a chat @chat_id Chat identifier; must be identifier of a supergroup chat, or a channel chat, or a private chat with self, or 0 if the chat is being created @username Username to be checked
checkChatUsername chat_id:int53 username:string = CheckChatUsernameResult;
//@description Returns a list of public chats of the specified type, owned by the user @type Type of the public chats to return

View File

@ -19548,7 +19548,7 @@ tl_object_ptr<td_api::chatInviteLinkInfo> ContactsManager::get_chat_invite_link_
switch (dialog_id.get_type()) {
case DialogType::Chat: {
auto chat_id = dialog_id.get_chat_id();
const Chat *c = get_chat(chat_id);
const Chat *c = get_chat_force(chat_id);
if (c != nullptr) {
title = c->title;
@ -19564,7 +19564,7 @@ tl_object_ptr<td_api::chatInviteLinkInfo> ContactsManager::get_chat_invite_link_
}
case DialogType::Channel: {
auto channel_id = dialog_id.get_channel_id();
const Channel *c = get_channel(channel_id);
const Channel *c = get_channel_force(channel_id);
bool is_megagroup = false;
if (c != nullptr) {