Class: TD::Types::Update::NewCallbackQuery

Inherits:
TD::Types::Update show all
Defined in:
lib/tdlib/types/update/new_callback_query.rb

Overview

A new incoming callback query; for bots only.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#chat_idInteger

Identifier of the chat where the query was sent.

Returns:

  • (Integer)

    the current value of chat_id



10
11
12
# File 'lib/tdlib/types/update/new_callback_query.rb', line 10

def chat_id
  @chat_id
end

#chat_instanceInteger

Identifier that uniquely corresponds to the chat to which the message was sent.

Returns:

  • (Integer)

    the current value of chat_instance



10
11
12
# File 'lib/tdlib/types/update/new_callback_query.rb', line 10

def chat_instance
  @chat_instance
end

#idInteger

Unique query identifier.

Returns:

  • (Integer)

    the current value of id



10
11
12
# File 'lib/tdlib/types/update/new_callback_query.rb', line 10

def id
  @id
end

#message_idInteger

Identifier of the message, from which the query originated.

Returns:

  • (Integer)

    the current value of message_id



10
11
12
# File 'lib/tdlib/types/update/new_callback_query.rb', line 10

def message_id
  @message_id
end

#payloadTD::Types::CallbackQueryPayload

Query payload.

Returns:



10
11
12
# File 'lib/tdlib/types/update/new_callback_query.rb', line 10

def payload
  @payload
end

#sender_user_idInteger

Identifier of the user who sent the query.

Returns:

  • (Integer)

    the current value of sender_user_id



10
11
12
# File 'lib/tdlib/types/update/new_callback_query.rb', line 10

def sender_user_id
  @sender_user_id
end