enum Tourmaline::UpdateAction

Overview

The available event types for EventHandler.

Defined in:

tourmaline/update_action.cr

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

Instance Method Summary

Class Method Detail

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

Takes an Update and returns an array of update actions.


[View source]
def self.to_a #

[View source]

Instance Method Detail

def animation? #

[View source]
def anonymous_admin_message? #

[View source]
def audio? #

[View source]
def basketball? #

[View source]
def bold_entity? #

[View source]
def bot_command_entity? #

[View source]
def bot_message? #

[View source]
def bowling? #

[View source]
def callback_query? #

[View source]
def caption? #

[View source]
def cashtag_entity? #

[View source]
def channel_chat_created? #

[View source]
def channel_forward_message? #

[View source]
def channel_message? #

[View source]
def channel_post? #

[View source]
def chat_member? #

[View source]
def chat_shared? #

[View source]
def chosen_inline_result? #

[View source]
def code_entity? #

[View source]
def connected_website? #

[View source]
def contact? #

[View source]
def dart? #

[View source]
def delete_chat_photo? #

[View source]
def dice? #

[View source]
def document? #

[View source]
def edited_channel_post? #

[View source]
def edited_message? #

[View source]
def email_entity? #

[View source]
def football? #

[View source]
def forum_topic_closed? #

[View source]
def forum_topic_created? #

[View source]
def forum_topic_edited? #

[View source]
def forum_topic_reopened? #

[View source]
def forwarded_message? #

[View source]
def game? #

[View source]
def general_forum_topic_hidden? #

[View source]
def general_forum_topic_unhidden? #

[View source]
def group_chat_created? #

[View source]
def hashtag_entity? #

[View source]
def inline_query? #

[View source]
def invoice? #

[View source]
def italic_entity? #

[View source]
def left_chat_member? #

[View source]
def location? #

[View source]
def media_group? #

[View source]
def mention_entity? #

[View source]
def message? #

[View source]
def message_auto_delete_timer_changed? #

[View source]
def migrate_from_chat_id? #

[View source]
def migrate_to_chat_id? #

[View source]
def my_chat_member? #

[View source]
def new_chat_members? #

[View source]
def new_chat_photo? #

[View source]
def new_chat_title? #

[View source]
def passport_data? #

[View source]
def phone_number_entity? #

[View source]
def photo? #

[View source]
def pinned_message? #

[View source]
def poll? #

[View source]
def poll_answer? #

[View source]
def pre_checkout_query? #

[View source]
def pre_entity? #

[View source]
def proximity_alert_triggered? #

[View source]
def reply_markup? #

[View source]
def reply_message? #

[View source]
def shipping_query? #

[View source]
def slot_machine? #

[View source]
def soccerball? #

[View source]
def spoiler_entity? #

[View source]
def sticker? #

[View source]
def strikethrough_entity? #

[View source]
def successful_payment? #

[View source]
def supergroup_chat_created? #

[View source]
def text? #

[View source]
def text_link_entity? #

[View source]
def text_mention_entity? #

[View source]
def thread_message? #

[View source]
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"

[View source]
def underline_entity? #

[View source]
def update? #

[View source]
def url_entity? #

[View source]
def user_message? #

[View source]
def user_shared? #

[View source]
def venue? #

[View source]
def via_bot? #

[View source]
def video? #

[View source]
def video_chat_ended? #

[View source]
def video_chat_participants_invited? #

[View source]
def video_chat_scheduled? #

[View source]
def video_chat_started? #

[View source]
def video_note? #

[View source]
def voice? #

[View source]
def web_app_data? #

[View source]