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

#idInteger

Unique query identifier.

Returns:

  • (Integer)

    the current value of id



9
10
11
# File 'lib/tdlib/types/update/new_inline_query.rb', line 9

def id
  @id
end

#offsetString

Offset of the first entry to return.

Returns:

  • (String)

    the current value of offset



9
10
11
# File 'lib/tdlib/types/update/new_inline_query.rb', line 9

def offset
  @offset
end

#queryString

Text of the query.

Returns:

  • (String)

    the current value of query



9
10
11
# File 'lib/tdlib/types/update/new_inline_query.rb', line 9

def query
  @query
end

#sender_user_idInteger

Identifier of the user who sent the query.

Returns:

  • (Integer)

    the current value of sender_user_id



9
10
11
# File 'lib/tdlib/types/update/new_inline_query.rb', line 9

def sender_user_id
  @sender_user_id
end

#user_locationTD::Types::Location?

User location, provided by the client; may be null.

Returns:



9
10
11
# File 'lib/tdlib/types/update/new_inline_query.rb', line 9

def user_location
  @user_location
end