Class: TelegramBot::Update

Inherits:
Struct
  • Object
show all
Includes:
AutoFromMethods
Defined in:
lib/telegram_bot/update.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from AutoFromMethods

included

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



3
4
5
# File 'lib/telegram_bot/update.rb', line 3

def id
  @id
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



3
4
5
# File 'lib/telegram_bot/update.rb', line 3

def message
  @message
end

Class Method Details

.extra_typesObject



6
7
8
9
10
# File 'lib/telegram_bot/update.rb', line 6

def self.extra_types
  {
    message: TelegramBot::Message
  }
end

.hash_key_aliasesObject



12
13
14
15
16
# File 'lib/telegram_bot/update.rb', line 12

def self.hash_key_aliases
  {
    id: :update_id
  }
end