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

#inline_queryTelegrammer::DataTypes::InlineQuery

Optional. New incoming inline query.

Returns:



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

def inline_query
  @inline_query
end

#messageTelegrammer::DataTypes::Message

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

Returns:



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

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



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

def update_id
  @update_id
end