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 =
48
-
PassportData =
49
-
PollAnswer =
50
-
ProximityAlertTriggered =
51
-
ForumTopicCreated =
52
-
ForumTopicEdited =
53
-
ForumTopicClosed =
54
-
ForumTopicReopened =
55
-
GeneralForumTopicHidden =
56
-
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
-
.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?
- #chat_shared?
- #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_edited?
- #forum_topic_reopened?
- #forwarded_message?
- #game?
- #general_forum_topic_hidden?
- #general_forum_topic_unhidden?
- #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?
- #user_shared?
- #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"