Class: TD::Types::Update::NewInlineQuery

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

Overview

A new incoming inline query; for bots only.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#chat_typeTD::Types::ChatType?

Contains information about the type of the chat, from which the query originated; may be null if unknown.

Returns:



11
12
13
# File 'lib/tdlib/types/update/new_inline_query.rb', line 11

def chat_type
  @chat_type
end

#idInteger

Unique query identifier.

Returns:

  • (Integer)

    the current value of id



11
12
13
# File 'lib/tdlib/types/update/new_inline_query.rb', line 11

def id
  @id
end

#offsetTD::Types::String

Offset of the first entry to return.

Returns:

  • (TD::Types::String)

    the current value of offset



11
12
13
# File 'lib/tdlib/types/update/new_inline_query.rb', line 11

def offset
  @offset
end

#queryTD::Types::String

Text of the query.

Returns:

  • (TD::Types::String)

    the current value of query



11
12
13
# File 'lib/tdlib/types/update/new_inline_query.rb', line 11

def query
  @query
end

#sender_user_idInteger

Identifier of the user who sent the query.

Returns:

  • (Integer)

    the current value of sender_user_id



11
12
13
# File 'lib/tdlib/types/update/new_inline_query.rb', line 11

def sender_user_id
  @sender_user_id
end

#user_locationTD::Types::Location?

User location; may be null.

Returns:



11
12
13
# File 'lib/tdlib/types/update/new_inline_query.rb', line 11

def user_location
  @user_location
end