Class: Telegram::Bot::Types::Update

Inherits:
Base
  • Object
show all
Defined in:
lib/telegram/bot/types/update.rb

Instance Method Summary collapse

Methods included from Compactable

#to_compact_hash

Instance Method Details

#current_messageObject



20
21
22
23
# File 'lib/telegram/bot/types/update.rb', line 20

def current_message
  @current_message ||=
    Hash[*attributes.find { |k, v| k != :update_id && v }].values.first
end