class

Tourmaline::Message

Inherits JSON::Serializable < Reference < Object

This object represents a message.

Constructors

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

Instance methods

animation

Optional. Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set

Source
animation=(animation : Tourmaline::Animation | Nil)

Optional. Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set

Source
audio

Optional. Message is an audio file, information about the file

Source
audio=(audio : Tourmaline::Audio | Nil)

Optional. Message is an audio file, information about the file

Source
author_signature

Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator

Source
author_signature=(author_signature : String | Nil)

Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator

Source
boost_added

Optional. Service message: user boosted the chat

Source
boost_added=(boost_added : Tourmaline::ChatBoostAdded | Nil)

Optional. Service message: user boosted the chat

Source
business_connection_id

Optional. Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier.

Source
business_connection_id=(business_connection_id : String | Nil)

Optional. Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier.

Source
caption

Optional. Caption for the animation, audio, document, paid media, photo, video or voice

Source
caption=(caption : String | Nil)

Optional. Caption for the animation, audio, document, paid media, photo, video or voice

Source
caption_entities

Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption

Source
caption_entities=(caption_entities : Array(Tourmaline::MessageEntity))

Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption

Source
channel_chat_created=(channel_chat_created : Bool | Nil)

Optional. Service message: the channel has been created. This field can't be received in a message coming through updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel.

Source
channel_chat_created?

Optional. Service message: the channel has been created. This field can't be received in a message coming through updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel.

Source
chat

Chat the message belongs to

Source
chat=(chat : Tourmaline::Chat)

Chat the message belongs to

Source
chat_background_set

Optional. Service message: chat background set

Source
chat_background_set=(chat_background_set : Tourmaline::ChatBackground | Nil)

Optional. Service message: chat background set

Source
chat_owner_changed

Optional. Service message: chat owner has changed

Source
chat_owner_changed=(chat_owner_changed : Tourmaline::ChatOwnerChanged | Nil)

Optional. Service message: chat owner has changed

Source
chat_owner_left

Optional. Service message: chat owner has left

Source
chat_owner_left=(chat_owner_left : Tourmaline::ChatOwnerLeft | Nil)

Optional. Service message: chat owner has left

Source
chat_shared

Optional. Service message: a chat was shared with the bot

Source
chat_shared=(chat_shared : Tourmaline::ChatShared | Nil)

Optional. Service message: a chat was shared with the bot

Source
chats
Source
chats
Source
checklist

Optional. Message is a checklist

Source
checklist=(checklist : Tourmaline::Checklist | Nil)

Optional. Message is a checklist

Source
checklist_tasks_added

Optional. Service message: tasks were added to a checklist

Source
checklist_tasks_added=(checklist_tasks_added : Tourmaline::ChecklistTasksAdded | Nil)

Optional. Service message: tasks were added to a checklist

Source
checklist_tasks_done

Optional. Service message: some tasks in a checklist were marked as done or not done

Source
checklist_tasks_done=(checklist_tasks_done : Tourmaline::ChecklistTasksDone | Nil)

Optional. Service message: some tasks in a checklist were marked as done or not done

Source
connected_website

Optional. The domain name of the website on which the user has logged in. More about Telegram Login: https://core.telegram.org/widgets/login

Source
connected_website=(connected_website : String | Nil)

Optional. The domain name of the website on which the user has logged in. More about Telegram Login: https://core.telegram.org/widgets/login

Source
contact

Optional. Message is a shared contact, information about the contact

Source
contact=(contact : Tourmaline::Contact | Nil)

Optional. Message is a shared contact, information about the contact

Source
date

Date the message was sent in Unix time. It is always a positive number, representing a valid date.

Source
date=(date : Time)

Date the message was sent in Unix time. It is always a positive number, representing a valid date.

Source
delete_chat_photo=(delete_chat_photo : Bool | Nil)

Optional. Service message: the chat photo was deleted

Source
delete_chat_photo?

Optional. Service message: the chat photo was deleted

Source
dice

Optional. Message is a dice with random value

Source
dice=(dice : Tourmaline::Dice | Nil)

Optional. Message is a dice with random value

Source
direct_message_price_changed

Optional. Service message: the price for paid messages in the corresponding direct messages chat of a channel has changed

Source
direct_message_price_changed=(direct_message_price_changed : Tourmaline::DirectMessagePriceChanged | Nil)

Optional. Service message: the price for paid messages in the corresponding direct messages chat of a channel has changed

Source
direct_messages_topic

Optional. Information about the direct messages chat topic that contains the message

Source
direct_messages_topic=(direct_messages_topic : Tourmaline::DirectMessagesTopic | Nil)

Optional. Information about the direct messages chat topic that contains the message

Source
document

Optional. Message is a general file, information about the file

Source
document=(document : Tourmaline::Document | Nil)

Optional. Message is a general file, information about the file

Source
edit_date

Optional. Date the message was last edited in Unix time

Source
edit_date=(edit_date : Time | Nil)

Optional. Date the message was last edited in Unix time

Source
effect_id

Optional. Unique identifier of the message effect added to the message

Source
effect_id=(effect_id : String | Nil)

Optional. Unique identifier of the message effect added to the message

Source
entities

Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text

Source
entities=(entities : Array(Tourmaline::MessageEntity))

Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text

Source
external_reply

Optional. Information about the message that is being replied to, which may come from another chat or forum topic

Source
external_reply=(external_reply : Tourmaline::ExternalReplyInfo | Nil)

Optional. Information about the message that is being replied to, which may come from another chat or forum topic

Source
file
Source
forum_topic_closed

Optional. Service message: forum topic closed

Source
forum_topic_closed=(forum_topic_closed : Tourmaline::ForumTopicClosed | Nil)

Optional. Service message: forum topic closed

Source
forum_topic_created

Optional. Service message: forum topic created

Source
forum_topic_created=(forum_topic_created : Tourmaline::ForumTopicCreated | Nil)

Optional. Service message: forum topic created

Source
forum_topic_edited

Optional. Service message: forum topic edited

Source
forum_topic_edited=(forum_topic_edited : Tourmaline::ForumTopicEdited | Nil)

Optional. Service message: forum topic edited

Source
forum_topic_reopened

Optional. Service message: forum topic reopened

Source
forum_topic_reopened=(forum_topic_reopened : Tourmaline::ForumTopicReopened | Nil)

Optional. Service message: forum topic reopened

Source
forward_origin

Optional. Information about the original message for forwarded messages

Source
forward_origin=(forward_origin : Tourmaline::MessageOrigin | Nil)

Optional. Information about the original message for forwarded messages

Source
from

Optional. Sender of the message; may be empty for messages sent to channels. For backward compatibility, if the message was sent on behalf of a chat, the field contains a fake sender user in non-channel chats

Source
from=(from : Tourmaline::User | Nil)

Optional. Sender of the message; may be empty for messages sent to channels. For backward compatibility, if the message was sent on behalf of a chat, the field contains a fake sender user in non-channel chats

Source
game

Optional. Message is a game, information about the game. More about games: https://core.telegram.org/bots/api#games

Source
game=(game : Tourmaline::Game | Nil)

Optional. Message is a game, information about the game. More about games: https://core.telegram.org/bots/api#games

Source
general_forum_topic_hidden

Optional. Service message: the 'General' forum topic hidden

Source
general_forum_topic_hidden=(general_forum_topic_hidden : Tourmaline::GeneralForumTopicHidden | Nil)

Optional. Service message: the 'General' forum topic hidden

Source
general_forum_topic_unhidden

Optional. Service message: the 'General' forum topic unhidden

Source
general_forum_topic_unhidden=(general_forum_topic_unhidden : Tourmaline::GeneralForumTopicUnhidden | Nil)

Optional. Service message: the 'General' forum topic unhidden

Source
gift

Optional. Service message: a regular gift was sent or received

Source
gift=(gift : Tourmaline::GiftInfo | Nil)

Optional. Service message: a regular gift was sent or received

Source
gift_upgrade_sent

Optional. Service message: upgrade of a gift was purchased after the gift was sent

Source
gift_upgrade_sent=(gift_upgrade_sent : Tourmaline::GiftInfo | Nil)

Optional. Service message: upgrade of a gift was purchased after the gift was sent

Source
giveaway

Optional. The message is a scheduled giveaway message

Source
giveaway=(giveaway : Tourmaline::Giveaway | Nil)

Optional. The message is a scheduled giveaway message

Source
giveaway_completed

Optional. Service message: a giveaway without public winners was completed

Source
giveaway_completed=(giveaway_completed : Tourmaline::GiveawayCompleted | Nil)

Optional. Service message: a giveaway without public winners was completed

Source
giveaway_created

Optional. Service message: a scheduled giveaway was created

Source
giveaway_created=(giveaway_created : Tourmaline::GiveawayCreated | Nil)

Optional. Service message: a scheduled giveaway was created

Source
giveaway_winners

Optional. A giveaway with public winners was completed

Source
giveaway_winners=(giveaway_winners : Tourmaline::GiveawayWinners | Nil)

Optional. A giveaway with public winners was completed

Source
group_chat_created=(group_chat_created : Bool | Nil)

Optional. Service message: the group has been created

Source
group_chat_created?

Optional. Service message: the group has been created

Source
has_media_spoiler=(has_media_spoiler : Bool | Nil)

Optional. True, if the message media is covered by a spoiler animation

Source
has_media_spoiler?

Optional. True, if the message media is covered by a spoiler animation

Source
has_protected_content=(has_protected_content : Bool | Nil)

Optional. True, if the message can't be forwarded

Source
has_protected_content?

Optional. True, if the message can't be forwarded

Source
invoice

Optional. Message is an invoice for a payment, information about the invoice. More about payments: https://core.telegram.org/bots/api#payments

Source
invoice=(invoice : Tourmaline::Invoice | Nil)

Optional. Message is an invoice for a payment, information about the invoice. More about payments: https://core.telegram.org/bots/api#payments

Source
is_automatic_forward=(is_automatic_forward : Bool | Nil)

Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group

Source
is_automatic_forward?

Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group

Source
is_from_offline=(is_from_offline : Bool | Nil)

Optional. True, if the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message

Source
is_from_offline?

Optional. True, if the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message

Source
is_paid_post=(is_paid_post : Bool | Nil)

Optional. True, if the message is a paid post. Note that such posts must not be deleted for 24 hours to receive the payment and can't be edited.

Source
is_paid_post?

Optional. True, if the message is a paid post. Note that such posts must not be deleted for 24 hours to receive the payment and can't be edited.

Source
is_topic_message=(is_topic_message : Bool | Nil)

Optional. True, if the message is sent to a topic in a forum supergroup or a private chat with the bot

Source
is_topic_message?

Optional. True, if the message is sent to a topic in a forum supergroup or a private chat with the bot

Source
left_chat_member

Optional. A member was removed from the group, information about them (this member may be the bot itself)

Source
left_chat_member=(left_chat_member : Tourmaline::User | Nil)

Optional. A member was removed from the group, information about them (this member may be the bot itself)

Source
location

Optional. Message is a shared location, information about the location

Source
location=(location : Tourmaline::Location | Nil)

Optional. Message is a shared location, information about the location

Source
media_group_id

Optional. The unique identifier of a media message group this message belongs to

Source
media_group_id=(media_group_id : String | Nil)

Optional. The unique identifier of a media message group this message belongs to

Source
message_auto_delete_timer_changed

Optional. Service message: auto-delete timer settings changed in the chat

Source
message_auto_delete_timer_changed=(message_auto_delete_timer_changed : Tourmaline::MessageAutoDeleteTimerChanged | Nil)

Optional. Service message: auto-delete timer settings changed in the chat

Source
message_id

Unique message identifier inside this chat. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent

Source
message_id=(message_id : Int32 | Int64)

Unique message identifier inside this chat. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent

Source
message_thread_id

Optional. Unique identifier of a message thread or forum topic to which the message belongs; for supergroups and private chats only

Source
message_thread_id=(message_thread_id : Int32 | Int64 | Nil)

Optional. Unique identifier of a message thread or forum topic to which the message belongs; for supergroups and private chats only

Source
migrate_from_chat_id

Optional. The supergroup has been migrated from a group with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.

Source
migrate_from_chat_id=(migrate_from_chat_id : Int32 | Int64 | Nil)

Optional. The supergroup has been migrated from a group with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.

Source
migrate_to_chat_id

Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.

Source
migrate_to_chat_id=(migrate_to_chat_id : Int32 | Int64 | Nil)

Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.

Source
new_chat_members

Optional. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)

Source
new_chat_members=(new_chat_members : Array(Tourmaline::User))

Optional. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)

Source
new_chat_photo

Optional. A chat photo was change to this value

Source
new_chat_photo=(new_chat_photo : Array(Tourmaline::PhotoSize))

Optional. A chat photo was change to this value

Source
new_chat_title

Optional. A chat title was changed to this value

Source
new_chat_title=(new_chat_title : String | Nil)

Optional. A chat title was changed to this value

Source
passport_data

Optional. Telegram Passport data

Source
passport_data=(passport_data : Tourmaline::PassportData | Nil)

Optional. Telegram Passport data

Source
photo

Optional. Message is a photo, available sizes of the photo

Source
photo=(photo : Array(Tourmaline::PhotoSize))

Optional. Message is a photo, available sizes of the photo

Source
pinned_message

Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.

Source
pinned_message=(pinned_message : Tourmaline::MaybeInaccessibleMessage | Nil)

Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.

Source
poll

Optional. Message is a native poll, information about the poll

Source
poll=(poll : Tourmaline::Poll | Nil)

Optional. Message is a native poll, information about the poll

Source
proximity_alert_triggered

Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.

Source
proximity_alert_triggered=(proximity_alert_triggered : Tourmaline::ProximityAlertTriggered | Nil)

Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.

Source
quote

Optional. For replies that quote part of the original message, the quoted part of the message

Source
quote=(quote : Tourmaline::TextQuote | Nil)

Optional. For replies that quote part of the original message, the quoted part of the message

Source
refunded_payment

Optional. Message is a service message about a refunded payment, information about the payment. More about payments: https://core.telegram.org/bots/api#payments

Source
refunded_payment=(refunded_payment : Tourmaline::RefundedPayment | Nil)

Optional. Message is a service message about a refunded payment, information about the payment. More about payments: https://core.telegram.org/bots/api#payments

Source
reply_markup

Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.

Source
reply_markup=(reply_markup : Tourmaline::InlineKeyboardMarkup | Nil)

Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.

Source
reply_to_checklist_task_id

Optional. Identifier of the specific checklist task that is being replied to

Source
reply_to_checklist_task_id=(reply_to_checklist_task_id : Int32 | Int64 | Nil)

Optional. Identifier of the specific checklist task that is being replied to

Source
reply_to_message

Optional. For replies in the same chat and message thread, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.

Source
reply_to_message=(reply_to_message : Tourmaline::Message | Nil)

Optional. For replies in the same chat and message thread, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.

Source
reply_to_story

Optional. For replies to a story, the original story

Source
reply_to_story=(reply_to_story : Tourmaline::Story | Nil)

Optional. For replies to a story, the original story

Source
sender_boost_count

Optional. If the sender of the message boosted the chat, the number of boosts added by the user

Source
sender_boost_count=(sender_boost_count : Int32 | Int64 | Nil)

Optional. If the sender of the message boosted the chat, the number of boosts added by the user

Source
sender_business_bot

Optional. The bot that actually sent the message on behalf of the business account. Available only for outgoing messages sent on behalf of the connected business account.

Source
sender_business_bot=(sender_business_bot : Tourmaline::User | Nil)

Optional. The bot that actually sent the message on behalf of the business account. Available only for outgoing messages sent on behalf of the connected business account.

Source
sender_chat

Optional. Sender of the message when sent on behalf of a chat. For example, the supergroup itself for messages sent by its anonymous administrators or a linked channel for messages automatically forwarded to the channel's discussion group. For backward compatibility, if the message was sent on behalf of a chat, the field from contains a fake sender user in non-channel chats.

Source
sender_chat=(sender_chat : Tourmaline::Chat | Nil)

Optional. Sender of the message when sent on behalf of a chat. For example, the supergroup itself for messages sent by its anonymous administrators or a linked channel for messages automatically forwarded to the channel's discussion group. For backward compatibility, if the message was sent on behalf of a chat, the field from contains a fake sender user in non-channel chats.

Source
sender_type
Source
show_caption_above_media=(show_caption_above_media : Bool | Nil)

Optional. True, if the caption must be shown above the message media

Source
show_caption_above_media?

Optional. True, if the caption must be shown above the message media

Source
sticker

Optional. Message is a sticker, information about the sticker

Source
sticker=(sticker : Tourmaline::Sticker | Nil)

Optional. Message is a sticker, information about the sticker

Source
story

Optional. Message is a forwarded story

Source
story=(story : Tourmaline::Story | Nil)

Optional. Message is a forwarded story

Source
successful_payment

Optional. Message is a service message about a successful payment, information about the payment. More about payments: https://core.telegram.org/bots/api#payments

Source
successful_payment=(successful_payment : Tourmaline::SuccessfulPayment | Nil)

Optional. Message is a service message about a successful payment, information about the payment. More about payments: https://core.telegram.org/bots/api#payments

Source
suggested_post_approval_failed

Optional. Service message: approval of a suggested post has failed

Source
suggested_post_approval_failed=(suggested_post_approval_failed : Tourmaline::SuggestedPostApprovalFailed | Nil)

Optional. Service message: approval of a suggested post has failed

Source
suggested_post_approved

Optional. Service message: a suggested post was approved

Source
suggested_post_approved=(suggested_post_approved : Tourmaline::SuggestedPostApproved | Nil)

Optional. Service message: a suggested post was approved

Source
suggested_post_declined

Optional. Service message: a suggested post was declined

Source
suggested_post_declined=(suggested_post_declined : Tourmaline::SuggestedPostDeclined | Nil)

Optional. Service message: a suggested post was declined

Source
suggested_post_info

Optional. Information about suggested post parameters if the message is a suggested post in a channel direct messages chat. If the message is an approved or declined suggested post, then it can't be edited.

Source
suggested_post_info=(suggested_post_info : Tourmaline::SuggestedPostInfo | Nil)

Optional. Information about suggested post parameters if the message is a suggested post in a channel direct messages chat. If the message is an approved or declined suggested post, then it can't be edited.

Source
suggested_post_paid

Optional. Service message: payment for a suggested post was received

Source
suggested_post_paid=(suggested_post_paid : Tourmaline::SuggestedPostPaid | Nil)

Optional. Service message: payment for a suggested post was received

Source
suggested_post_refunded

Optional. Service message: payment for a suggested post was refunded

Source
suggested_post_refunded=(suggested_post_refunded : Tourmaline::SuggestedPostRefunded | Nil)

Optional. Service message: payment for a suggested post was refunded

Source
supergroup_chat_created=(supergroup_chat_created : Bool | Nil)

Optional. Service message: the supergroup has been created. This field can't be received in a message coming through updates, because bot can't be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup.

Source
supergroup_chat_created?

Optional. Service message: the supergroup has been created. This field can't be received in a message coming through updates, because bot can't be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup.

Source
text

Optional. For text messages, the actual UTF-8 text of the message

Source
text=(text : String | Nil)

Optional. For text messages, the actual UTF-8 text of the message

Source
text_entities(type : String)
Source
text_entities
Source
unique_gift

Optional. Service message: a unique gift was sent or received

Source
unique_gift=(unique_gift : Tourmaline::UniqueGiftInfo | Nil)

Optional. Service message: a unique gift was sent or received

Source
users
Source
users
Source
users_shared

Optional. Service message: users were shared with the bot

Source
users_shared=(users_shared : Tourmaline::UsersShared | Nil)

Optional. Service message: users were shared with the bot

Source
venue

Optional. Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set

Source
venue=(venue : Tourmaline::Venue | Nil)

Optional. Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set

Source
via_bot

Optional. Bot through which the message was sent

Source
via_bot=(via_bot : Tourmaline::User | Nil)

Optional. Bot through which the message was sent

Source
video

Optional. Message is a video, information about the video

Source
video=(video : Tourmaline::Video | Nil)

Optional. Message is a video, information about the video

Source
video_chat_ended

Optional. Service message: video chat ended

Source
video_chat_ended=(video_chat_ended : Tourmaline::VideoChatEnded | Nil)

Optional. Service message: video chat ended

Source
video_chat_participants_invited

Optional. Service message: new participants invited to a video chat

Source
video_chat_participants_invited=(video_chat_participants_invited : Tourmaline::VideoChatParticipantsInvited | Nil)

Optional. Service message: new participants invited to a video chat

Source
video_chat_scheduled

Optional. Service message: video chat scheduled

Source
video_chat_scheduled=(video_chat_scheduled : Tourmaline::VideoChatScheduled | Nil)

Optional. Service message: video chat scheduled

Source
video_chat_started

Optional. Service message: video chat started

Source
video_chat_started=(video_chat_started : Tourmaline::VideoChatStarted | Nil)

Optional. Service message: video chat started

Source
video_note

Optional. Message is a video note, information about the video message

Source
video_note=(video_note : Tourmaline::VideoNote | Nil)

Optional. Message is a video note, information about the video message

Source
voice

Optional. Message is a voice message, information about the file

Source
voice=(voice : Tourmaline::Voice | Nil)

Optional. Message is a voice message, information about the file

Source
web_app_data

Optional. Service message: data sent by a Web App

Source
web_app_data=(web_app_data : Tourmaline::WebAppData | Nil)

Optional. Service message: data sent by a Web App

Source
write_access_allowed

Optional. Service message: the user allowed the bot to write messages after adding it to the attachment or side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess

Source
write_access_allowed=(write_access_allowed : Tourmaline::WriteAccessAllowed | Nil)

Optional. Service message: the user allowed the bot to write messages after adding it to the attachment or side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess

Source

Nested types