answer method

Future<bool> answer({
  1. String? text,
  2. bool? showAlert,
  3. String? url,
  4. int? cacheTime,
})

Answer the recieved callback query

A wrapper around TeleDart.answerCallbackQuery. On success, returns true.

It can take some options that control the callback query answer.

Check Telegram API documentation for more information about those options.

Implementation

Future<bool> answer({
  String? text,
  bool? showAlert,
  String? url,
  int? cacheTime,
}) =>
    _teledart.answerCallbackQuery(id,
        text: text, showAlert: showAlert, url: url, cacheTime: cacheTime);