lib/tdlib/client_methods.rb
def answer_callback_query(callback_query_id:, text:, show_alert:, url:, cache_time:)
    broadcast('@type'             => 'answerCallbackQuery',
              'callback_query_id' => callback_query_id,
              'text'              => text,
              'show_alert'        => show_alert,
              'url'               => url,
              'cache_time'        => cache_time)
  end
# Sets the result of a callback query; for bots only.
#
# @param callback_query_id [Integer] Identifier of the callback query.
# @param text [TD::Types::String] Text of the answer.
# @param show_alert [Boolean] If true, an alert must be shown to the user instead of a toast notification.
# @param url [TD::Types::String] URL to be opened.
# @param cache_time [Integer] Time during which the result of the query can be cached, in seconds.
# @return [TD::Types::Ok]
Sets the result of a callback query; for bots only.
Sets the result of a callback query ; for bots only .
def answer_callback_query(callback_query_id:, text:, show_alert:, url:, cache_time:)
    broadcast('@type'             => 'answerCallbackQuery',
              'callback_query_id' => callback_query_id,
              'text'              => text,
              'show_alert'        => show_alert,
              'url'               => url,
              'cache_time'        => cache_time)
  end
def answer_callback_query ( callback_query_id : , text : , show_alert : , url : , cache_time : ) broadcast ( '@type' => 'answerCallbackQuery' , 'callback_query_id' => callback_query_id , 'text' => text , 'show_alert' => show_alert , 'url' => url , 'cache_time' => cache_time ) end
Sets the result of a callback query; for bots only.
Sets the result of a callback query ; for bots only .
None
TD::Types::Ok
callback_query_id
Identifier of the callback query.
Identifier of the callback query .
text
Text of the answer.
Text of the answer .
show_alert
If true, an alert must be shown to the user instead of a toast notification.
If true an alert must be shown to the user instead of a toast notification .
url
URL to be opened.
URL to be opened .
cache_time
Time during which the result of the query can be cached, in seconds.
Time during which the result of the query can be cached in seconds .