/// <summary> /// Edit current bot info. /// </summary> public async Task <IApiResponse <BotInfo> > EditCurrentBotInfoAsync(BotPatch botPatch, CancellationToken cancellationToken = default) { IApiResponse <BotInfo> result = null; result = await SenderApi.PatchAsync <BotInfo>(_connectorClient, GetApiUri($"me?access_token={_accessToken}"), botPatch, cancellationToken); return(result); }
/// <summary> /// Edit current bot info /// Edits current bot info. Fill only the fields you want to update. All remaining fields will stay untouched /// </summary> /// <param name="botPatch">(required)</param> /// <returns>BotInfo</returns> public EditMyInfoQuery EditMyInfo(BotPatch botPatch) { if (botPatch == null) { throw new RequiredParameterMissingException("Missing the required request body when calling editMyInfo"); } return(new EditMyInfoQuery(_client, botPatch)); }
public EditMyInfoQuery(TamTamClient client, BotPatch botPatch) : base(client, "/me", botPatch, Method.PATCH) { }