Class: Telegram::Bot::Types::Message

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/message.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#animationAnimation? (readonly)

Returns the value of attribute animation.

Returns:



41
42
43
# File 'sig/telegram/bot/types/message.rbs', line 41

def animation
  @animation
end

#audioAudio? (readonly)

Returns the value of attribute audio.

Returns:



42
43
44
# File 'sig/telegram/bot/types/message.rbs', line 42

def audio
  @audio
end

#author_signatureString? (readonly)

Returns the value of attribute author_signature.

Returns:

  • (String, nil)


34
35
36
# File 'sig/telegram/bot/types/message.rbs', line 34

def author_signature
  @author_signature
end

#boost_addedChatBoostAdded? (readonly)

Returns the value of attribute boost_added.

Returns:



88
89
90
# File 'sig/telegram/bot/types/message.rbs', line 88

def boost_added
  @boost_added
end

#business_connection_idString? (readonly)

Returns the value of attribute business_connection_id.

Returns:

  • (String, nil)


17
18
19
# File 'sig/telegram/bot/types/message.rbs', line 17

def business_connection_id
  @business_connection_id
end

#captionString? (readonly)

Returns the value of attribute caption.

Returns:

  • (String, nil)


51
52
53
# File 'sig/telegram/bot/types/message.rbs', line 51

def caption
  @caption
end

#caption_entitiesArray[MessageEntity]? (readonly)

Returns the value of attribute caption_entities.

Returns:



52
53
54
# File 'sig/telegram/bot/types/message.rbs', line 52

def caption_entities
  @caption_entities
end

#channel_chat_createdtrue? (readonly)

Returns the value of attribute channel_chat_created.

Returns:

  • (true, nil)


71
72
73
# File 'sig/telegram/bot/types/message.rbs', line 71

def channel_chat_created
  @channel_chat_created
end

#chatChat (readonly)

Returns the value of attribute chat.

Returns:



18
19
20
# File 'sig/telegram/bot/types/message.rbs', line 18

def chat
  @chat
end

#chat_background_setChatBackground? (readonly)

Returns the value of attribute chat_background_set.

Returns:



89
90
91
# File 'sig/telegram/bot/types/message.rbs', line 89

def chat_background_set
  @chat_background_set
end

#chat_owner_changedChatOwnerChanged? (readonly)

Returns the value of attribute chat_owner_changed.

Returns:



65
66
67
# File 'sig/telegram/bot/types/message.rbs', line 65

def chat_owner_changed
  @chat_owner_changed
end

#chat_owner_leftChatOwnerLeft? (readonly)

Returns the value of attribute chat_owner_left.

Returns:



64
65
66
# File 'sig/telegram/bot/types/message.rbs', line 64

def chat_owner_left
  @chat_owner_left
end

#chat_sharedChatShared? (readonly)

Returns the value of attribute chat_shared.

Returns:



80
81
82
# File 'sig/telegram/bot/types/message.rbs', line 80

def chat_shared
  @chat_shared
end

#checklistChecklist? (readonly)

Returns the value of attribute checklist.

Returns:



55
56
57
# File 'sig/telegram/bot/types/message.rbs', line 55

def checklist
  @checklist
end

#checklist_tasks_addedChecklistTasksAdded? (readonly)

Returns the value of attribute checklist_tasks_added.

Returns:



91
92
93
# File 'sig/telegram/bot/types/message.rbs', line 91

def checklist_tasks_added
  @checklist_tasks_added
end

#checklist_tasks_doneChecklistTasksDone? (readonly)

Returns the value of attribute checklist_tasks_done.

Returns:



90
91
92
# File 'sig/telegram/bot/types/message.rbs', line 90

def checklist_tasks_done
  @checklist_tasks_done
end

#connected_websiteString? (readonly)

Returns the value of attribute connected_website.

Returns:

  • (String, nil)


84
85
86
# File 'sig/telegram/bot/types/message.rbs', line 84

def connected_website
  @connected_website
end

#contactContact? (readonly)

Returns the value of attribute contact.

Returns:



56
57
58
# File 'sig/telegram/bot/types/message.rbs', line 56

def contact
  @contact
end

#dateInteger (readonly)

Returns the value of attribute date.

Returns:

  • (Integer)


16
17
18
# File 'sig/telegram/bot/types/message.rbs', line 16

def date
  @date
end

#delete_chat_phototrue? (readonly)

Returns the value of attribute delete_chat_photo.

Returns:

  • (true, nil)


68
69
70
# File 'sig/telegram/bot/types/message.rbs', line 68

def delete_chat_photo
  @delete_chat_photo
end

#diceDice? (readonly)

Returns the value of attribute dice.

Returns:



57
58
59
# File 'sig/telegram/bot/types/message.rbs', line 57

def dice
  @dice
end

#direct_message_price_changedDirectMessagePriceChanged? (readonly)

Returns the value of attribute direct_message_price_changed.

Returns:



92
93
94
# File 'sig/telegram/bot/types/message.rbs', line 92

def direct_message_price_changed
  @direct_message_price_changed
end

#direct_messages_topicDirectMessagesTopic? (readonly)

Returns the value of attribute direct_messages_topic.

Returns:



10
11
12
# File 'sig/telegram/bot/types/message.rbs', line 10

def direct_messages_topic
  @direct_messages_topic
end

#documentDocument? (readonly)

Returns the value of attribute document.

Returns:



43
44
45
# File 'sig/telegram/bot/types/message.rbs', line 43

def document
  @document
end

#edit_dateInteger? (readonly)

Returns the value of attribute edit_date.

Returns:

  • (Integer, nil)


29
30
31
# File 'sig/telegram/bot/types/message.rbs', line 29

def edit_date
  @edit_date
end

#effect_idString? (readonly)

Returns the value of attribute effect_id.

Returns:

  • (String, nil)


40
41
42
# File 'sig/telegram/bot/types/message.rbs', line 40

def effect_id
  @effect_id
end

#entitiesArray[MessageEntity]? (readonly)

Returns the value of attribute entities.

Returns:



37
38
39
# File 'sig/telegram/bot/types/message.rbs', line 37

def entities
  @entities
end

#external_replyExternalReplyInfo? (readonly)

Returns the value of attribute external_reply.

Returns:



23
24
25
# File 'sig/telegram/bot/types/message.rbs', line 23

def external_reply
  @external_reply
end

#forum_topic_closedForumTopicClosed? (readonly)

Returns the value of attribute forum_topic_closed.

Returns:



95
96
97
# File 'sig/telegram/bot/types/message.rbs', line 95

def forum_topic_closed
  @forum_topic_closed
end

#forum_topic_createdForumTopicCreated? (readonly)

Returns the value of attribute forum_topic_created.

Returns:



93
94
95
# File 'sig/telegram/bot/types/message.rbs', line 93

def forum_topic_created
  @forum_topic_created
end

#forum_topic_editedForumTopicEdited? (readonly)

Returns the value of attribute forum_topic_edited.

Returns:



94
95
96
# File 'sig/telegram/bot/types/message.rbs', line 94

def forum_topic_edited
  @forum_topic_edited
end

#forum_topic_reopenedForumTopicReopened? (readonly)

Returns the value of attribute forum_topic_reopened.

Returns:



96
97
98
# File 'sig/telegram/bot/types/message.rbs', line 96

def forum_topic_reopened
  @forum_topic_reopened
end

#forward_originmessage_origin? (readonly)

Returns the value of attribute forward_origin.

Returns:

  • (message_origin, nil)


19
20
21
# File 'sig/telegram/bot/types/message.rbs', line 19

def forward_origin
  @forward_origin
end

#fromUser? (readonly)

Returns the value of attribute from.

Returns:



11
12
13
# File 'sig/telegram/bot/types/message.rbs', line 11

def from
  @from
end

#gameGame? (readonly)

Returns the value of attribute game.

Returns:



58
59
60
# File 'sig/telegram/bot/types/message.rbs', line 58

def game
  @game
end

#general_forum_topic_hiddenGeneralForumTopicHidden? (readonly)

Returns the value of attribute general_forum_topic_hidden.

Returns:



97
98
99
# File 'sig/telegram/bot/types/message.rbs', line 97

def general_forum_topic_hidden
  @general_forum_topic_hidden
end

#general_forum_topic_unhiddenGeneralForumTopicUnhidden? (readonly)

Returns the value of attribute general_forum_topic_unhidden.

Returns:



98
99
100
# File 'sig/telegram/bot/types/message.rbs', line 98

def general_forum_topic_unhidden
  @general_forum_topic_unhidden
end

#giftGiftInfo? (readonly)

Returns the value of attribute gift.

Returns:



81
82
83
# File 'sig/telegram/bot/types/message.rbs', line 81

def gift
  @gift
end

#gift_upgrade_sentGiftInfo? (readonly)

Returns the value of attribute gift_upgrade_sent.

Returns:



83
84
85
# File 'sig/telegram/bot/types/message.rbs', line 83

def gift_upgrade_sent
  @gift_upgrade_sent
end

#giveawayGiveaway? (readonly)

Returns the value of attribute giveaway.

Returns:



100
101
102
# File 'sig/telegram/bot/types/message.rbs', line 100

def giveaway
  @giveaway
end

#giveaway_completedGiveawayCompleted? (readonly)

Returns the value of attribute giveaway_completed.

Returns:



102
103
104
# File 'sig/telegram/bot/types/message.rbs', line 102

def giveaway_completed
  @giveaway_completed
end

#giveaway_createdGiveawayCreated? (readonly)

Returns the value of attribute giveaway_created.

Returns:



99
100
101
# File 'sig/telegram/bot/types/message.rbs', line 99

def giveaway_created
  @giveaway_created
end

#giveaway_winnersGiveawayWinners? (readonly)

Returns the value of attribute giveaway_winners.

Returns:



101
102
103
# File 'sig/telegram/bot/types/message.rbs', line 101

def giveaway_winners
  @giveaway_winners
end

#group_chat_createdtrue? (readonly)

Returns the value of attribute group_chat_created.

Returns:

  • (true, nil)


69
70
71
# File 'sig/telegram/bot/types/message.rbs', line 69

def group_chat_created
  @group_chat_created
end

#has_media_spoilertrue? (readonly)

Returns the value of attribute has_media_spoiler.

Returns:

  • (true, nil)


54
55
56
# File 'sig/telegram/bot/types/message.rbs', line 54

def has_media_spoiler
  @has_media_spoiler
end

#has_protected_contenttrue? (readonly)

Returns the value of attribute has_protected_content.

Returns:

  • (true, nil)


30
31
32
# File 'sig/telegram/bot/types/message.rbs', line 30

def has_protected_content
  @has_protected_content
end

#invoiceInvoice? (readonly)

Returns the value of attribute invoice.

Returns:



76
77
78
# File 'sig/telegram/bot/types/message.rbs', line 76

def invoice
  @invoice
end

#is_automatic_forwardtrue? (readonly)

Returns the value of attribute is_automatic_forward.

Returns:

  • (true, nil)


21
22
23
# File 'sig/telegram/bot/types/message.rbs', line 21

def is_automatic_forward
  @is_automatic_forward
end

#is_from_offlinetrue? (readonly)

Returns the value of attribute is_from_offline.

Returns:

  • (true, nil)


31
32
33
# File 'sig/telegram/bot/types/message.rbs', line 31

def is_from_offline
  @is_from_offline
end

#is_paid_posttrue? (readonly)

Returns the value of attribute is_paid_post.

Returns:

  • (true, nil)


32
33
34
# File 'sig/telegram/bot/types/message.rbs', line 32

def is_paid_post
  @is_paid_post
end

#is_topic_messagetrue? (readonly)

Returns the value of attribute is_topic_message.

Returns:

  • (true, nil)


20
21
22
# File 'sig/telegram/bot/types/message.rbs', line 20

def is_topic_message
  @is_topic_message
end

#left_chat_memberUser? (readonly)

Returns the value of attribute left_chat_member.

Returns:



63
64
65
# File 'sig/telegram/bot/types/message.rbs', line 63

def left_chat_member
  @left_chat_member
end

Returns the value of attribute link_preview_options.

Returns:



38
39
40
# File 'sig/telegram/bot/types/message.rbs', line 38

def link_preview_options
  @link_preview_options
end

#locationLocation? (readonly)

Returns the value of attribute location.

Returns:



61
62
63
# File 'sig/telegram/bot/types/message.rbs', line 61

def location
  @location
end

#managed_bot_createdManagedBotCreated? (readonly)

Returns the value of attribute managed_bot_created.

Returns:



103
104
105
# File 'sig/telegram/bot/types/message.rbs', line 103

def managed_bot_created
  @managed_bot_created
end

#media_group_idString? (readonly)

Returns the value of attribute media_group_id.

Returns:

  • (String, nil)


33
34
35
# File 'sig/telegram/bot/types/message.rbs', line 33

def media_group_id
  @media_group_id
end

#message_auto_delete_timer_changedMessageAutoDeleteTimerChanged? (readonly)

Returns the value of attribute message_auto_delete_timer_changed.



72
73
74
# File 'sig/telegram/bot/types/message.rbs', line 72

def message_auto_delete_timer_changed
  @message_auto_delete_timer_changed
end

#message_idInteger (readonly)

Returns the value of attribute message_id.

Returns:

  • (Integer)


8
9
10
# File 'sig/telegram/bot/types/message.rbs', line 8

def message_id
  @message_id
end

#message_thread_idInteger? (readonly)

Returns the value of attribute message_thread_id.

Returns:

  • (Integer, nil)


9
10
11
# File 'sig/telegram/bot/types/message.rbs', line 9

def message_thread_id
  @message_thread_id
end

#migrate_from_chat_idInteger? (readonly)

Returns the value of attribute migrate_from_chat_id.

Returns:

  • (Integer, nil)


74
75
76
# File 'sig/telegram/bot/types/message.rbs', line 74

def migrate_from_chat_id
  @migrate_from_chat_id
end

#migrate_to_chat_idInteger? (readonly)

Returns the value of attribute migrate_to_chat_id.

Returns:

  • (Integer, nil)


73
74
75
# File 'sig/telegram/bot/types/message.rbs', line 73

def migrate_to_chat_id
  @migrate_to_chat_id
end

#new_chat_membersArray[User]? (readonly)

Returns the value of attribute new_chat_members.

Returns:

  • (Array[User], nil)


62
63
64
# File 'sig/telegram/bot/types/message.rbs', line 62

def new_chat_members
  @new_chat_members
end

#new_chat_photoArray[PhotoSize]? (readonly)

Returns the value of attribute new_chat_photo.

Returns:



67
68
69
# File 'sig/telegram/bot/types/message.rbs', line 67

def new_chat_photo
  @new_chat_photo
end

#new_chat_titleString? (readonly)

Returns the value of attribute new_chat_title.

Returns:

  • (String, nil)


66
67
68
# File 'sig/telegram/bot/types/message.rbs', line 66

def new_chat_title
  @new_chat_title
end

Returns the value of attribute paid_media.

Returns:



44
45
46
# File 'sig/telegram/bot/types/message.rbs', line 44

def paid_media
  @paid_media
end

Returns the value of attribute paid_message_price_changed.

Returns:



104
105
106
# File 'sig/telegram/bot/types/message.rbs', line 104

def paid_message_price_changed
  @paid_message_price_changed
end

Returns the value of attribute paid_star_count.

Returns:

  • (Integer, nil)


35
36
37
# File 'sig/telegram/bot/types/message.rbs', line 35

def paid_star_count
  @paid_star_count
end

#passport_dataPassportData? (readonly)

Returns the value of attribute passport_data.

Returns:



86
87
88
# File 'sig/telegram/bot/types/message.rbs', line 86

def passport_data
  @passport_data
end

#photoArray[PhotoSize]? (readonly)

Returns the value of attribute photo.

Returns:



45
46
47
# File 'sig/telegram/bot/types/message.rbs', line 45

def photo
  @photo
end

#pinned_messagemaybe_inaccessible_message? (readonly)

Returns the value of attribute pinned_message.

Returns:

  • (maybe_inaccessible_message, nil)


75
76
77
# File 'sig/telegram/bot/types/message.rbs', line 75

def pinned_message
  @pinned_message
end

#pollPoll? (readonly)

Returns the value of attribute poll.

Returns:



59
60
61
# File 'sig/telegram/bot/types/message.rbs', line 59

def poll
  @poll
end

#poll_option_addedPollOptionAdded? (readonly)

Returns the value of attribute poll_option_added.

Returns:



105
106
107
# File 'sig/telegram/bot/types/message.rbs', line 105

def poll_option_added
  @poll_option_added
end

#poll_option_deletedPollOptionDeleted? (readonly)

Returns the value of attribute poll_option_deleted.

Returns:



106
107
108
# File 'sig/telegram/bot/types/message.rbs', line 106

def poll_option_deleted
  @poll_option_deleted
end

#proximity_alert_triggeredProximityAlertTriggered? (readonly)

Returns the value of attribute proximity_alert_triggered.

Returns:



87
88
89
# File 'sig/telegram/bot/types/message.rbs', line 87

def proximity_alert_triggered
  @proximity_alert_triggered
end

#quoteTextQuote? (readonly)

Returns the value of attribute quote.

Returns:



24
25
26
# File 'sig/telegram/bot/types/message.rbs', line 24

def quote
  @quote
end

#refunded_paymentRefundedPayment? (readonly)

Returns the value of attribute refunded_payment.

Returns:



78
79
80
# File 'sig/telegram/bot/types/message.rbs', line 78

def refunded_payment
  @refunded_payment
end

#reply_markupInlineKeyboardMarkup? (readonly)

Returns the value of attribute reply_markup.

Returns:



117
118
119
# File 'sig/telegram/bot/types/message.rbs', line 117

def reply_markup
  @reply_markup
end

#reply_to_checklist_task_idInteger? (readonly)

Returns the value of attribute reply_to_checklist_task_id.

Returns:

  • (Integer, nil)


26
27
28
# File 'sig/telegram/bot/types/message.rbs', line 26

def reply_to_checklist_task_id
  @reply_to_checklist_task_id
end

#reply_to_messageMessage? (readonly)

Returns the value of attribute reply_to_message.

Returns:



22
23
24
# File 'sig/telegram/bot/types/message.rbs', line 22

def reply_to_message
  @reply_to_message
end

#reply_to_poll_option_idString? (readonly)

Returns the value of attribute reply_to_poll_option_id.

Returns:

  • (String, nil)


27
28
29
# File 'sig/telegram/bot/types/message.rbs', line 27

def reply_to_poll_option_id
  @reply_to_poll_option_id
end

#reply_to_storyStory? (readonly)

Returns the value of attribute reply_to_story.

Returns:



25
26
27
# File 'sig/telegram/bot/types/message.rbs', line 25

def reply_to_story
  @reply_to_story
end

#sender_boost_countInteger? (readonly)

Returns the value of attribute sender_boost_count.

Returns:

  • (Integer, nil)


13
14
15
# File 'sig/telegram/bot/types/message.rbs', line 13

def sender_boost_count
  @sender_boost_count
end

#sender_business_botUser? (readonly)

Returns the value of attribute sender_business_bot.

Returns:



14
15
16
# File 'sig/telegram/bot/types/message.rbs', line 14

def sender_business_bot
  @sender_business_bot
end

#sender_chatChat? (readonly)

Returns the value of attribute sender_chat.

Returns:



12
13
14
# File 'sig/telegram/bot/types/message.rbs', line 12

def sender_chat
  @sender_chat
end

#sender_tagString? (readonly)

Returns the value of attribute sender_tag.

Returns:

  • (String, nil)


15
16
17
# File 'sig/telegram/bot/types/message.rbs', line 15

def sender_tag
  @sender_tag
end

#show_caption_above_mediatrue? (readonly)

Returns the value of attribute show_caption_above_media.

Returns:

  • (true, nil)


53
54
55
# File 'sig/telegram/bot/types/message.rbs', line 53

def show_caption_above_media
  @show_caption_above_media
end

#stickerSticker? (readonly)

Returns the value of attribute sticker.

Returns:



46
47
48
# File 'sig/telegram/bot/types/message.rbs', line 46

def sticker
  @sticker
end

#storyStory? (readonly)

Returns the value of attribute story.

Returns:



47
48
49
# File 'sig/telegram/bot/types/message.rbs', line 47

def story
  @story
end

#successful_paymentSuccessfulPayment? (readonly)

Returns the value of attribute successful_payment.

Returns:



77
78
79
# File 'sig/telegram/bot/types/message.rbs', line 77

def successful_payment
  @successful_payment
end

#suggested_post_approval_failedSuggestedPostApprovalFailed? (readonly)

Returns the value of attribute suggested_post_approval_failed.

Returns:



108
109
110
# File 'sig/telegram/bot/types/message.rbs', line 108

def suggested_post_approval_failed
  @suggested_post_approval_failed
end

#suggested_post_approvedSuggestedPostApproved? (readonly)

Returns the value of attribute suggested_post_approved.

Returns:



107
108
109
# File 'sig/telegram/bot/types/message.rbs', line 107

def suggested_post_approved
  @suggested_post_approved
end

#suggested_post_declinedSuggestedPostDeclined? (readonly)

Returns the value of attribute suggested_post_declined.

Returns:



109
110
111
# File 'sig/telegram/bot/types/message.rbs', line 109

def suggested_post_declined
  @suggested_post_declined
end

#suggested_post_infoSuggestedPostInfo? (readonly)

Returns the value of attribute suggested_post_info.

Returns:



39
40
41
# File 'sig/telegram/bot/types/message.rbs', line 39

def 
  @suggested_post_info
end

#suggested_post_paidSuggestedPostPaid? (readonly)

Returns the value of attribute suggested_post_paid.

Returns:



110
111
112
# File 'sig/telegram/bot/types/message.rbs', line 110

def suggested_post_paid
  @suggested_post_paid
end

#suggested_post_refundedSuggestedPostRefunded? (readonly)

Returns the value of attribute suggested_post_refunded.

Returns:



111
112
113
# File 'sig/telegram/bot/types/message.rbs', line 111

def suggested_post_refunded
  @suggested_post_refunded
end

#supergroup_chat_createdtrue? (readonly)

Returns the value of attribute supergroup_chat_created.

Returns:

  • (true, nil)


70
71
72
# File 'sig/telegram/bot/types/message.rbs', line 70

def supergroup_chat_created
  @supergroup_chat_created
end

#textString? (readonly)

Returns the value of attribute text.

Returns:

  • (String, nil)


36
37
38
# File 'sig/telegram/bot/types/message.rbs', line 36

def text
  @text
end

#unique_giftUniqueGiftInfo? (readonly)

Returns the value of attribute unique_gift.

Returns:



82
83
84
# File 'sig/telegram/bot/types/message.rbs', line 82

def unique_gift
  @unique_gift
end

#users_sharedUsersShared? (readonly)

Returns the value of attribute users_shared.

Returns:



79
80
81
# File 'sig/telegram/bot/types/message.rbs', line 79

def users_shared
  @users_shared
end

#venueVenue? (readonly)

Returns the value of attribute venue.

Returns:



60
61
62
# File 'sig/telegram/bot/types/message.rbs', line 60

def venue
  @venue
end

#via_botUser? (readonly)

Returns the value of attribute via_bot.

Returns:



28
29
30
# File 'sig/telegram/bot/types/message.rbs', line 28

def via_bot
  @via_bot
end

#videoVideo? (readonly)

Returns the value of attribute video.

Returns:



48
49
50
# File 'sig/telegram/bot/types/message.rbs', line 48

def video
  @video
end

#video_chat_endedVideoChatEnded? (readonly)

Returns the value of attribute video_chat_ended.

Returns:



114
115
116
# File 'sig/telegram/bot/types/message.rbs', line 114

def video_chat_ended
  @video_chat_ended
end

#video_chat_participants_invitedVideoChatParticipantsInvited? (readonly)

Returns the value of attribute video_chat_participants_invited.



115
116
117
# File 'sig/telegram/bot/types/message.rbs', line 115

def video_chat_participants_invited
  @video_chat_participants_invited
end

#video_chat_scheduledVideoChatScheduled? (readonly)

Returns the value of attribute video_chat_scheduled.

Returns:



112
113
114
# File 'sig/telegram/bot/types/message.rbs', line 112

def video_chat_scheduled
  @video_chat_scheduled
end

#video_chat_startedVideoChatStarted? (readonly)

Returns the value of attribute video_chat_started.

Returns:



113
114
115
# File 'sig/telegram/bot/types/message.rbs', line 113

def video_chat_started
  @video_chat_started
end

#video_noteVideoNote? (readonly)

Returns the value of attribute video_note.

Returns:



49
50
51
# File 'sig/telegram/bot/types/message.rbs', line 49

def video_note
  @video_note
end

#voiceVoice? (readonly)

Returns the value of attribute voice.

Returns:



50
51
52
# File 'sig/telegram/bot/types/message.rbs', line 50

def voice
  @voice
end

#web_app_dataWebAppData? (readonly)

Returns the value of attribute web_app_data.

Returns:



116
117
118
# File 'sig/telegram/bot/types/message.rbs', line 116

def web_app_data
  @web_app_data
end

#write_access_allowedWriteAccessAllowed? (readonly)

Returns the value of attribute write_access_allowed.

Returns:



85
86
87
# File 'sig/telegram/bot/types/message.rbs', line 85

def write_access_allowed
  @write_access_allowed
end

Class Method Details

.new(message_id:, message_thread_id:, direct_messages_topic:, from:, sender_chat:, sender_boost_count:, sender_business_bot:, sender_tag:, date:, business_connection_id:, chat:, forward_origin:, is_topic_message:, is_automatic_forward:, reply_to_message:, external_reply:, quote:, reply_to_story:, reply_to_checklist_task_id:, reply_to_poll_option_id:, via_bot:, edit_date:, has_protected_content:, is_from_offline:, is_paid_post:, media_group_id:, author_signature:, paid_star_count:, text:, entities:, link_preview_options:, suggested_post_info:, effect_id:, animation:, audio:, document:, paid_media:, photo:, sticker:, story:, video:, video_note:, voice:, caption:, caption_entities:, show_caption_above_media:, has_media_spoiler:, checklist:, contact:, dice:, game:, poll:, venue:, location:, new_chat_members:, left_chat_member:, chat_owner_left:, chat_owner_changed:, new_chat_title:, new_chat_photo:, delete_chat_photo:, group_chat_created:, supergroup_chat_created:, channel_chat_created:, message_auto_delete_timer_changed:, migrate_to_chat_id:, migrate_from_chat_id:, pinned_message:, invoice:, successful_payment:, refunded_payment:, users_shared:, chat_shared:, gift:, unique_gift:, gift_upgrade_sent:, connected_website:, write_access_allowed:, passport_data:, proximity_alert_triggered:, boost_added:, chat_background_set:, checklist_tasks_done:, checklist_tasks_added:, direct_message_price_changed:, forum_topic_created:, forum_topic_edited:, forum_topic_closed:, forum_topic_reopened:, general_forum_topic_hidden:, general_forum_topic_unhidden:, giveaway_created:, giveaway:, giveaway_winners:, giveaway_completed:, managed_bot_created:, paid_message_price_changed:, poll_option_added:, poll_option_deleted:, suggested_post_approved:, suggested_post_approval_failed:, suggested_post_declined:, suggested_post_paid:, suggested_post_refunded:, video_chat_scheduled:, video_chat_started:, video_chat_ended:, video_chat_participants_invited:, web_app_data:, reply_markup:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(message_id:, message_thread_id:, direct_messages_topic:, from:, sender_chat:, sender_boost_count:, sender_business_bot:, sender_tag:, date:, business_connection_id:, chat:, forward_origin:, is_topic_message:, is_automatic_forward:, reply_to_message:, external_reply:, quote:, reply_to_story:, reply_to_checklist_task_id:, reply_to_poll_option_id:, via_bot:, edit_date:, has_protected_content:, is_from_offline:, is_paid_post:, media_group_id:, author_signature:, paid_star_count:, text:, entities:, link_preview_options:, suggested_post_info:, effect_id:, animation:, audio:, document:, paid_media:, photo:, sticker:, story:, video:, video_note:, voice:, caption:, caption_entities:, show_caption_above_media:, has_media_spoiler:, checklist:, contact:, dice:, game:, poll:, venue:, location:, new_chat_members:, left_chat_member:, chat_owner_left:, chat_owner_changed:, new_chat_title:, new_chat_photo:, delete_chat_photo:, group_chat_created:, supergroup_chat_created:, channel_chat_created:, message_auto_delete_timer_changed:, migrate_to_chat_id:, migrate_from_chat_id:, pinned_message:, invoice:, successful_payment:, refunded_payment:, users_shared:, chat_shared:, gift:, unique_gift:, gift_upgrade_sent:, connected_website:, write_access_allowed:, passport_data:, proximity_alert_triggered:, boost_added:, chat_background_set:, checklist_tasks_done:, checklist_tasks_added:, direct_message_price_changed:, forum_topic_created:, forum_topic_edited:, forum_topic_closed:, forum_topic_reopened:, general_forum_topic_hidden:, general_forum_topic_unhidden:, giveaway_created:, giveaway:, giveaway_winners:, giveaway_completed:, managed_bot_created:, paid_message_price_changed:, poll_option_added:, poll_option_deleted:, suggested_post_approved:, suggested_post_approval_failed:, suggested_post_declined:, suggested_post_paid:, suggested_post_refunded:, video_chat_scheduled:, video_chat_started:, video_chat_ended:, video_chat_participants_invited:, web_app_data:, reply_markup:) ⇒ instance

    Parameters:

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/message.rbs', line 6

def self.new: (message_id: Integer, ?message_thread_id: Integer, ?direct_messages_topic: DirectMessagesTopic, ?from: User, ?sender_chat: Chat, ?sender_boost_count: Integer, ?sender_business_bot: User, ?sender_tag: String, date: Integer, ?business_connection_id: String, chat: Chat, ?forward_origin: message_origin, ?is_topic_message: true, ?is_automatic_forward: true, ?reply_to_message: Message, ?external_reply: ExternalReplyInfo, ?quote: TextQuote, ?reply_to_story: Story, ?reply_to_checklist_task_id: Integer, ?reply_to_poll_option_id: String, ?via_bot: User, ?edit_date: Integer, ?has_protected_content: true, ?is_from_offline: true, ?is_paid_post: true, ?media_group_id: String, ?author_signature: String, ?paid_star_count: Integer, ?text: String, ?entities: Array[MessageEntity], ?link_preview_options: LinkPreviewOptions, ?suggested_post_info: SuggestedPostInfo, ?effect_id: String, ?animation: Animation, ?audio: Audio, ?document: Document, ?paid_media: PaidMediaInfo, ?photo: Array[PhotoSize], ?sticker: Sticker, ?story: Story, ?video: Video, ?video_note: VideoNote, ?voice: Voice, ?caption: String, ?caption_entities: Array[MessageEntity], ?show_caption_above_media: true, ?has_media_spoiler: true, ?checklist: Checklist, ?contact: Contact, ?dice: Dice, ?game: Game, ?poll: Poll, ?venue: Venue, ?location: Location, ?new_chat_members: Array[User], ?left_chat_member: User, ?chat_owner_left: ChatOwnerLeft, ?chat_owner_changed: ChatOwnerChanged, ?new_chat_title: String, ?new_chat_photo: Array[PhotoSize], ?delete_chat_photo: true, ?group_chat_created: true, ?supergroup_chat_created: true, ?channel_chat_created: true, ?message_auto_delete_timer_changed: MessageAutoDeleteTimerChanged, ?migrate_to_chat_id: Integer, ?migrate_from_chat_id: Integer, ?pinned_message: maybe_inaccessible_message, ?invoice: Invoice, ?successful_payment: SuccessfulPayment, ?refunded_payment: RefundedPayment, ?users_shared: UsersShared, ?chat_shared: ChatShared, ?gift: GiftInfo, ?unique_gift: UniqueGiftInfo, ?gift_upgrade_sent: GiftInfo, ?connected_website: String, ?write_access_allowed: WriteAccessAllowed, ?passport_data: PassportData, ?proximity_alert_triggered: ProximityAlertTriggered, ?boost_added: ChatBoostAdded, ?chat_background_set: ChatBackground, ?checklist_tasks_done: ChecklistTasksDone, ?checklist_tasks_added: ChecklistTasksAdded, ?direct_message_price_changed: DirectMessagePriceChanged, ?forum_topic_created: ForumTopicCreated, ?forum_topic_edited: ForumTopicEdited, ?forum_topic_closed: ForumTopicClosed, ?forum_topic_reopened: ForumTopicReopened, ?general_forum_topic_hidden: GeneralForumTopicHidden, ?general_forum_topic_unhidden: GeneralForumTopicUnhidden, ?giveaway_created: GiveawayCreated, ?giveaway: Giveaway, ?giveaway_winners: GiveawayWinners, ?giveaway_completed: GiveawayCompleted, ?managed_bot_created: ManagedBotCreated, ?paid_message_price_changed: PaidMessagePriceChanged, ?poll_option_added: PollOptionAdded, ?poll_option_deleted: PollOptionDeleted, ?suggested_post_approved: SuggestedPostApproved, ?suggested_post_approval_failed: SuggestedPostApprovalFailed, ?suggested_post_declined: SuggestedPostDeclined, ?suggested_post_paid: SuggestedPostPaid, ?suggested_post_refunded: SuggestedPostRefunded, ?video_chat_scheduled: VideoChatScheduled, ?video_chat_started: VideoChatStarted, ?video_chat_ended: VideoChatEnded, ?video_chat_participants_invited: VideoChatParticipantsInvited, ?web_app_data: WebAppData, ?reply_markup: InlineKeyboardMarkup) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance

Instance Method Details

#to_sString

Returns:

  • (String)


118
# File 'sig/telegram/bot/types/message.rbs', line 118

def to_s: () -> String