class Tourmaline::Message
inherits Reference
#
This object represents a message.
Included modules
JSON::Serializable
Constructors#
.new(message_id, date, chat, message_thread_id : Int32 | Int64 | Nil = nil, from : Tourmaline::User? = nil, sender_chat : Tourmaline::Chat? = nil, sender_boost_count : Int32 | Int64 | Nil = nil, sender_business_bot : Tourmaline::User? = nil, business_connection_id : String? = nil, forward_origin : Tourmaline::MessageOrigin? = nil, is_topic_message : Bool? = nil, is_automatic_forward : Bool? = nil, reply_to_message : Tourmaline::Message? = nil, external_reply : Tourmaline::ExternalReplyInfo? = nil, quote : Tourmaline::TextQuote? = nil, reply_to_story : Tourmaline::Story? = nil, via_bot : Tourmaline::User? = nil, edit_date : Int32 | Int64 | Nil = nil, has_protected_content : Bool? = nil, is_from_offline : Bool? = nil, media_group_id : String? = nil, author_signature : String? = nil, text : String? = nil, entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, link_preview_options : Tourmaline::LinkPreviewOptions? = nil, animation : Tourmaline::Animation? = nil, audio : Tourmaline::Audio? = nil, document : Tourmaline::Document? = nil, photo : Array(Tourmaline::PhotoSize) = [] of Tourmaline::PhotoSize, sticker : Tourmaline::Sticker? = nil, story : Tourmaline::Story? = nil, video : Tourmaline::Video? = nil, video_note : Tourmaline::VideoNote? = nil, voice : Tourmaline::Voice? = nil, caption : String? = nil, caption_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, has_media_spoiler : Bool? = nil, contact : Tourmaline::Contact? = nil, dice : Tourmaline::Dice? = nil, game : Tourmaline::Game? = nil, poll : Tourmaline::Poll? = nil, venue : Tourmaline::Venue? = nil, location : Tourmaline::Location? = nil, new_chat_members : Array(Tourmaline::User) = [] of Tourmaline::User, left_chat_member : Tourmaline::User? = nil, new_chat_title : String? = nil, new_chat_photo : Array(Tourmaline::PhotoSize) = [] of Tourmaline::PhotoSize, delete_chat_photo : Bool? = nil, group_chat_created : Bool? = nil, supergroup_chat_created : Bool? = nil, channel_chat_created : Bool? = nil, message_auto_delete_timer_changed : Tourmaline::MessageAutoDeleteTimerChanged? = nil, migrate_to_chat_id : Int32 | Int64 | Nil = nil, migrate_from_chat_id : Int32 | Int64 | Nil = nil, pinned_message : Tourmaline::MaybeInaccessibleMessage? = nil, invoice : Tourmaline::Invoice? = nil, successful_payment : Tourmaline::SuccessfulPayment? = nil, users_shared : Tourmaline::UsersShared? = nil, chat_shared : Tourmaline::ChatShared? = nil, connected_website : String? = nil, write_access_allowed : Tourmaline::WriteAccessAllowed? = nil, passport_data : Tourmaline::PassportData? = nil, proximity_alert_triggered : Tourmaline::ProximityAlertTriggered? = nil, boost_added : Tourmaline::ChatBoostAdded? = nil, chat_background_set : Tourmaline::ChatBackground? = nil, forum_topic_created : Tourmaline::ForumTopicCreated? = nil, forum_topic_edited : Tourmaline::ForumTopicEdited? = nil, forum_topic_closed : Tourmaline::ForumTopicClosed? = nil, forum_topic_reopened : Tourmaline::ForumTopicReopened? = nil, general_forum_topic_hidden : Tourmaline::GeneralForumTopicHidden? = nil, general_forum_topic_unhidden : Tourmaline::GeneralForumTopicUnhidden? = nil, giveaway_created : Tourmaline::GiveawayCreated? = nil, giveaway : Tourmaline::Giveaway? = nil, giveaway_winners : Tourmaline::GiveawayWinners? = nil, giveaway_completed : Tourmaline::GiveawayCompleted? = nil, video_chat_scheduled : Tourmaline::VideoChatScheduled? = nil, video_chat_started : Tourmaline::VideoChatStarted? = nil, video_chat_ended : Tourmaline::VideoChatEnded? = nil, video_chat_participants_invited : Tourmaline::VideoChatParticipantsInvited? = nil, web_app_data : Tourmaline::WebAppData? = nil, reply_markup : Tourmaline::InlineKeyboardMarkup? = nil)
#
(message_id, date, chat, message_thread_id : Int32 | Int64 | Nil = nil, from : Tourmaline::User? = nil, sender_chat : Tourmaline::Chat? = nil, sender_boost_count : Int32 | Int64 | Nil = nil, sender_business_bot : Tourmaline::User? = nil, business_connection_id : String? = nil, forward_origin : Tourmaline::MessageOrigin? = nil, is_topic_message : Bool? = nil, is_automatic_forward : Bool? = nil, reply_to_message : Tourmaline::Message? = nil, external_reply : Tourmaline::ExternalReplyInfo? = nil, quote : Tourmaline::TextQuote? = nil, reply_to_story : Tourmaline::Story? = nil, via_bot : Tourmaline::User? = nil, edit_date : Int32 | Int64 | Nil = nil, has_protected_content : Bool? = nil, is_from_offline : Bool? = nil, media_group_id : String? = nil, author_signature : String? = nil, text : String? = nil, entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, link_preview_options : Tourmaline::LinkPreviewOptions? = nil, animation : Tourmaline::Animation? = nil, audio : Tourmaline::Audio? = nil, document : Tourmaline::Document? = nil, photo : Array(Tourmaline::PhotoSize) = [] of Tourmaline::PhotoSize, sticker : Tourmaline::Sticker? = nil, story : Tourmaline::Story? = nil, video : Tourmaline::Video? = nil, video_note : Tourmaline::VideoNote? = nil, voice : Tourmaline::Voice? = nil, caption : String? = nil, caption_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, has_media_spoiler : Bool? = nil, contact : Tourmaline::Contact? = nil, dice : Tourmaline::Dice? = nil, game : Tourmaline::Game? = nil, poll : Tourmaline::Poll? = nil, venue : Tourmaline::Venue? = nil, location : Tourmaline::Location? = nil, new_chat_members : Array(Tourmaline::User) = [] of Tourmaline::User, left_chat_member : Tourmaline::User? = nil, new_chat_title : String? = nil, new_chat_photo : Array(Tourmaline::PhotoSize) = [] of Tourmaline::PhotoSize, delete_chat_photo : Bool? = nil, group_chat_created : Bool? = nil, supergroup_chat_created : Bool? = nil, channel_chat_created : Bool? = nil, message_auto_delete_timer_changed : Tourmaline::MessageAutoDeleteTimerChanged? = nil, migrate_to_chat_id : Int32 | Int64 | Nil = nil, migrate_from_chat_id : Int32 | Int64 | Nil = nil, pinned_message : Tourmaline::MaybeInaccessibleMessage? = nil, invoice : Tourmaline::Invoice? = nil, successful_payment : Tourmaline::SuccessfulPayment? = nil, users_shared : Tourmaline::UsersShared? = nil, chat_shared : Tourmaline::ChatShared? = nil, connected_website : String? = nil, write_access_allowed : Tourmaline::WriteAccessAllowed? = nil, passport_data : Tourmaline::PassportData? = nil, proximity_alert_triggered : Tourmaline::ProximityAlertTriggered? = nil, boost_added : Tourmaline::ChatBoostAdded? = nil, chat_background_set : Tourmaline::ChatBackground? = nil, forum_topic_created : Tourmaline::ForumTopicCreated? = nil, forum_topic_edited : Tourmaline::ForumTopicEdited? = nil, forum_topic_closed : Tourmaline::ForumTopicClosed? = nil, forum_topic_reopened : Tourmaline::ForumTopicReopened? = nil, general_forum_topic_hidden : Tourmaline::GeneralForumTopicHidden? = nil, general_forum_topic_unhidden : Tourmaline::GeneralForumTopicUnhidden? = nil, giveaway_created : Tourmaline::GiveawayCreated? = nil, giveaway : Tourmaline::Giveaway? = nil, giveaway_winners : Tourmaline::GiveawayWinners? = nil, giveaway_completed : Tourmaline::GiveawayCompleted? = nil, video_chat_scheduled : Tourmaline::VideoChatScheduled? = nil, video_chat_started : Tourmaline::VideoChatStarted? = nil, video_chat_ended : Tourmaline::VideoChatEnded? = nil, video_chat_participants_invited : Tourmaline::VideoChatParticipantsInvited? = nil, web_app_data : Tourmaline::WebAppData? = nil, reply_markup : Tourmaline::InlineKeyboardMarkup? = nil)
Methods#
#animation : Tourmaline::Animation?
#
: Tourmaline::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
#animation=(animation : Tourmaline::Animation?)
#
(animation : Tourmaline::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
#audio : Tourmaline::Audio?
#
: Tourmaline::Audio?
Optional. Message is an audio file, information about the file
#audio=(audio : Tourmaline::Audio?)
#
(audio : Tourmaline::Audio?)
Optional. Message is an audio file, information about the file
#author_signature : String?
#
: String?
Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator
#author_signature=(author_signature : String?)
#
(author_signature : String?)
Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator
#boost_added : Tourmaline::ChatBoostAdded?
#
: Tourmaline::ChatBoostAdded?
Optional. Service message: user boosted the chat
#boost_added=(boost_added : Tourmaline::ChatBoostAdded?)
#
(boost_added : Tourmaline::ChatBoostAdded?)
Optional. Service message: user boosted the chat
#business_connection_id : String?
#
: String?
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.
#business_connection_id=(business_connection_id : String?)
#
(business_connection_id : String?)
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.
#caption : String?
#
: String?
Optional. Caption for the animation, audio, document, photo, video or voice
#caption=(caption : String?)
#
(caption : String?)
Optional. Caption for the animation, audio, document, photo, video or voice
#caption_entities : Array(Tourmaline::MessageEntity)
#
: Array(Tourmaline::MessageEntity)
Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption
#caption_entities=(caption_entities : Array(Tourmaline::MessageEntity))
#
(caption_entities : Array(Tourmaline::MessageEntity))
Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption
#channel_chat_created=(channel_chat_created : Bool?)
#
(channel_chat_created : Bool?)
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.
#channel_chat_created? : Bool?
#
: Bool?
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.
#chat_background_set : Tourmaline::ChatBackground?
#
: Tourmaline::ChatBackground?
Optional. Service message: chat background set
#chat_background_set=(chat_background_set : Tourmaline::ChatBackground?)
#
(chat_background_set : Tourmaline::ChatBackground?)
Optional. Service message: chat background set
#chat_shared : Tourmaline::ChatShared?
#
: Tourmaline::ChatShared?
Optional. Service message: a chat was shared with the bot
#chat_shared=(chat_shared : Tourmaline::ChatShared?)
#
(chat_shared : Tourmaline::ChatShared?)
Optional. Service message: a chat was shared with the bot
#connected_website : String?
#
: String?
Optional. The domain name of the website on which the user has logged in. More about Telegram Login: https://core.telegram.org/widgets/login
#connected_website=(connected_website : String?)
#
(connected_website : String?)
Optional. The domain name of the website on which the user has logged in. More about Telegram Login: https://core.telegram.org/widgets/login
#contact : Tourmaline::Contact?
#
: Tourmaline::Contact?
Optional. Message is a shared contact, information about the contact
#contact=(contact : Tourmaline::Contact?)
#
(contact : Tourmaline::Contact?)
Optional. Message is a shared contact, information about the contact
#delete_chat_photo=(delete_chat_photo : Bool?)
#
(delete_chat_photo : Bool?)
Optional. Service message: the chat photo was deleted
#document : Tourmaline::Document?
#
: Tourmaline::Document?
Optional. Message is a general file, information about the file
#document=(document : Tourmaline::Document?)
#
(document : Tourmaline::Document?)
Optional. Message is a general file, information about the file
#entities : Array(Tourmaline::MessageEntity)
#
: Array(Tourmaline::MessageEntity)
Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
#entities=(entities : Array(Tourmaline::MessageEntity))
#
(entities : Array(Tourmaline::MessageEntity))
Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
#external_reply : Tourmaline::ExternalReplyInfo?
#
: Tourmaline::ExternalReplyInfo?
Optional. Information about the message that is being replied to, which may come from another chat or forum topic
#external_reply=(external_reply : Tourmaline::ExternalReplyInfo?)
#
(external_reply : Tourmaline::ExternalReplyInfo?)
Optional. Information about the message that is being replied to, which may come from another chat or forum topic
#forum_topic_closed : Tourmaline::ForumTopicClosed?
#
: Tourmaline::ForumTopicClosed?
Optional. Service message: forum topic closed
#forum_topic_closed=(forum_topic_closed : Tourmaline::ForumTopicClosed?)
#
(forum_topic_closed : Tourmaline::ForumTopicClosed?)
Optional. Service message: forum topic closed
#forum_topic_created : Tourmaline::ForumTopicCreated?
#
: Tourmaline::ForumTopicCreated?
Optional. Service message: forum topic created
#forum_topic_created=(forum_topic_created : Tourmaline::ForumTopicCreated?)
#
(forum_topic_created : Tourmaline::ForumTopicCreated?)
Optional. Service message: forum topic created
#forum_topic_edited : Tourmaline::ForumTopicEdited?
#
: Tourmaline::ForumTopicEdited?
Optional. Service message: forum topic edited
#forum_topic_edited=(forum_topic_edited : Tourmaline::ForumTopicEdited?)
#
(forum_topic_edited : Tourmaline::ForumTopicEdited?)
Optional. Service message: forum topic edited
#forum_topic_reopened : Tourmaline::ForumTopicReopened?
#
: Tourmaline::ForumTopicReopened?
Optional. Service message: forum topic reopened
#forum_topic_reopened=(forum_topic_reopened : Tourmaline::ForumTopicReopened?)
#
(forum_topic_reopened : Tourmaline::ForumTopicReopened?)
Optional. Service message: forum topic reopened
#forward_origin : Tourmaline::MessageOrigin?
#
: Tourmaline::MessageOrigin?
Optional. Information about the original message for forwarded messages
#forward_origin=(forward_origin : Tourmaline::MessageOrigin?)
#
(forward_origin : Tourmaline::MessageOrigin?)
Optional. Information about the original message for forwarded messages
#from : Tourmaline::User?
#
: Tourmaline::User?
Optional. Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.
#from=(from : Tourmaline::User?)
#
(from : Tourmaline::User?)
Optional. Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.
#game : Tourmaline::Game?
#
: Tourmaline::Game?
Optional. Message is a game, information about the game. More about games: https://core.telegram.org/bots/api#games
#game=(game : Tourmaline::Game?)
#
(game : Tourmaline::Game?)
Optional. Message is a game, information about the game. More about games: https://core.telegram.org/bots/api#games
#general_forum_topic_hidden : Tourmaline::GeneralForumTopicHidden?
#
: Tourmaline::GeneralForumTopicHidden?
Optional. Service message: the 'General' forum topic hidden
#general_forum_topic_hidden=(general_forum_topic_hidden : Tourmaline::GeneralForumTopicHidden?)
#
(general_forum_topic_hidden : Tourmaline::GeneralForumTopicHidden?)
Optional. Service message: the 'General' forum topic hidden
#general_forum_topic_unhidden : Tourmaline::GeneralForumTopicUnhidden?
#
: Tourmaline::GeneralForumTopicUnhidden?
Optional. Service message: the 'General' forum topic unhidden
#general_forum_topic_unhidden=(general_forum_topic_unhidden : Tourmaline::GeneralForumTopicUnhidden?)
#
(general_forum_topic_unhidden : Tourmaline::GeneralForumTopicUnhidden?)
Optional. Service message: the 'General' forum topic unhidden
#giveaway : Tourmaline::Giveaway?
#
: Tourmaline::Giveaway?
Optional. The message is a scheduled giveaway message
#giveaway=(giveaway : Tourmaline::Giveaway?)
#
(giveaway : Tourmaline::Giveaway?)
Optional. The message is a scheduled giveaway message
#giveaway_completed : Tourmaline::GiveawayCompleted?
#
: Tourmaline::GiveawayCompleted?
Optional. Service message: a giveaway without public winners was completed
#giveaway_completed=(giveaway_completed : Tourmaline::GiveawayCompleted?)
#
(giveaway_completed : Tourmaline::GiveawayCompleted?)
Optional. Service message: a giveaway without public winners was completed
#giveaway_created : Tourmaline::GiveawayCreated?
#
: Tourmaline::GiveawayCreated?
Optional. Service message: a scheduled giveaway was created
#giveaway_created=(giveaway_created : Tourmaline::GiveawayCreated?)
#
(giveaway_created : Tourmaline::GiveawayCreated?)
Optional. Service message: a scheduled giveaway was created
#giveaway_winners : Tourmaline::GiveawayWinners?
#
: Tourmaline::GiveawayWinners?
Optional. A giveaway with public winners was completed
#giveaway_winners=(giveaway_winners : Tourmaline::GiveawayWinners?)
#
(giveaway_winners : Tourmaline::GiveawayWinners?)
Optional. A giveaway with public winners was completed
#group_chat_created=(group_chat_created : Bool?)
#
(group_chat_created : Bool?)
Optional. Service message: the group has been created
#has_media_spoiler=(has_media_spoiler : Bool?)
#
(has_media_spoiler : Bool?)
Optional. True, if the message media is covered by a spoiler animation
#has_media_spoiler? : Bool?
#
: Bool?
Optional. True, if the message media is covered by a spoiler animation
#has_protected_content=(has_protected_content : Bool?)
#
(has_protected_content : Bool?)
Optional. True, if the message can't be forwarded
#invoice : Tourmaline::Invoice?
#
: Tourmaline::Invoice?
Optional. Message is an invoice for a payment, information about the invoice. More about payments: https://core.telegram.org/bots/api#payments
#invoice=(invoice : Tourmaline::Invoice?)
#
(invoice : Tourmaline::Invoice?)
Optional. Message is an invoice for a payment, information about the invoice. More about payments: https://core.telegram.org/bots/api#payments
#is_automatic_forward=(is_automatic_forward : Bool?)
#
(is_automatic_forward : Bool?)
Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group
#is_automatic_forward? : Bool?
#
: Bool?
Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group
#is_from_offline=(is_from_offline : Bool?)
#
(is_from_offline : Bool?)
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
#is_from_offline? : Bool?
#
: Bool?
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
#is_topic_message=(is_topic_message : Bool?)
#
(is_topic_message : Bool?)
Optional. True, if the message is sent to a forum topic
#left_chat_member : Tourmaline::User?
#
: Tourmaline::User?
Optional. A member was removed from the group, information about them (this member may be the bot itself)
#left_chat_member=(left_chat_member : Tourmaline::User?)
#
(left_chat_member : Tourmaline::User?)
Optional. A member was removed from the group, information about them (this member may be the bot itself)
#link_preview_options : Tourmaline::LinkPreviewOptions?
#
: Tourmaline::LinkPreviewOptions?
Optional. Options used for link preview generation for the message, if it is a text message and link preview options were changed
#link_preview_options=(link_preview_options : Tourmaline::LinkPreviewOptions?)
#
(link_preview_options : Tourmaline::LinkPreviewOptions?)
Optional. Options used for link preview generation for the message, if it is a text message and link preview options were changed
#location : Tourmaline::Location?
#
: Tourmaline::Location?
Optional. Message is a shared location, information about the location
#location=(location : Tourmaline::Location?)
#
(location : Tourmaline::Location?)
Optional. Message is a shared location, information about the location
#media_group_id : String?
#
: String?
Optional. The unique identifier of a media message group this message belongs to
#media_group_id=(media_group_id : String?)
#
(media_group_id : String?)
Optional. The unique identifier of a media message group this message belongs to
#message_auto_delete_timer_changed : Tourmaline::MessageAutoDeleteTimerChanged?
#
: Tourmaline::MessageAutoDeleteTimerChanged?
Optional. Service message: auto-delete timer settings changed in the chat
#message_auto_delete_timer_changed=(message_auto_delete_timer_changed : Tourmaline::MessageAutoDeleteTimerChanged?)
#
(message_auto_delete_timer_changed : Tourmaline::MessageAutoDeleteTimerChanged?)
Optional. Service message: auto-delete timer settings changed in the chat
#message_thread_id : Int32 | Int64 | Nil
#
: Int32 | Int64 | Nil
Optional. Unique identifier of a message thread to which the message belongs; for supergroups only
#message_thread_id=(message_thread_id : Int32 | Int64 | Nil)
#
(message_thread_id : Int32 | Int64 | Nil)
Optional. Unique identifier of a message thread to which the message belongs; for supergroups only
#migrate_from_chat_id : Int32 | Int64 | Nil
#
: 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.
#migrate_from_chat_id=(migrate_from_chat_id : Int32 | Int64 | Nil)
#
(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.
#migrate_to_chat_id : Int32 | Int64 | Nil
#
: 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.
#migrate_to_chat_id=(migrate_to_chat_id : Int32 | Int64 | Nil)
#
(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.
#new_chat_members : Array(Tourmaline::User)
#
: 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)
#new_chat_members=(new_chat_members : Array(Tourmaline::User))
#
(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)
#new_chat_photo : Array(Tourmaline::PhotoSize)
#
: Array(Tourmaline::PhotoSize)
Optional. A chat photo was change to this value
#new_chat_photo=(new_chat_photo : Array(Tourmaline::PhotoSize))
#
(new_chat_photo : Array(Tourmaline::PhotoSize))
Optional. A chat photo was change to this value
#new_chat_title=(new_chat_title : String?)
#
(new_chat_title : String?)
Optional. A chat title was changed to this value
#passport_data=(passport_data : Tourmaline::PassportData?)
#
(passport_data : Tourmaline::PassportData?)
Optional. Telegram Passport data
#photo : Array(Tourmaline::PhotoSize)
#
: Array(Tourmaline::PhotoSize)
Optional. Message is a photo, available sizes of the photo
#photo=(photo : Array(Tourmaline::PhotoSize))
#
(photo : Array(Tourmaline::PhotoSize))
Optional. Message is a photo, available sizes of the photo
#pinned_message : Tourmaline::MaybeInaccessibleMessage?
#
: Tourmaline::MaybeInaccessibleMessage?
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.
#pinned_message=(pinned_message : Tourmaline::MaybeInaccessibleMessage?)
#
(pinned_message : Tourmaline::MaybeInaccessibleMessage?)
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.
#poll : Tourmaline::Poll?
#
: Tourmaline::Poll?
Optional. Message is a native poll, information about the poll
#poll=(poll : Tourmaline::Poll?)
#
(poll : Tourmaline::Poll?)
Optional. Message is a native poll, information about the poll
#proximity_alert_triggered : Tourmaline::ProximityAlertTriggered?
#
: Tourmaline::ProximityAlertTriggered?
Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.
#proximity_alert_triggered=(proximity_alert_triggered : Tourmaline::ProximityAlertTriggered?)
#
(proximity_alert_triggered : Tourmaline::ProximityAlertTriggered?)
Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.
#quote : Tourmaline::TextQuote?
#
: Tourmaline::TextQuote?
Optional. For replies that quote part of the original message, the quoted part of the message
#quote=(quote : Tourmaline::TextQuote?)
#
(quote : Tourmaline::TextQuote?)
Optional. For replies that quote part of the original message, the quoted part of the message
#reply_markup : Tourmaline::InlineKeyboardMarkup?
#
: Tourmaline::InlineKeyboardMarkup?
Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.
#reply_markup=(reply_markup : Tourmaline::InlineKeyboardMarkup?)
#
(reply_markup : Tourmaline::InlineKeyboardMarkup?)
Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.
#reply_to_message : Tourmaline::Message?
#
: Tourmaline::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.
#reply_to_message=(reply_to_message : Tourmaline::Message?)
#
(reply_to_message : Tourmaline::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.
#reply_to_story : Tourmaline::Story?
#
: Tourmaline::Story?
Optional. For replies to a story, the original story
#reply_to_story=(reply_to_story : Tourmaline::Story?)
#
(reply_to_story : Tourmaline::Story?)
Optional. For replies to a story, the original story
#sender_boost_count : Int32 | Int64 | Nil
#
: Int32 | Int64 | Nil
Optional. If the sender of the message boosted the chat, the number of boosts added by the user
#sender_boost_count=(sender_boost_count : Int32 | Int64 | Nil)
#
(sender_boost_count : Int32 | Int64 | Nil)
Optional. If the sender of the message boosted the chat, the number of boosts added by the user
#sender_business_bot : Tourmaline::User?
#
: Tourmaline::User?
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.
#sender_business_bot=(sender_business_bot : Tourmaline::User?)
#
(sender_business_bot : Tourmaline::User?)
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.
#sender_chat : Tourmaline::Chat?
#
: Tourmaline::Chat?
Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.
#sender_chat=(sender_chat : Tourmaline::Chat?)
#
(sender_chat : Tourmaline::Chat?)
Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.
#sticker : Tourmaline::Sticker?
#
: Tourmaline::Sticker?
Optional. Message is a sticker, information about the sticker
#sticker=(sticker : Tourmaline::Sticker?)
#
(sticker : Tourmaline::Sticker?)
Optional. Message is a sticker, information about the sticker
#successful_payment : Tourmaline::SuccessfulPayment?
#
: Tourmaline::SuccessfulPayment?
Optional. Message is a service message about a successful payment, information about the payment. More about payments: https://core.telegram.org/bots/api#payments
#successful_payment=(successful_payment : Tourmaline::SuccessfulPayment?)
#
(successful_payment : Tourmaline::SuccessfulPayment?)
Optional. Message is a service message about a successful payment, information about the payment. More about payments: https://core.telegram.org/bots/api#payments
#supergroup_chat_created=(supergroup_chat_created : Bool?)
#
(supergroup_chat_created : Bool?)
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.
#supergroup_chat_created? : Bool?
#
: Bool?
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.
#text=(text : String?)
#
(text : String?)
Optional. For text messages, the actual UTF-8 text of the message
#users_shared : Tourmaline::UsersShared?
#
: Tourmaline::UsersShared?
Optional. Service message: users were shared with the bot
#users_shared=(users_shared : Tourmaline::UsersShared?)
#
(users_shared : Tourmaline::UsersShared?)
Optional. Service message: users were shared with the bot
#venue : Tourmaline::Venue?
#
: Tourmaline::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
#venue=(venue : Tourmaline::Venue?)
#
(venue : Tourmaline::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
#via_bot=(via_bot : Tourmaline::User?)
#
(via_bot : Tourmaline::User?)
Optional. Bot through which the message was sent
#video=(video : Tourmaline::Video?)
#
(video : Tourmaline::Video?)
Optional. Message is a video, information about the video
#video_chat_ended : Tourmaline::VideoChatEnded?
#
: Tourmaline::VideoChatEnded?
Optional. Service message: video chat ended
#video_chat_ended=(video_chat_ended : Tourmaline::VideoChatEnded?)
#
(video_chat_ended : Tourmaline::VideoChatEnded?)
Optional. Service message: video chat ended
#video_chat_participants_invited : Tourmaline::VideoChatParticipantsInvited?
#
: Tourmaline::VideoChatParticipantsInvited?
Optional. Service message: new participants invited to a video chat
#video_chat_participants_invited=(video_chat_participants_invited : Tourmaline::VideoChatParticipantsInvited?)
#
(video_chat_participants_invited : Tourmaline::VideoChatParticipantsInvited?)
Optional. Service message: new participants invited to a video chat
#video_chat_scheduled : Tourmaline::VideoChatScheduled?
#
: Tourmaline::VideoChatScheduled?
Optional. Service message: video chat scheduled
#video_chat_scheduled=(video_chat_scheduled : Tourmaline::VideoChatScheduled?)
#
(video_chat_scheduled : Tourmaline::VideoChatScheduled?)
Optional. Service message: video chat scheduled
#video_chat_started : Tourmaline::VideoChatStarted?
#
: Tourmaline::VideoChatStarted?
Optional. Service message: video chat started
#video_chat_started=(video_chat_started : Tourmaline::VideoChatStarted?)
#
(video_chat_started : Tourmaline::VideoChatStarted?)
Optional. Service message: video chat started
#video_note : Tourmaline::VideoNote?
#
: Tourmaline::VideoNote?
Optional. Message is a video note, information about the video message
#video_note=(video_note : Tourmaline::VideoNote?)
#
(video_note : Tourmaline::VideoNote?)
Optional. Message is a video note, information about the video message
#voice : Tourmaline::Voice?
#
: Tourmaline::Voice?
Optional. Message is a voice message, information about the file
#voice=(voice : Tourmaline::Voice?)
#
(voice : Tourmaline::Voice?)
Optional. Message is a voice message, information about the file
#web_app_data : Tourmaline::WebAppData?
#
: Tourmaline::WebAppData?
Optional. Service message: data sent by a Web App
#web_app_data=(web_app_data : Tourmaline::WebAppData?)
#
(web_app_data : Tourmaline::WebAppData?)
Optional. Service message: data sent by a Web App
#write_access_allowed : Tourmaline::WriteAccessAllowed?
#
: Tourmaline::WriteAccessAllowed?
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
#write_access_allowed=(write_access_allowed : Tourmaline::WriteAccessAllowed?)
#
(write_access_allowed : Tourmaline::WriteAccessAllowed?)
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