code: func (bot *BotAPI) LeaveChat(config ChatConfig) (APIResponse, error) {
  	v := url.Values{}
  
  	if config.SuperGroupUsername == "" {
  		v.Add("chat_id", strconv.FormatInt(config.ChatID, 10))
  	} else {
  		v.Add("chat_id", config.SuperGroupUsername)
  	}
  
  	bot.debugLog("leaveChat", v, nil)
  
  	return bot.MakeRequest("leaveChat", v)
  }
docs: // LeaveChat makes the bot leave the chat.