Class: Telegram::Bot::Types::Message
- Defined in:
- sig/telegram/bot/types/message.rbs
Instance Attribute Summary collapse
-
#animation ⇒ Animation?
readonly
Returns the value of attribute animation.
-
#audio ⇒ Audio?
readonly
Returns the value of attribute audio.
-
#author_signature ⇒ String?
readonly
Returns the value of attribute author_signature.
-
#boost_added ⇒ ChatBoostAdded?
readonly
Returns the value of attribute boost_added.
-
#business_connection_id ⇒ String?
readonly
Returns the value of attribute business_connection_id.
-
#caption ⇒ String?
readonly
Returns the value of attribute caption.
-
#caption_entities ⇒ Array[MessageEntity]?
readonly
Returns the value of attribute caption_entities.
-
#channel_chat_created ⇒ true?
readonly
Returns the value of attribute channel_chat_created.
-
#chat ⇒ Chat
readonly
Returns the value of attribute chat.
-
#chat_background_set ⇒ ChatBackground?
readonly
Returns the value of attribute chat_background_set.
-
#chat_owner_changed ⇒ ChatOwnerChanged?
readonly
Returns the value of attribute chat_owner_changed.
-
#chat_owner_left ⇒ ChatOwnerLeft?
readonly
Returns the value of attribute chat_owner_left.
-
#chat_shared ⇒ ChatShared?
readonly
Returns the value of attribute chat_shared.
-
#checklist ⇒ Checklist?
readonly
Returns the value of attribute checklist.
-
#checklist_tasks_added ⇒ ChecklistTasksAdded?
readonly
Returns the value of attribute checklist_tasks_added.
-
#checklist_tasks_done ⇒ ChecklistTasksDone?
readonly
Returns the value of attribute checklist_tasks_done.
-
#connected_website ⇒ String?
readonly
Returns the value of attribute connected_website.
-
#contact ⇒ Contact?
readonly
Returns the value of attribute contact.
-
#date ⇒ Integer
readonly
Returns the value of attribute date.
-
#delete_chat_photo ⇒ true?
readonly
Returns the value of attribute delete_chat_photo.
-
#dice ⇒ Dice?
readonly
Returns the value of attribute dice.
-
#direct_message_price_changed ⇒ DirectMessagePriceChanged?
readonly
Returns the value of attribute direct_message_price_changed.
-
#direct_messages_topic ⇒ DirectMessagesTopic?
readonly
Returns the value of attribute direct_messages_topic.
-
#document ⇒ Document?
readonly
Returns the value of attribute document.
-
#edit_date ⇒ Integer?
readonly
Returns the value of attribute edit_date.
-
#effect_id ⇒ String?
readonly
Returns the value of attribute effect_id.
-
#entities ⇒ Array[MessageEntity]?
readonly
Returns the value of attribute entities.
-
#external_reply ⇒ ExternalReplyInfo?
readonly
Returns the value of attribute external_reply.
-
#forum_topic_closed ⇒ ForumTopicClosed?
readonly
Returns the value of attribute forum_topic_closed.
-
#forum_topic_created ⇒ ForumTopicCreated?
readonly
Returns the value of attribute forum_topic_created.
-
#forum_topic_edited ⇒ ForumTopicEdited?
readonly
Returns the value of attribute forum_topic_edited.
-
#forum_topic_reopened ⇒ ForumTopicReopened?
readonly
Returns the value of attribute forum_topic_reopened.
-
#forward_origin ⇒ message_origin?
readonly
Returns the value of attribute forward_origin.
-
#from ⇒ User?
readonly
Returns the value of attribute from.
-
#game ⇒ Game?
readonly
Returns the value of attribute game.
-
#general_forum_topic_hidden ⇒ GeneralForumTopicHidden?
readonly
Returns the value of attribute general_forum_topic_hidden.
-
#general_forum_topic_unhidden ⇒ GeneralForumTopicUnhidden?
readonly
Returns the value of attribute general_forum_topic_unhidden.
-
#gift ⇒ GiftInfo?
readonly
Returns the value of attribute gift.
-
#gift_upgrade_sent ⇒ GiftInfo?
readonly
Returns the value of attribute gift_upgrade_sent.
-
#giveaway ⇒ Giveaway?
readonly
Returns the value of attribute giveaway.
-
#giveaway_completed ⇒ GiveawayCompleted?
readonly
Returns the value of attribute giveaway_completed.
-
#giveaway_created ⇒ GiveawayCreated?
readonly
Returns the value of attribute giveaway_created.
-
#giveaway_winners ⇒ GiveawayWinners?
readonly
Returns the value of attribute giveaway_winners.
-
#group_chat_created ⇒ true?
readonly
Returns the value of attribute group_chat_created.
-
#has_media_spoiler ⇒ true?
readonly
Returns the value of attribute has_media_spoiler.
-
#has_protected_content ⇒ true?
readonly
Returns the value of attribute has_protected_content.
-
#invoice ⇒ Invoice?
readonly
Returns the value of attribute invoice.
-
#is_automatic_forward ⇒ true?
readonly
Returns the value of attribute is_automatic_forward.
-
#is_from_offline ⇒ true?
readonly
Returns the value of attribute is_from_offline.
-
#is_paid_post ⇒ true?
readonly
Returns the value of attribute is_paid_post.
-
#is_topic_message ⇒ true?
readonly
Returns the value of attribute is_topic_message.
-
#left_chat_member ⇒ User?
readonly
Returns the value of attribute left_chat_member.
-
#link_preview_options ⇒ LinkPreviewOptions?
readonly
Returns the value of attribute link_preview_options.
-
#location ⇒ Location?
readonly
Returns the value of attribute location.
-
#managed_bot_created ⇒ ManagedBotCreated?
readonly
Returns the value of attribute managed_bot_created.
-
#media_group_id ⇒ String?
readonly
Returns the value of attribute media_group_id.
-
#message_auto_delete_timer_changed ⇒ MessageAutoDeleteTimerChanged?
readonly
Returns the value of attribute message_auto_delete_timer_changed.
-
#message_id ⇒ Integer
readonly
Returns the value of attribute message_id.
-
#message_thread_id ⇒ Integer?
readonly
Returns the value of attribute message_thread_id.
-
#migrate_from_chat_id ⇒ Integer?
readonly
Returns the value of attribute migrate_from_chat_id.
-
#migrate_to_chat_id ⇒ Integer?
readonly
Returns the value of attribute migrate_to_chat_id.
-
#new_chat_members ⇒ Array[User]?
readonly
Returns the value of attribute new_chat_members.
-
#new_chat_photo ⇒ Array[PhotoSize]?
readonly
Returns the value of attribute new_chat_photo.
-
#new_chat_title ⇒ String?
readonly
Returns the value of attribute new_chat_title.
-
#paid_media ⇒ PaidMediaInfo?
readonly
Returns the value of attribute paid_media.
-
#paid_message_price_changed ⇒ PaidMessagePriceChanged?
readonly
Returns the value of attribute paid_message_price_changed.
-
#paid_star_count ⇒ Integer?
readonly
Returns the value of attribute paid_star_count.
-
#passport_data ⇒ PassportData?
readonly
Returns the value of attribute passport_data.
-
#photo ⇒ Array[PhotoSize]?
readonly
Returns the value of attribute photo.
-
#pinned_message ⇒ maybe_inaccessible_message?
readonly
Returns the value of attribute pinned_message.
-
#poll ⇒ Poll?
readonly
Returns the value of attribute poll.
-
#poll_option_added ⇒ PollOptionAdded?
readonly
Returns the value of attribute poll_option_added.
-
#poll_option_deleted ⇒ PollOptionDeleted?
readonly
Returns the value of attribute poll_option_deleted.
-
#proximity_alert_triggered ⇒ ProximityAlertTriggered?
readonly
Returns the value of attribute proximity_alert_triggered.
-
#quote ⇒ TextQuote?
readonly
Returns the value of attribute quote.
-
#refunded_payment ⇒ RefundedPayment?
readonly
Returns the value of attribute refunded_payment.
-
#reply_markup ⇒ InlineKeyboardMarkup?
readonly
Returns the value of attribute reply_markup.
-
#reply_to_checklist_task_id ⇒ Integer?
readonly
Returns the value of attribute reply_to_checklist_task_id.
-
#reply_to_message ⇒ Message?
readonly
Returns the value of attribute reply_to_message.
-
#reply_to_poll_option_id ⇒ String?
readonly
Returns the value of attribute reply_to_poll_option_id.
-
#reply_to_story ⇒ Story?
readonly
Returns the value of attribute reply_to_story.
-
#sender_boost_count ⇒ Integer?
readonly
Returns the value of attribute sender_boost_count.
-
#sender_business_bot ⇒ User?
readonly
Returns the value of attribute sender_business_bot.
-
#sender_chat ⇒ Chat?
readonly
Returns the value of attribute sender_chat.
-
#sender_tag ⇒ String?
readonly
Returns the value of attribute sender_tag.
-
#show_caption_above_media ⇒ true?
readonly
Returns the value of attribute show_caption_above_media.
-
#sticker ⇒ Sticker?
readonly
Returns the value of attribute sticker.
-
#story ⇒ Story?
readonly
Returns the value of attribute story.
-
#successful_payment ⇒ SuccessfulPayment?
readonly
Returns the value of attribute successful_payment.
-
#suggested_post_approval_failed ⇒ SuggestedPostApprovalFailed?
readonly
Returns the value of attribute suggested_post_approval_failed.
-
#suggested_post_approved ⇒ SuggestedPostApproved?
readonly
Returns the value of attribute suggested_post_approved.
-
#suggested_post_declined ⇒ SuggestedPostDeclined?
readonly
Returns the value of attribute suggested_post_declined.
-
#suggested_post_info ⇒ SuggestedPostInfo?
readonly
Returns the value of attribute suggested_post_info.
-
#suggested_post_paid ⇒ SuggestedPostPaid?
readonly
Returns the value of attribute suggested_post_paid.
-
#suggested_post_refunded ⇒ SuggestedPostRefunded?
readonly
Returns the value of attribute suggested_post_refunded.
-
#supergroup_chat_created ⇒ true?
readonly
Returns the value of attribute supergroup_chat_created.
-
#text ⇒ String?
readonly
Returns the value of attribute text.
-
#unique_gift ⇒ UniqueGiftInfo?
readonly
Returns the value of attribute unique_gift.
-
#users_shared ⇒ UsersShared?
readonly
Returns the value of attribute users_shared.
-
#venue ⇒ Venue?
readonly
Returns the value of attribute venue.
-
#via_bot ⇒ User?
readonly
Returns the value of attribute via_bot.
-
#video ⇒ Video?
readonly
Returns the value of attribute video.
-
#video_chat_ended ⇒ VideoChatEnded?
readonly
Returns the value of attribute video_chat_ended.
-
#video_chat_participants_invited ⇒ VideoChatParticipantsInvited?
readonly
Returns the value of attribute video_chat_participants_invited.
-
#video_chat_scheduled ⇒ VideoChatScheduled?
readonly
Returns the value of attribute video_chat_scheduled.
-
#video_chat_started ⇒ VideoChatStarted?
readonly
Returns the value of attribute video_chat_started.
-
#video_note ⇒ VideoNote?
readonly
Returns the value of attribute video_note.
-
#voice ⇒ Voice?
readonly
Returns the value of attribute voice.
-
#web_app_data ⇒ WebAppData?
readonly
Returns the value of attribute web_app_data.
-
#write_access_allowed ⇒ WriteAccessAllowed?
readonly
Returns the value of attribute write_access_allowed.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#animation ⇒ Animation? (readonly)
Returns the value of attribute animation.
41 42 43 |
# File 'sig/telegram/bot/types/message.rbs', line 41 def animation @animation end |
#audio ⇒ Audio? (readonly)
Returns the value of attribute audio.
42 43 44 |
# File 'sig/telegram/bot/types/message.rbs', line 42 def audio @audio end |
#author_signature ⇒ String? (readonly)
Returns the value of attribute author_signature.
34 35 36 |
# File 'sig/telegram/bot/types/message.rbs', line 34 def @author_signature end |
#boost_added ⇒ ChatBoostAdded? (readonly)
Returns the value of attribute boost_added.
88 89 90 |
# File 'sig/telegram/bot/types/message.rbs', line 88 def boost_added @boost_added end |
#business_connection_id ⇒ String? (readonly)
Returns the value of attribute business_connection_id.
17 18 19 |
# File 'sig/telegram/bot/types/message.rbs', line 17 def business_connection_id @business_connection_id end |
#caption ⇒ String? (readonly)
Returns the value of attribute caption.
51 52 53 |
# File 'sig/telegram/bot/types/message.rbs', line 51 def caption @caption end |
#caption_entities ⇒ Array[MessageEntity]? (readonly)
Returns the value of attribute caption_entities.
52 53 54 |
# File 'sig/telegram/bot/types/message.rbs', line 52 def caption_entities @caption_entities end |
#channel_chat_created ⇒ true? (readonly)
Returns the value of attribute channel_chat_created.
71 72 73 |
# File 'sig/telegram/bot/types/message.rbs', line 71 def channel_chat_created @channel_chat_created end |
#chat ⇒ Chat (readonly)
Returns the value of attribute chat.
18 19 20 |
# File 'sig/telegram/bot/types/message.rbs', line 18 def chat @chat end |
#chat_background_set ⇒ ChatBackground? (readonly)
Returns the value of attribute chat_background_set.
89 90 91 |
# File 'sig/telegram/bot/types/message.rbs', line 89 def chat_background_set @chat_background_set end |
#chat_owner_changed ⇒ ChatOwnerChanged? (readonly)
Returns the value of attribute chat_owner_changed.
65 66 67 |
# File 'sig/telegram/bot/types/message.rbs', line 65 def chat_owner_changed @chat_owner_changed end |
#chat_owner_left ⇒ ChatOwnerLeft? (readonly)
Returns the value of attribute chat_owner_left.
64 65 66 |
# File 'sig/telegram/bot/types/message.rbs', line 64 def chat_owner_left @chat_owner_left end |
#chat_shared ⇒ ChatShared? (readonly)
Returns the value of attribute chat_shared.
80 81 82 |
# File 'sig/telegram/bot/types/message.rbs', line 80 def chat_shared @chat_shared end |
#checklist ⇒ Checklist? (readonly)
Returns the value of attribute checklist.
55 56 57 |
# File 'sig/telegram/bot/types/message.rbs', line 55 def checklist @checklist end |
#checklist_tasks_added ⇒ ChecklistTasksAdded? (readonly)
Returns the value of attribute checklist_tasks_added.
91 92 93 |
# File 'sig/telegram/bot/types/message.rbs', line 91 def checklist_tasks_added @checklist_tasks_added end |
#checklist_tasks_done ⇒ ChecklistTasksDone? (readonly)
Returns the value of attribute checklist_tasks_done.
90 91 92 |
# File 'sig/telegram/bot/types/message.rbs', line 90 def checklist_tasks_done @checklist_tasks_done end |
#connected_website ⇒ String? (readonly)
Returns the value of attribute connected_website.
84 85 86 |
# File 'sig/telegram/bot/types/message.rbs', line 84 def connected_website @connected_website end |
#contact ⇒ Contact? (readonly)
Returns the value of attribute contact.
56 57 58 |
# File 'sig/telegram/bot/types/message.rbs', line 56 def contact @contact end |
#date ⇒ Integer (readonly)
Returns the value of attribute date.
16 17 18 |
# File 'sig/telegram/bot/types/message.rbs', line 16 def date @date end |
#delete_chat_photo ⇒ true? (readonly)
Returns the value of attribute delete_chat_photo.
68 69 70 |
# File 'sig/telegram/bot/types/message.rbs', line 68 def delete_chat_photo @delete_chat_photo end |
#dice ⇒ Dice? (readonly)
Returns the value of attribute dice.
57 58 59 |
# File 'sig/telegram/bot/types/message.rbs', line 57 def dice @dice end |
#direct_message_price_changed ⇒ DirectMessagePriceChanged? (readonly)
Returns the value of attribute direct_message_price_changed.
92 93 94 |
# File 'sig/telegram/bot/types/message.rbs', line 92 def @direct_message_price_changed end |
#direct_messages_topic ⇒ DirectMessagesTopic? (readonly)
Returns the value of attribute direct_messages_topic.
10 11 12 |
# File 'sig/telegram/bot/types/message.rbs', line 10 def @direct_messages_topic end |
#document ⇒ Document? (readonly)
Returns the value of attribute document.
43 44 45 |
# File 'sig/telegram/bot/types/message.rbs', line 43 def document @document end |
#edit_date ⇒ Integer? (readonly)
Returns the value of attribute edit_date.
29 30 31 |
# File 'sig/telegram/bot/types/message.rbs', line 29 def edit_date @edit_date end |
#effect_id ⇒ String? (readonly)
Returns the value of attribute effect_id.
40 41 42 |
# File 'sig/telegram/bot/types/message.rbs', line 40 def effect_id @effect_id end |
#entities ⇒ Array[MessageEntity]? (readonly)
Returns the value of attribute entities.
37 38 39 |
# File 'sig/telegram/bot/types/message.rbs', line 37 def entities @entities end |
#external_reply ⇒ ExternalReplyInfo? (readonly)
Returns the value of attribute external_reply.
23 24 25 |
# File 'sig/telegram/bot/types/message.rbs', line 23 def external_reply @external_reply end |
#forum_topic_closed ⇒ ForumTopicClosed? (readonly)
Returns the value of attribute forum_topic_closed.
95 96 97 |
# File 'sig/telegram/bot/types/message.rbs', line 95 def forum_topic_closed @forum_topic_closed end |
#forum_topic_created ⇒ ForumTopicCreated? (readonly)
Returns the value of attribute forum_topic_created.
93 94 95 |
# File 'sig/telegram/bot/types/message.rbs', line 93 def forum_topic_created @forum_topic_created end |
#forum_topic_edited ⇒ ForumTopicEdited? (readonly)
Returns the value of attribute forum_topic_edited.
94 95 96 |
# File 'sig/telegram/bot/types/message.rbs', line 94 def forum_topic_edited @forum_topic_edited end |
#forum_topic_reopened ⇒ ForumTopicReopened? (readonly)
Returns the value of attribute forum_topic_reopened.
96 97 98 |
# File 'sig/telegram/bot/types/message.rbs', line 96 def forum_topic_reopened @forum_topic_reopened end |
#forward_origin ⇒ message_origin? (readonly)
Returns the value of attribute forward_origin.
19 20 21 |
# File 'sig/telegram/bot/types/message.rbs', line 19 def forward_origin @forward_origin end |
#from ⇒ User? (readonly)
Returns the value of attribute from.
11 12 13 |
# File 'sig/telegram/bot/types/message.rbs', line 11 def from @from end |
#game ⇒ Game? (readonly)
Returns the value of attribute game.
58 59 60 |
# File 'sig/telegram/bot/types/message.rbs', line 58 def game @game end |
#general_forum_topic_hidden ⇒ GeneralForumTopicHidden? (readonly)
Returns the value of attribute general_forum_topic_hidden.
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_unhidden ⇒ GeneralForumTopicUnhidden? (readonly)
Returns the value of attribute general_forum_topic_unhidden.
98 99 100 |
# File 'sig/telegram/bot/types/message.rbs', line 98 def general_forum_topic_unhidden @general_forum_topic_unhidden end |
#gift ⇒ GiftInfo? (readonly)
Returns the value of attribute gift.
81 82 83 |
# File 'sig/telegram/bot/types/message.rbs', line 81 def gift @gift end |
#gift_upgrade_sent ⇒ GiftInfo? (readonly)
Returns the value of attribute gift_upgrade_sent.
83 84 85 |
# File 'sig/telegram/bot/types/message.rbs', line 83 def gift_upgrade_sent @gift_upgrade_sent end |
#giveaway ⇒ Giveaway? (readonly)
Returns the value of attribute giveaway.
100 101 102 |
# File 'sig/telegram/bot/types/message.rbs', line 100 def giveaway @giveaway end |
#giveaway_completed ⇒ GiveawayCompleted? (readonly)
Returns the value of attribute giveaway_completed.
102 103 104 |
# File 'sig/telegram/bot/types/message.rbs', line 102 def giveaway_completed @giveaway_completed end |
#giveaway_created ⇒ GiveawayCreated? (readonly)
Returns the value of attribute giveaway_created.
99 100 101 |
# File 'sig/telegram/bot/types/message.rbs', line 99 def giveaway_created @giveaway_created end |
#giveaway_winners ⇒ GiveawayWinners? (readonly)
Returns the value of attribute giveaway_winners.
101 102 103 |
# File 'sig/telegram/bot/types/message.rbs', line 101 def giveaway_winners @giveaway_winners end |
#group_chat_created ⇒ true? (readonly)
Returns the value of attribute group_chat_created.
69 70 71 |
# File 'sig/telegram/bot/types/message.rbs', line 69 def group_chat_created @group_chat_created end |
#has_media_spoiler ⇒ true? (readonly)
Returns the value of attribute has_media_spoiler.
54 55 56 |
# File 'sig/telegram/bot/types/message.rbs', line 54 def has_media_spoiler @has_media_spoiler end |
#has_protected_content ⇒ true? (readonly)
Returns the value of attribute has_protected_content.
30 31 32 |
# File 'sig/telegram/bot/types/message.rbs', line 30 def has_protected_content @has_protected_content end |
#invoice ⇒ Invoice? (readonly)
Returns the value of attribute invoice.
76 77 78 |
# File 'sig/telegram/bot/types/message.rbs', line 76 def invoice @invoice end |
#is_automatic_forward ⇒ true? (readonly)
Returns the value of attribute is_automatic_forward.
21 22 23 |
# File 'sig/telegram/bot/types/message.rbs', line 21 def is_automatic_forward @is_automatic_forward end |
#is_from_offline ⇒ true? (readonly)
Returns the value of attribute is_from_offline.
31 32 33 |
# File 'sig/telegram/bot/types/message.rbs', line 31 def is_from_offline @is_from_offline end |
#is_paid_post ⇒ true? (readonly)
Returns the value of attribute is_paid_post.
32 33 34 |
# File 'sig/telegram/bot/types/message.rbs', line 32 def is_paid_post @is_paid_post end |
#is_topic_message ⇒ true? (readonly)
Returns the value of attribute is_topic_message.
20 21 22 |
# File 'sig/telegram/bot/types/message.rbs', line 20 def @is_topic_message end |
#left_chat_member ⇒ User? (readonly)
Returns the value of attribute left_chat_member.
63 64 65 |
# File 'sig/telegram/bot/types/message.rbs', line 63 def left_chat_member @left_chat_member end |
#link_preview_options ⇒ LinkPreviewOptions? (readonly)
Returns the value of attribute link_preview_options.
38 39 40 |
# File 'sig/telegram/bot/types/message.rbs', line 38 def @link_preview_options end |
#location ⇒ Location? (readonly)
Returns the value of attribute location.
61 62 63 |
# File 'sig/telegram/bot/types/message.rbs', line 61 def location @location end |
#managed_bot_created ⇒ ManagedBotCreated? (readonly)
Returns the value of attribute managed_bot_created.
103 104 105 |
# File 'sig/telegram/bot/types/message.rbs', line 103 def managed_bot_created @managed_bot_created end |
#media_group_id ⇒ String? (readonly)
Returns the value of attribute media_group_id.
33 34 35 |
# File 'sig/telegram/bot/types/message.rbs', line 33 def media_group_id @media_group_id end |
#message_auto_delete_timer_changed ⇒ MessageAutoDeleteTimerChanged? (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 end |
#message_id ⇒ Integer (readonly)
Returns the value of attribute message_id.
8 9 10 |
# File 'sig/telegram/bot/types/message.rbs', line 8 def @message_id end |
#message_thread_id ⇒ Integer? (readonly)
Returns the value of attribute message_thread_id.
9 10 11 |
# File 'sig/telegram/bot/types/message.rbs', line 9 def @message_thread_id end |
#migrate_from_chat_id ⇒ Integer? (readonly)
Returns the value of attribute migrate_from_chat_id.
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_id ⇒ Integer? (readonly)
Returns the value of attribute migrate_to_chat_id.
73 74 75 |
# File 'sig/telegram/bot/types/message.rbs', line 73 def migrate_to_chat_id @migrate_to_chat_id end |
#new_chat_members ⇒ Array[User]? (readonly)
Returns the value of attribute new_chat_members.
62 63 64 |
# File 'sig/telegram/bot/types/message.rbs', line 62 def new_chat_members @new_chat_members end |
#new_chat_photo ⇒ Array[PhotoSize]? (readonly)
Returns the value of attribute new_chat_photo.
67 68 69 |
# File 'sig/telegram/bot/types/message.rbs', line 67 def new_chat_photo @new_chat_photo end |
#new_chat_title ⇒ String? (readonly)
Returns the value of attribute new_chat_title.
66 67 68 |
# File 'sig/telegram/bot/types/message.rbs', line 66 def new_chat_title @new_chat_title end |
#paid_media ⇒ PaidMediaInfo? (readonly)
Returns the value of attribute paid_media.
44 45 46 |
# File 'sig/telegram/bot/types/message.rbs', line 44 def paid_media @paid_media end |
#paid_message_price_changed ⇒ PaidMessagePriceChanged? (readonly)
Returns the value of attribute paid_message_price_changed.
104 105 106 |
# File 'sig/telegram/bot/types/message.rbs', line 104 def @paid_message_price_changed end |
#paid_star_count ⇒ Integer? (readonly)
Returns the value of attribute paid_star_count.
35 36 37 |
# File 'sig/telegram/bot/types/message.rbs', line 35 def paid_star_count @paid_star_count end |
#passport_data ⇒ PassportData? (readonly)
Returns the value of attribute passport_data.
86 87 88 |
# File 'sig/telegram/bot/types/message.rbs', line 86 def passport_data @passport_data end |
#photo ⇒ Array[PhotoSize]? (readonly)
Returns the value of attribute photo.
45 46 47 |
# File 'sig/telegram/bot/types/message.rbs', line 45 def photo @photo end |
#pinned_message ⇒ maybe_inaccessible_message? (readonly)
Returns the value of attribute pinned_message.
75 76 77 |
# File 'sig/telegram/bot/types/message.rbs', line 75 def @pinned_message end |
#poll ⇒ Poll? (readonly)
Returns the value of attribute poll.
59 60 61 |
# File 'sig/telegram/bot/types/message.rbs', line 59 def poll @poll end |
#poll_option_added ⇒ PollOptionAdded? (readonly)
Returns the value of attribute poll_option_added.
105 106 107 |
# File 'sig/telegram/bot/types/message.rbs', line 105 def poll_option_added @poll_option_added end |
#poll_option_deleted ⇒ PollOptionDeleted? (readonly)
Returns the value of attribute poll_option_deleted.
106 107 108 |
# File 'sig/telegram/bot/types/message.rbs', line 106 def poll_option_deleted @poll_option_deleted end |
#proximity_alert_triggered ⇒ ProximityAlertTriggered? (readonly)
Returns the value of attribute proximity_alert_triggered.
87 88 89 |
# File 'sig/telegram/bot/types/message.rbs', line 87 def proximity_alert_triggered @proximity_alert_triggered end |
#quote ⇒ TextQuote? (readonly)
Returns the value of attribute quote.
24 25 26 |
# File 'sig/telegram/bot/types/message.rbs', line 24 def quote @quote end |
#refunded_payment ⇒ RefundedPayment? (readonly)
Returns the value of attribute refunded_payment.
78 79 80 |
# File 'sig/telegram/bot/types/message.rbs', line 78 def refunded_payment @refunded_payment end |
#reply_markup ⇒ InlineKeyboardMarkup? (readonly)
Returns the value of attribute reply_markup.
117 118 119 |
# File 'sig/telegram/bot/types/message.rbs', line 117 def reply_markup @reply_markup end |
#reply_to_checklist_task_id ⇒ Integer? (readonly)
Returns the value of attribute reply_to_checklist_task_id.
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_message ⇒ Message? (readonly)
Returns the value of attribute reply_to_message.
22 23 24 |
# File 'sig/telegram/bot/types/message.rbs', line 22 def @reply_to_message end |
#reply_to_poll_option_id ⇒ String? (readonly)
Returns the value of attribute reply_to_poll_option_id.
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_story ⇒ Story? (readonly)
Returns the value of attribute reply_to_story.
25 26 27 |
# File 'sig/telegram/bot/types/message.rbs', line 25 def reply_to_story @reply_to_story end |
#sender_boost_count ⇒ Integer? (readonly)
Returns the value of attribute sender_boost_count.
13 14 15 |
# File 'sig/telegram/bot/types/message.rbs', line 13 def sender_boost_count @sender_boost_count end |
#sender_business_bot ⇒ User? (readonly)
Returns the value of attribute sender_business_bot.
14 15 16 |
# File 'sig/telegram/bot/types/message.rbs', line 14 def sender_business_bot @sender_business_bot end |
#sender_chat ⇒ Chat? (readonly)
Returns the value of attribute sender_chat.
12 13 14 |
# File 'sig/telegram/bot/types/message.rbs', line 12 def sender_chat @sender_chat end |
#sender_tag ⇒ String? (readonly)
Returns the value of attribute sender_tag.
15 16 17 |
# File 'sig/telegram/bot/types/message.rbs', line 15 def sender_tag @sender_tag end |
#show_caption_above_media ⇒ true? (readonly)
Returns the value of attribute show_caption_above_media.
53 54 55 |
# File 'sig/telegram/bot/types/message.rbs', line 53 def show_caption_above_media @show_caption_above_media end |
#sticker ⇒ Sticker? (readonly)
Returns the value of attribute sticker.
46 47 48 |
# File 'sig/telegram/bot/types/message.rbs', line 46 def sticker @sticker end |
#story ⇒ Story? (readonly)
Returns the value of attribute story.
47 48 49 |
# File 'sig/telegram/bot/types/message.rbs', line 47 def story @story end |
#successful_payment ⇒ SuccessfulPayment? (readonly)
Returns the value of attribute successful_payment.
77 78 79 |
# File 'sig/telegram/bot/types/message.rbs', line 77 def successful_payment @successful_payment end |
#suggested_post_approval_failed ⇒ SuggestedPostApprovalFailed? (readonly)
Returns the value of attribute suggested_post_approval_failed.
108 109 110 |
# File 'sig/telegram/bot/types/message.rbs', line 108 def suggested_post_approval_failed @suggested_post_approval_failed end |
#suggested_post_approved ⇒ SuggestedPostApproved? (readonly)
Returns the value of attribute suggested_post_approved.
107 108 109 |
# File 'sig/telegram/bot/types/message.rbs', line 107 def suggested_post_approved @suggested_post_approved end |
#suggested_post_declined ⇒ SuggestedPostDeclined? (readonly)
Returns the value of attribute suggested_post_declined.
109 110 111 |
# File 'sig/telegram/bot/types/message.rbs', line 109 def suggested_post_declined @suggested_post_declined end |
#suggested_post_info ⇒ SuggestedPostInfo? (readonly)
Returns the value of attribute suggested_post_info.
39 40 41 |
# File 'sig/telegram/bot/types/message.rbs', line 39 def suggested_post_info @suggested_post_info end |
#suggested_post_paid ⇒ SuggestedPostPaid? (readonly)
Returns the value of attribute suggested_post_paid.
110 111 112 |
# File 'sig/telegram/bot/types/message.rbs', line 110 def suggested_post_paid @suggested_post_paid end |
#suggested_post_refunded ⇒ SuggestedPostRefunded? (readonly)
Returns the value of attribute suggested_post_refunded.
111 112 113 |
# File 'sig/telegram/bot/types/message.rbs', line 111 def suggested_post_refunded @suggested_post_refunded end |
#supergroup_chat_created ⇒ true? (readonly)
Returns the value of attribute supergroup_chat_created.
70 71 72 |
# File 'sig/telegram/bot/types/message.rbs', line 70 def supergroup_chat_created @supergroup_chat_created end |
#text ⇒ String? (readonly)
Returns the value of attribute text.
36 37 38 |
# File 'sig/telegram/bot/types/message.rbs', line 36 def text @text end |
#unique_gift ⇒ UniqueGiftInfo? (readonly)
Returns the value of attribute unique_gift.
82 83 84 |
# File 'sig/telegram/bot/types/message.rbs', line 82 def unique_gift @unique_gift end |
#users_shared ⇒ UsersShared? (readonly)
Returns the value of attribute users_shared.
79 80 81 |
# File 'sig/telegram/bot/types/message.rbs', line 79 def users_shared @users_shared end |
#venue ⇒ Venue? (readonly)
Returns the value of attribute venue.
60 61 62 |
# File 'sig/telegram/bot/types/message.rbs', line 60 def venue @venue end |
#via_bot ⇒ User? (readonly)
Returns the value of attribute via_bot.
28 29 30 |
# File 'sig/telegram/bot/types/message.rbs', line 28 def via_bot @via_bot end |
#video ⇒ Video? (readonly)
Returns the value of attribute video.
48 49 50 |
# File 'sig/telegram/bot/types/message.rbs', line 48 def video @video end |
#video_chat_ended ⇒ VideoChatEnded? (readonly)
Returns the value of attribute video_chat_ended.
114 115 116 |
# File 'sig/telegram/bot/types/message.rbs', line 114 def video_chat_ended @video_chat_ended end |
#video_chat_participants_invited ⇒ VideoChatParticipantsInvited? (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_scheduled ⇒ VideoChatScheduled? (readonly)
Returns the value of attribute video_chat_scheduled.
112 113 114 |
# File 'sig/telegram/bot/types/message.rbs', line 112 def video_chat_scheduled @video_chat_scheduled end |
#video_chat_started ⇒ VideoChatStarted? (readonly)
Returns the value of attribute video_chat_started.
113 114 115 |
# File 'sig/telegram/bot/types/message.rbs', line 113 def video_chat_started @video_chat_started end |
#video_note ⇒ VideoNote? (readonly)
Returns the value of attribute video_note.
49 50 51 |
# File 'sig/telegram/bot/types/message.rbs', line 49 def video_note @video_note end |
#voice ⇒ Voice? (readonly)
Returns the value of attribute voice.
50 51 52 |
# File 'sig/telegram/bot/types/message.rbs', line 50 def voice @voice end |
#web_app_data ⇒ WebAppData? (readonly)
Returns the value of attribute web_app_data.
116 117 118 |
# File 'sig/telegram/bot/types/message.rbs', line 116 def web_app_data @web_app_data end |
#write_access_allowed ⇒ WriteAccessAllowed? (readonly)
Returns the value of attribute write_access_allowed.
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
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_s ⇒ String
118 |
# File 'sig/telegram/bot/types/message.rbs', line 118
def to_s: () -> String
|