Skip to content

enum Tourmaline::UpdateAction #

The available event types for EventHandler.

Members#

Update = 0 #

Message = 1 #

ReplyMessage = 2 #

EditedMessage = 3 #

CallbackQuery = 4 #

InlineQuery = 5 #

ShippingQuery = 6 #

PreCheckoutQuery = 7 #

ChosenInlineResult = 8 #

ChannelPost = 9 #

EditedChannelPost = 10 #

Text = 11 #

Caption = 12 #

Audio = 13 #

Document = 14 #

Photo = 15 #

Sticker = 16 #

Video = 17 #

Voice = 18 #

Contact = 19 #

Location = 20 #

Venue = 21 #

NewChatMembers = 22 #

LeftChatMember = 23 #

NewChatTitle = 24 #

NewChatPhoto = 25 #

DeleteChatPhoto = 26 #

GroupChatCreated = 27 #

MigrateToChatId = 28 #

SupergroupChatCreated = 29 #

ChannelChatCreated = 30 #

MigrateFromChatId = 31 #

PinnedMessage = 32 #

Game = 33 #

VideoNote = 34 #

Invoice = 35 #

SuccessfulPayment = 36 #

ConnectedWebsite = 37 #

PassportData = 38 #

Poll = 39 #

PollAnswer = 40 #

ViaBot = 41 #

Dice = 42 #

🎲

Dart = 43 #

🎯

Basketball = 44 #

🏀

Football = 45 #

⚽️

Soccerball = 46 #

⚽️ but American

SlotMachine = 47 #

🎰

Class methods#

.from_update(update : Tourmaline::Update) #

Takes an Update and returns an array of update actions.

View source

.to_a #

View source

Methods#

#audio? #

View source

#basketball? #

View source

#callback_query? #

View source

#caption? #

View source

#channel_chat_created? #

View source

#channel_post? #

View source

#chosen_inline_result? #

View source

#connected_website? #

View source

#contact? #

View source

#dart? #

View source

#delete_chat_photo? #

View source

#dice? #

View source

#document? #

View source

#edited_channel_post? #

View source

#edited_message? #

View source

#football? #

View source

#game? #

View source

#group_chat_created? #

View source

#inline_query? #

View source

#invoice? #

View source

#left_chat_member? #

View source

#location? #

View source

#message? #

View source

#migrate_from_chat_id? #

View source

#migrate_to_chat_id? #

View source

#new_chat_members? #

View source

#new_chat_photo? #

View source

#new_chat_title? #

View source

#passport_data? #

View source

#photo? #

View source

#pinned_message? #

View source

#poll? #

View source

#poll_answer? #

View source

#pre_checkout_query? #

View source

#reply_message? #

View source

#shipping_query? #

View source

#slot_machine? #

View source

#soccerball? #

View source

#sticker? #

View source

#successful_payment? #

View source

#supergroup_chat_created? #

View source

#text? #

View source

#to_s #

Returns a String representation of this enum member. In the case of regular enums, this is just the name of the member. In the case of flag enums, it's the names joined by vertical bars, or "None", if the value is zero.

If an enum's value doesn't match a member's value, the raw value is returned as a string.

Color::Red.to_s                     # => "Red"
IOMode::None.to_s                   # => "None"
(IOMode::Read | IOMode::Write).to_s # => "Read | Write"

Color.new(10).to_s # => "10"
View source

#update? #

View source

#venue? #

View source

#via_bot? #

View source

#video? #

View source

#video_note? #

View source

#voice? #

View source