enum Tourmaline::UpdateAction
Overview
The available event types for EventHandler
.
Defined in:
tourmaline/update_action.crEnum 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
-
ConnectedWebsite =
46
-
PassportData =
47
-
PollAnswer =
48
-
ProximityAlertTriggered =
49
-
ForumTopicCreated =
50
-
ForumTopicClosed =
51
-
ForumTopicReopened =
52
-
VideoChatScheduled =
53
-
VideoChatStarted =
54
-
VideoChatEnded =
55
-
VideoChatParticipantsInvited =
56
-
WebAppData =
57
-
ReplyMarkup =
58
-
Dice =
59
-
Dart =
60
-
Basketball =
61
-
Football =
62
-
Soccerball =
63
-
SlotMachine =
64
-
Bowling =
65
-
BotMessage =
66
-
UserMessage =
67
-
ChannelMessage =
68
-
ChannelForwardMessage =
69
-
AnonymousAdminMessage =
70
-
MentionEntity =
71
-
TextMentionEntity =
72
-
HashtagEntity =
73
-
CashtagEntity =
74
-
BotCommandEntity =
75
-
UrlEntity =
76
-
EmailEntity =
77
-
PhoneNumberEntity =
78
-
BoldEntity =
79
-
ItalicEntity =
80
-
CodeEntity =
81
-
PreEntity =
82
-
TextLinkEntity =
83
-
UnderlineEntity =
84
-
StrikethroughEntity =
85
-
SpoilerEntity =
86
Class Method Summary
-
.from_update(update : Tourmaline::Update)
Takes an
Update
and returns an array of update actions. - .to_a
Instance Method Summary
- #animation?
- #anonymous_admin_message?
- #audio?
- #basketball?
- #bold_entity?
- #bot_command_entity?
- #bot_message?
- #bowling?
- #callback_query?
- #caption?
- #cashtag_entity?
- #channel_chat_created?
- #channel_forward_message?
- #channel_message?
- #channel_post?
- #chat_member?
- #chosen_inline_result?
- #code_entity?
- #connected_website?
- #contact?
- #dart?
- #delete_chat_photo?
- #dice?
- #document?
- #edited_channel_post?
- #edited_message?
- #email_entity?
- #football?
- #forum_topic_closed?
- #forum_topic_created?
- #forum_topic_reopened?
- #forwarded_message?
- #game?
- #group_chat_created?
- #hashtag_entity?
- #inline_query?
- #invoice?
- #italic_entity?
- #left_chat_member?
- #location?
- #media_group?
- #mention_entity?
- #message?
- #message_auto_delete_timer_changed?
- #migrate_from_chat_id?
- #migrate_to_chat_id?
- #my_chat_member?
- #new_chat_members?
- #new_chat_photo?
- #new_chat_title?
- #passport_data?
- #phone_number_entity?
- #photo?
- #pinned_message?
- #poll?
- #poll_answer?
- #pre_checkout_query?
- #pre_entity?
- #proximity_alert_triggered?
- #reply_markup?
- #reply_message?
- #shipping_query?
- #slot_machine?
- #soccerball?
- #spoiler_entity?
- #sticker?
- #strikethrough_entity?
- #successful_payment?
- #supergroup_chat_created?
- #text?
- #text_link_entity?
- #text_mention_entity?
- #thread_message?
-
#to_s
Returns a
String
representation of this enum member. - #underline_entity?
- #update?
- #url_entity?
- #user_message?
- #venue?
- #via_bot?
- #video?
- #video_chat_ended?
- #video_chat_participants_invited?
- #video_chat_scheduled?
- #video_chat_started?
- #video_note?
- #voice?
- #web_app_data?
Class Method Detail
def self.from_update(update : Tourmaline::Update)
#
Takes an Update
and returns an array of update actions.
Instance Method Detail
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"