enum Tourmaline::UpdateAction
#
The available event types for EventHandler
.
Members#
Update = 0
#
0
Message = 1
#
1
ThreadMessage = 2
#
2
ReplyMessage = 3
#
3
EditedMessage = 4
#
4
ForwardedMessage = 5
#
5
CallbackQuery = 6
#
6
InlineQuery = 7
#
7
ShippingQuery = 8
#
8
PreCheckoutQuery = 9
#
9
ChosenInlineResult = 10
#
10
ChannelPost = 11
#
11
EditedChannelPost = 12
#
12
MyChatMember = 13
#
13
ChatMember = 14
#
14
ViaBot = 15
#
15
Text = 16
#
16
Caption = 17
#
17
Animation = 18
#
18
Audio = 19
#
19
Document = 20
#
20
Photo = 21
#
21
Sticker = 22
#
22
Video = 23
#
23
Voice = 24
#
24
Contact = 25
#
25
Location = 26
#
26
Venue = 27
#
27
MediaGroup = 28
#
28
NewChatMembers = 29
#
29
LeftChatMember = 30
#
30
NewChatTitle = 31
#
31
NewChatPhoto = 32
#
32
DeleteChatPhoto = 33
#
33
GroupChatCreated = 34
#
34
MessageAutoDeleteTimerChanged = 35
#
35
MigrateToChatId = 36
#
36
SupergroupChatCreated = 37
#
37
ChannelChatCreated = 38
#
38
MigrateFromChatId = 39
#
39
PinnedMessage = 40
#
40
Game = 41
#
41
Poll = 42
#
42
VideoNote = 43
#
43
Invoice = 44
#
44
SuccessfulPayment = 45
#
45
UserShared = 46
#
46
ChatShared = 47
#
47
ConnectedWebsite = 48
#
48
PassportData = 49
#
49
PollAnswer = 50
#
50
ProximityAlertTriggered = 51
#
51
ForumTopicCreated = 52
#
52
ForumTopicEdited = 53
#
53
ForumTopicClosed = 54
#
54
ForumTopicReopened = 55
#
55
GeneralForumTopicHidden = 56
#
56
GeneralForumTopicUnhidden = 57
#
57
VideoChatScheduled = 58
#
58
VideoChatStarted = 59
#
59
VideoChatEnded = 60
#
60
VideoChatParticipantsInvited = 61
#
61
WebAppData = 62
#
62
ReplyMarkup = 63
#
63
Dice = 64
#
64
Dart = 65
#
65
🎲
Basketball = 66
#
66
🎯
Football = 67
#
67
🏀
Soccerball = 68
#
68
⚽️
SlotMachine = 69
#
69
⚽️ but American
Bowling = 70
#
70
🎰
BotMessage = 71
#
71
UserMessage = 72
#
72
ChannelMessage = 73
#
73
ChannelForwardMessage = 74
#
74
AnonymousAdminMessage = 75
#
75
MentionEntity = 76
#
76
TextMentionEntity = 77
#
77
HashtagEntity = 78
#
78
CashtagEntity = 79
#
79
BotCommandEntity = 80
#
80
UrlEntity = 81
#
81
EmailEntity = 82
#
82
PhoneNumberEntity = 83
#
83
BoldEntity = 84
#
84
ItalicEntity = 85
#
85
CodeEntity = 86
#
86
PreEntity = 87
#
87
TextLinkEntity = 88
#
88
UnderlineEntity = 89
#
89
StrikethroughEntity = 90
#
90
SpoilerEntity = 91
#
91
Class methods#
.from_update(update : Tourmaline::Update)
#
(update : Tourmaline::Update)
Takes an Update
and returns an array of update actions.
Methods#
#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"