code: def leave_chat(chat_id, **kwargs):
      
  
      # required args
      params = dict(
          chat_id=chat_id,
      )
  
      return TelegramBotRPCRequest('leaveChat', params=params, on_result=lambda result: result, **kwargs)
docs: Use this method for your bot to leave a group, supergroup or channel.
  
      :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`
  
      :type chat_id: int or str
  
      :returns: Returns true on success.
      :rtype: bool