-
Notifications
You must be signed in to change notification settings - Fork 218
/
message.rb
86 lines (84 loc) · 3.75 KB
/
message.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# frozen_string_literal: true
module Telegram
module Bot
module Types
class Message < Base
attribute :message_id, Types::Integer
attribute? :message_thread_id, Types::Integer
attribute? :from, User
attribute? :sender_chat, Chat
attribute :date, Types::Integer
attribute :chat, Chat
attribute? :forward_origin, MessageOrigin
attribute? :is_topic_message, Types::True
attribute? :is_automatic_forward, Types::True
attribute? :reply_to_message, Message
attribute? :external_reply, ExternalReplyInfo
attribute? :quote, TextQuote
attribute? :via_bot, User
attribute? :edit_date, Types::Integer
attribute? :has_protected_content, Types::True
attribute? :media_group_id, Types::String
attribute? :author_signature, Types::String
attribute? :text, Types::String
attribute? :entities, Types::Array.of(MessageEntity)
attribute? :link_preview_options, LinkPreviewOptions
attribute? :animation, Animation
attribute? :audio, Audio
attribute? :document, Document
attribute? :photo, Types::Array.of(PhotoSize)
attribute? :sticker, Sticker
attribute? :story, Story
attribute? :video, Video
attribute? :video_note, VideoNote
attribute? :voice, Voice
attribute? :caption, Types::String
attribute? :caption_entities, Types::Array.of(MessageEntity)
attribute? :has_media_spoiler, Types::True
attribute? :contact, Contact
attribute? :dice, Dice
attribute? :game, Game
attribute? :poll, Poll
attribute? :venue, Venue
attribute? :location, Location
attribute? :new_chat_members, Types::Array.of(User)
attribute? :left_chat_member, User
attribute? :new_chat_title, Types::String
attribute? :new_chat_photo, Types::Array.of(PhotoSize)
attribute? :delete_chat_photo, Types::True
attribute? :group_chat_created, Types::True
attribute? :supergroup_chat_created, Types::True
attribute? :channel_chat_created, Types::True
attribute? :message_auto_delete_timer_changed, MessageAutoDeleteTimerChanged
attribute? :migrate_to_chat_id, Types::Integer
attribute? :migrate_from_chat_id, Types::Integer
attribute? :pinned_message, MaybeInaccessibleMessage
attribute? :invoice, Invoice
attribute? :successful_payment, SuccessfulPayment
attribute? :users_shared, UsersShared
attribute? :chat_shared, ChatShared
attribute? :connected_website, Types::String
attribute? :write_access_allowed, WriteAccessAllowed
attribute? :passport_data, PassportData
attribute? :proximity_alert_triggered, ProximityAlertTriggered
attribute? :forum_topic_created, ForumTopicCreated
attribute? :forum_topic_edited, ForumTopicEdited
attribute? :forum_topic_closed, ForumTopicClosed
attribute? :forum_topic_reopened, ForumTopicReopened
attribute? :general_forum_topic_hidden, GeneralForumTopicHidden
attribute? :general_forum_topic_unhidden, GeneralForumTopicUnhidden
attribute? :giveaway_created, GiveawayCreated
attribute? :giveaway, Giveaway
attribute? :giveaway_winners, GiveawayWinners
attribute? :giveaway_completed, GiveawayCompleted
attribute? :video_chat_scheduled, VideoChatScheduled
attribute? :video_chat_started, VideoChatStarted
attribute? :video_chat_ended, VideoChatEnded
attribute? :video_chat_participants_invited, VideoChatParticipantsInvited
attribute? :web_app_data, WebAppData
attribute? :reply_markup, InlineKeyboardMarkup
alias to_s text
end
end
end
end