edit_chat_invite_link#
-
template<class Agent>
api_result<chat_invite_link_t, Agent&&> edit_chat_invite_link(Agent &&agent, edit_chat_invite_link_args_t args)# agent
is any object satisfying agent concept.Use this method to edit a non-primary invite link created by the bot. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the edited invite link as a ChatInviteLink object.
-
struct edit_chat_invite_link_args_t#
Arguments that should be passed to
edit_chat_invite_link()
.Unique identifier for the target chat or username of the target channel (in the format @channelusername)
The invite link to edit
-
optional_t<integer_t> expire_date#
Point in time (Unix timestamp) when the link will expire
-
optional_t<integer_t> member_limit#
Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
-
optional_t<integer_t> expire_date#