enum Tourmaline::UpdateAction

Overview

The available event types for EventHandler. UpdateActions can be retrieved from an Update using .from_update.

Defined in:

Enum 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 Method Summary

Instance Method Summary

Class Method Detail

def self.from_update(update : Tourmaline::Update) #

def self.to_a #

Instance Method Detail

def audio? #

def basket? #

def callback_query? #

def channel_chat_created? #

def channel_post? #

def chosen_inline_result? #

def connected_website? #

def contact? #

def dart? #

def delete_chat_photo? #

def dice? #

def document? #

def edited_channel_post? #

def edited_message? #

def game? #

def group_chat_created? #

def inline_query? #

def invoice? #

def left_chat_member? #

def location? #

def message? #

def migrate_from_chat_id? #

def migrate_to_chat_id? #

def new_chat_members? #

def new_chat_photo? #

def new_chat_title? #

def passport_data? #

def photo? #

def pinned_message? #

def poll? #

def poll_answer? #

def pre_checkout_query? #

def reply_message? #

def shipping_query? #

def sticker? #

def successful_payment? #

def supergroup_chat_created? #

def text? #

def to_s #
Description copied from struct Enum

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"

def update? #

def venue? #

def via_bot? #

def video? #

def video_note? #

def voice? #