GetWidgetQueryAnswer constructor

const GetWidgetQueryAnswer({
  1. required int chatId,
  2. required int messageId,
  3. required WidgetQueryType queryType,
  4. required String data,
})

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

Implementation

const GetWidgetQueryAnswer({
  required this.chatId,
  required this.messageId,
  required this.queryType,
  required this.data,
});