revoke_chat_invite_link¶
-
template<class Agent>
api_result<chat_invite_link_t, Agent&&> revoke_chat_invite_link(Agent &&agent, revoke_chat_invite_link_args_t args)¶
-
template<class Agent, class F>
void revoke_chat_invite_link(Agent &&agent, revoke_chat_invite_link_args_t args, F &&callback)¶ agent
is any object satisfying agent concept.callback
is any callable object acceptingexpected<chat_invite_link_t>
.Use this method to revoke an invite link created by the bot. If the primary link is revoked, a new link is automatically generated. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the revoked invite link as ChatInviteLink object.