Interface GetWidgetQueryAnswer

Sends a widget query to a bot and returns an answer. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires. Request type for Tdjson#getWidgetQueryAnswer.

interface GetWidgetQueryAnswer {
    @type: "getWidgetQueryAnswer";
    chat_id: number;
    data: string;
    message_id: number;
    query_type: WidgetQueryType;
}

Properties

@type: "getWidgetQueryAnswer"
chat_id: number

Identifier of the chat with the message.

data: string

Data of the query.

message_id: number

Identifier of the widget message from which the query originated. The message must not be scheduled.

query_type: WidgetQueryType

Type of the query.