Sha256: 4c43236ea8fff5290d35d6baffd4243435ebe07132d0ce01942f9d5a1185f0b8
Contents?: true
Size: 947 Bytes
Versions: 1
Compression:
Stored size: 947 Bytes
Contents
module Telegram module Bot module Types class Update < Base attribute :update_id, Integer attribute :message, Message attribute :edited_message, Message attribute :channel_post, Message attribute :edited_channel_post, Message attribute :inline_query, InlineQuery attribute :chosen_inline_result, ChosenInlineResult attribute :callback_query, CallbackQuery attribute :shipping_query, ShippingQuery attribute :pre_checkout_query, PreCheckoutQuery attribute :poll, Poll attribute :poll_answer, PollAnswer attribute :my_chat_member, ChatMemberUpdated attribute :chat_member, ChatMemberUpdated attribute :chat_join_request, ChatJoinRequest def current_message @current_message ||= Hash[*attributes.find { |k, v| k != :update_id && v }].values.first end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
telegram-bot-ruby-0.18.0 | lib/telegram/bot/types/update.rb |