def export_chat_invite_link(chat_id, **kwargs):
    """
    Use this method to generate a new invite link for a chat; any previously generated link is revoked.
    The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.
    :param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
    :param kwargs: Args that get passed down to :class:`TelegramBotRPCRequest`
    :return: Returns the new invite link as String on success.
    :rtype: str
    """

    # required args
    params = dict(chat_id=chat_id)

    return TelegramBotRPCRequest('exportChatInviteLink', params=params, on_result=lambda result: result, **kwargs)
Use this method to generate a new invite link for a chat; any previously generated link is revoked.
    The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.
    :param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
    :param kwargs: Args that get passed down to :class:`TelegramBotRPCRequest`
    :return: Returns the new invite link as String on success.
    :rtype: str