/// <summary> /// Construct message /// Sends answer on construction request.Answer can contain any prepared message and/or keyboard to help user interact with bot. /// </summary> /// <param name="constructorAnswer"> constructorAnswer (required)</param> /// <param name="sessionId">sessionId Constructor session identifier (required)</param> /// <returns>SimpleQueryResult</returns> public ConstructQuery Construct(ConstructorAnswer constructorAnswer, string sessionId) { if (sessionId == null) { throw new RequiredParameterMissingException("Missing the required parameter 'session_id' when calling construct"); } if (constructorAnswer == null) { throw new RequiredParameterMissingException("Missing the required request body when calling construct"); } return(new ConstructQuery(_client, constructorAnswer, sessionId)); }
public ConstructQuery(TamTamClient client, ConstructorAnswer constructorAnswer, string sessionId) : base(client, "/answers/constructor", constructorAnswer, Method.POST) { _sessionId = new QueryParam <string>("message_id", sessionId, this).Required(); }