Class: TD::Types::CallbackQueryAnswer

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/callback_query_answer.rb

Overview

Contains a bot’s answer to a callback query.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#show_alertBoolean

True, if an alert should be shown to the user instead of a toast notification.

Returns:

  • (Boolean)

    the current value of show_alert



7
8
9
# File 'lib/tdlib/types/callback_query_answer.rb', line 7

def show_alert
  @show_alert
end

#textTD::Types::String

Text of the answer.

Returns:

  • (TD::Types::String)

    the current value of text



7
8
9
# File 'lib/tdlib/types/callback_query_answer.rb', line 7

def text
  @text
end

#urlTD::Types::String

URL to be opened.

Returns:

  • (TD::Types::String)

    the current value of url



7
8
9
# File 'lib/tdlib/types/callback_query_answer.rb', line 7

def url
  @url
end