Class: Telegrammer::DataTypes::Update

Inherits:
Base
  • Object
show all
Defined in:
lib/telegrammer/data_types/update.rb

Overview

Telegram Update data type.

See more at core.telegram.org/bots/api#update

Instance Attribute Summary collapse

Instance Attribute Details

#chosen_inline_resultTelegrammer::DataTypes::ChosenInlineResult

Optional. The result of an inline query that was chosen by a user and sent to their chat partner.

Returns:



11
12
13
# File 'lib/telegrammer/data_types/update.rb', line 11

def chosen_inline_result
  @chosen_inline_result
end

#inline_queryTelegrammer::DataTypes::InlineQuery

Optional. New incoming inline query.

Returns:



11
12
13
# File 'lib/telegrammer/data_types/update.rb', line 11

def inline_query
  @inline_query
end

#messageTelegrammer::DataTypes::Message

Optional. New incoming message of any kind - text, photo, sticker, etc.

Returns:



11
12
13
# File 'lib/telegrammer/data_types/update.rb', line 11

def message
  @message
end

#update_idInteger

The update‘s unique identifier. Update identifiers start from a certain positive number and increase sequentially.

Returns:

  • (Integer)

    the current value of update_id



11
12
13
# File 'lib/telegrammer/data_types/update.rb', line 11

def update_id
  @update_id
end