diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index dcce2e93f..136aef5c1 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -568,14 +568,14 @@ supergroupMembersFilterBots = SupergroupMembersFilter; //@creator_user_id User identifier of an administrator created the link //@date Point in time (Unix timestamp) when the link was created //@edit_date Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown -//@expire_date Point in time (Unix timestamp) when the link will expire; 0 if never +//@expiration_date Point in time (Unix timestamp) when the link will expire; 0 if never //@member_limit The maximum number of members, which can join the chat using the link simultaneously; 0 if not limited. Always 0 if the link requires approval //@member_count Number of chat members, which joined the chat using the link //@pending_join_request_count Number of pending join requests created using this link //@creates_join_request True, if the link only creates join request. If true, total number of joining members will be unlimited //@is_primary True, if the link is primary. Primary invite link can't have name, expiration date, or usage limit. There is exactly one primary invite link for each administrator with can_invite_users right at a given time //@is_revoked True, if the link was revoked -chatInviteLink invite_link:string name:string creator_user_id:int53 date:int32 edit_date:int32 expire_date:int32 member_limit:int32 member_count:int32 pending_join_request_count:int32 creates_join_request:Bool is_primary:Bool is_revoked:Bool = ChatInviteLink; +chatInviteLink invite_link:string name:string creator_user_id:int53 date:int32 edit_date:int32 expiration_date:int32 member_limit:int32 member_count:int32 pending_join_request_count:int32 creates_join_request:Bool is_primary:Bool is_revoked:Bool = ChatInviteLink; //@description Contains a list of chat invite links @total_count Approximate total count of chat invite links found @invite_links List of invite links chatInviteLinks total_count:int32 invite_links:vector = ChatInviteLinks; @@ -4968,19 +4968,19 @@ replacePrimaryChatInviteLink chat_id:int53 = ChatInviteLink; //@description Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat //@chat_id Chat identifier //@name Invite link name; 0-32 characters -//@expire_date Point in time (Unix timestamp) when the link will expire; pass 0 if never +//@expiration_date Point in time (Unix timestamp) when the link will expire; pass 0 if never //@member_limit The maximum number of chat members that can join the chat by the link simultaneously; 0-99999; pass 0 if not limited //@creates_join_request True, if the link only creates join request. If true, member_limit must not be specified -createChatInviteLink chat_id:int53 name:string expire_date:int32 member_limit:int32 creates_join_request:Bool = ChatInviteLink; +createChatInviteLink chat_id:int53 name:string expiration_date:int32 member_limit:int32 creates_join_request:Bool = ChatInviteLink; //@description Edits a non-primary invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links //@chat_id Chat identifier //@invite_link Invite link to be edited //@name Invite link name; 0-32 characters -//@expire_date Point in time (Unix timestamp) when the link will expire; pass 0 if never +//@expiration_date Point in time (Unix timestamp) when the link will expire; pass 0 if never //@member_limit The maximum number of chat members that can join the chat by the link simultaneously; 0-99999; pass 0 if not limited //@creates_join_request True, if the link only creates join request. If true, member_limit must not be specified -editChatInviteLink chat_id:int53 invite_link:string name:string expire_date:int32 member_limit:int32 creates_join_request:Bool = ChatInviteLink; +editChatInviteLink chat_id:int53 invite_link:string name:string expiration_date:int32 member_limit:int32 creates_join_request:Bool = ChatInviteLink; //@description Returns information about an invite link. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links //@chat_id Chat identifier diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index 505ed58a6..7d759db1a 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -6183,7 +6183,7 @@ void Td::on_request(uint64 id, td_api::createChatInviteLink &request) { CLEAN_INPUT_STRING(request.name_); CREATE_REQUEST_PROMISE(); contacts_manager_->export_dialog_invite_link(DialogId(request.chat_id_), std::move(request.name_), - request.expire_date_, request.member_limit_, + request.expiration_date_, request.member_limit_, request.creates_join_request_, false, std::move(promise)); } @@ -6192,8 +6192,8 @@ void Td::on_request(uint64 id, td_api::editChatInviteLink &request) { CLEAN_INPUT_STRING(request.invite_link_); CREATE_REQUEST_PROMISE(); contacts_manager_->edit_dialog_invite_link(DialogId(request.chat_id_), request.invite_link_, std::move(request.name_), - request.expire_date_, request.member_limit_, request.creates_join_request_, - std::move(promise)); + request.expiration_date_, request.member_limit_, + request.creates_join_request_, std::move(promise)); } void Td::on_request(uint64 id, td_api::getChatInviteLink &request) { diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 9848f9527..d15aa0b08 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -2993,22 +2993,22 @@ class CliClient final : public Actor { } else if (op == "ccilt") { string chat_id; string name; - int32 expire_date; + int32 expiration_date; int32 member_limit; bool creates_join_request; - get_args(args, chat_id, name, expire_date, member_limit, creates_join_request); - send_request(td_api::make_object(as_chat_id(chat_id), name, expire_date, + get_args(args, chat_id, name, expiration_date, member_limit, creates_join_request); + send_request(td_api::make_object(as_chat_id(chat_id), name, expiration_date, member_limit, creates_join_request)); } else if (op == "ecil") { string chat_id; string invite_link; string name; - int32 expire_date; + int32 expiration_date; int32 member_limit; bool creates_join_request; - get_args(args, chat_id, invite_link, name, expire_date, member_limit, creates_join_request); - send_request(td_api::make_object(as_chat_id(chat_id), invite_link, name, expire_date, - member_limit, creates_join_request)); + get_args(args, chat_id, invite_link, name, expiration_date, member_limit, creates_join_request); + send_request(td_api::make_object( + as_chat_id(chat_id), invite_link, name, expiration_date, member_limit, creates_join_request)); } else if (op == "rcil") { string chat_id; string invite_link;