Skip to content

UpdateAction

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 #

Audio = 12 #

Document = 13 #

Photo = 14 #

Sticker = 15 #

Video = 16 #

Voice = 17 #

Contact = 18 #

Location = 19 #

Venue = 20 #

NewChatMembers = 21 #

LeftChatMember = 22 #

NewChatTitle = 23 #

NewChatPhoto = 24 #

DeleteChatPhoto = 25 #

GroupChatCreated = 26 #

MigrateToChatId = 27 #

SupergroupChatCreated = 28 #

ChannelChatCreated = 29 #

MigrateFromChatId = 30 #

PinnedMessage = 31 #

Game = 32 #

VideoNote = 33 #

Invoice = 34 #

SuccessfulPayment = 35 #

ConnectedWebsite = 36 #

PassportData = 37 #

Poll = 38 #

PollAnswer = 39 #

ViaBot = 40 #

Dice = 41 #

Dart = 42 #

Basket = 43 #

Class methods#

.from_update(update : Tourmaline::Update) #

Takes an Update and returns an array of update actions.

.to_a #

Methods#

#audio? #

#basket? #

#callback_query? #

#channel_chat_created? #

#channel_post? #

#chosen_inline_result? #

#connected_website? #

#contact? #

#dart? #

#delete_chat_photo? #

#dice? #

#document? #

#edited_channel_post? #

#edited_message? #

#game? #

#group_chat_created? #

#inline_query? #

#invoice? #

#left_chat_member? #

#location? #

#message? #

#migrate_from_chat_id? #

#migrate_to_chat_id? #

#new_chat_members? #

#new_chat_photo? #

#new_chat_title? #

#passport_data? #

#photo? #

#pinned_message? #

#poll? #

#poll_answer? #

#pre_checkout_query? #

#reply_message? #

#shipping_query? #

#sticker? #

#successful_payment? #

#supergroup_chat_created? #

#text? #

#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"

#update? #

#venue? #

#via_bot? #

#video? #

#video_note? #

#voice? #