Skip to content

enum Tourmaline::UpdateAction #

The available event types for EventHandler.

Members#

Update = 0 #

Message = 1 #

ThreadMessage = 2 #

ReplyMessage = 3 #

EditedMessage = 4 #

ForwardedMessage = 5 #

CallbackQuery = 6 #

InlineQuery = 7 #

ShippingQuery = 8 #

PreCheckoutQuery = 9 #

ChosenInlineResult = 10 #

ChannelPost = 11 #

EditedChannelPost = 12 #

MyChatMember = 13 #

ChatMember = 14 #

ViaBot = 15 #

Text = 16 #

Caption = 17 #

Animation = 18 #

Audio = 19 #

Document = 20 #

Photo = 21 #

Sticker = 22 #

Video = 23 #

Voice = 24 #

Contact = 25 #

Location = 26 #

Venue = 27 #

MediaGroup = 28 #

NewChatMembers = 29 #

LeftChatMember = 30 #

NewChatTitle = 31 #

NewChatPhoto = 32 #

DeleteChatPhoto = 33 #

GroupChatCreated = 34 #

MessageAutoDeleteTimerChanged = 35 #

MigrateToChatId = 36 #

SupergroupChatCreated = 37 #

ChannelChatCreated = 38 #

MigrateFromChatId = 39 #

PinnedMessage = 40 #

Game = 41 #

Poll = 42 #

VideoNote = 43 #

Invoice = 44 #

SuccessfulPayment = 45 #

UserShared = 46 #

ChatShared = 47 #

ConnectedWebsite = 48 #

PassportData = 49 #

PollAnswer = 50 #

ProximityAlertTriggered = 51 #

ForumTopicCreated = 52 #

ForumTopicEdited = 53 #

ForumTopicClosed = 54 #

ForumTopicReopened = 55 #

GeneralForumTopicHidden = 56 #

GeneralForumTopicUnhidden = 57 #

VideoChatScheduled = 58 #

VideoChatStarted = 59 #

VideoChatEnded = 60 #

VideoChatParticipantsInvited = 61 #

WebAppData = 62 #

ReplyMarkup = 63 #

Dice = 64 #

Dart = 65 #

🎲

Basketball = 66 #

🎯

Football = 67 #

🏀

Soccerball = 68 #

⚽️

SlotMachine = 69 #

⚽️ but American

Bowling = 70 #

🎰

BotMessage = 71 #

UserMessage = 72 #

ChannelMessage = 73 #

ChannelForwardMessage = 74 #

AnonymousAdminMessage = 75 #

MentionEntity = 76 #

TextMentionEntity = 77 #

HashtagEntity = 78 #

CashtagEntity = 79 #

BotCommandEntity = 80 #

UrlEntity = 81 #

EmailEntity = 82 #

PhoneNumberEntity = 83 #

BoldEntity = 84 #

ItalicEntity = 85 #

CodeEntity = 86 #

PreEntity = 87 #

TextLinkEntity = 88 #

UnderlineEntity = 89 #

StrikethroughEntity = 90 #

SpoilerEntity = 91 #

Class methods#

.from_update(update : Tourmaline::Update) #

Takes an Update and returns an array of update actions.

View source

.to_a #

View source

Methods#

#animation? #

View source

#anonymous_admin_message? #

View source

#audio? #

View source

#basketball? #

View source

#bold_entity? #

View source

#bot_command_entity? #

View source

#bot_message? #

View source

#bowling? #

View source

#callback_query? #

View source

#caption? #

View source

#cashtag_entity? #

View source

#channel_chat_created? #

View source

#channel_forward_message? #

View source

#channel_message? #

View source

#channel_post? #

View source

#chat_member? #

View source

#chat_shared? #

View source

#chosen_inline_result? #

View source

#code_entity? #

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

#email_entity? #

View source

#football? #

View source

#forum_topic_closed? #

View source

#forum_topic_created? #

View source

#forum_topic_edited? #

View source

#forum_topic_reopened? #

View source

#forwarded_message? #

View source

#game? #

View source

#general_forum_topic_hidden? #

View source

#general_forum_topic_unhidden? #

View source

#group_chat_created? #

View source

#hashtag_entity? #

View source

#inline_query? #

View source

#invoice? #

View source

#italic_entity? #

View source

#left_chat_member? #

View source

#location? #

View source

#media_group? #

View source

#mention_entity? #

View source

#message? #

View source

#message_auto_delete_timer_changed? #

View source

#migrate_from_chat_id? #

View source

#migrate_to_chat_id? #

View source

#my_chat_member? #

View source

#new_chat_members? #

View source

#new_chat_photo? #

View source

#new_chat_title? #

View source

#passport_data? #

View source

#phone_number_entity? #

View source

#photo? #

View source

#pinned_message? #

View source

#poll? #

View source

#poll_answer? #

View source

#pre_checkout_query? #

View source

#pre_entity? #

View source

#proximity_alert_triggered? #

View source

#reply_markup? #

View source

#reply_message? #

View source

#shipping_query? #

View source

#slot_machine? #

View source

#soccerball? #

View source

#spoiler_entity? #

View source

#sticker? #

View source

#strikethrough_entity? #

View source

#successful_payment? #

View source

#supergroup_chat_created? #

View source

#text? #

View source
View source

#text_mention_entity? #

View source

#thread_message? #

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

#underline_entity? #

View source

#update? #

View source

#url_entity? #

View source

#user_message? #

View source

#user_shared? #

View source

#venue? #

View source

#via_bot? #

View source

#video? #

View source

#video_chat_ended? #

View source

#video_chat_participants_invited? #

View source

#video_chat_scheduled? #

View source

#video_chat_started? #

View source

#video_note? #

View source

#voice? #

View source

#web_app_data? #

View source