class
Hamilton::Types::Message
- Hamilton::Types::Message
- Reference
- Object
Overview
This object represents a message.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/message.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#animation : Hamilton::Types::Animation | Nil
Message is an animation, information about the animation.
-
#animation=(animation : Hamilton::Types::Animation | Nil)
Message is an animation, information about the animation.
-
#audio : Hamilton::Types::Audio | Nil
Message is an audio file, information about the file.
-
#audio=(audio : Hamilton::Types::Audio | Nil)
Message is an audio file, information about the file.
-
#author_signature : String | Nil
Signature of the post author for messages in channels, or the custom title of an anonymous group administrator.
-
#author_signature=(author_signature : String | Nil)
Signature of the post author for messages in channels, or the custom title of an anonymous group administrator.
-
#boost_added : Hamilton::Types::ChatBoostAdded | Nil
Service message: user boosted the chat.
-
#boost_added=(boost_added : Hamilton::Types::ChatBoostAdded | Nil)
Service message: user boosted the chat.
-
#business_connection_id : String | Nil
Unique identifier of the business connection from which the message was received.
-
#business_connection_id=(business_connection_id : String | Nil)
Unique identifier of the business connection from which the message was received.
-
#caption : String | Nil
Caption for the animation, audio, document, paid media, photo, video or voice.
-
#caption=(caption : String | Nil)
Caption for the animation, audio, document, paid media, photo, video or voice.
-
#caption_entities : Array(MessageEntity) | Nil
For messages with a caption, special entities like usernames, URLs, bot commands, etc.
-
#caption_entities=(caption_entities : Array(MessageEntity) | Nil)
For messages with a caption, special entities like usernames, URLs, bot commands, etc.
-
#channel_chat_created : Bool | Nil
Service message: the channel has been created.
-
#channel_chat_created=(channel_chat_created : Bool | Nil)
Service message: the channel has been created.
-
#chat : Hamilton::Types::Chat
Chat the message belongs to.
-
#chat=(chat : Hamilton::Types::Chat)
Chat the message belongs to.
-
#chat_background_set : Hamilton::Types::ChatBackground | Nil
Service message: chat background set.
-
#chat_background_set=(chat_background_set : Hamilton::Types::ChatBackground | Nil)
Service message: chat background set.
-
#chat_shared : Hamilton::Types::ChatShared | Nil
Service message: a chat was shared with the bot.
-
#chat_shared=(chat_shared : Hamilton::Types::ChatShared | Nil)
Service message: a chat was shared with the bot.
-
#checklist : Hamilton::Types::Checklist | Nil
Message is a checklist.
-
#checklist=(checklist : Hamilton::Types::Checklist | Nil)
Message is a checklist.
-
#checklist_tasks_added : Hamilton::Types::ChecklistTasksAdded | Nil
Service message: tasks were added to a checklist.
-
#checklist_tasks_added=(checklist_tasks_added : Hamilton::Types::ChecklistTasksAdded | Nil)
Service message: tasks were added to a checklist.
-
#checklist_tasks_done : Hamilton::Types::ChecklistTasksDone | Nil
Service message: some tasks in a checklist were marked as done or not done.
-
#checklist_tasks_done=(checklist_tasks_done : Hamilton::Types::ChecklistTasksDone | Nil)
Service message: some tasks in a checklist were marked as done or not done.
-
#contact : Hamilton::Types::Contact | Nil
Message is a shared contact, information about the contact.
-
#contact=(contact : Hamilton::Types::Contact | Nil)
Message is a shared contact, information about the contact.
-
#date : Int32
Date the message was sent in Unix time.
-
#date=(date : Int32)
Date the message was sent in Unix time.
-
#delete_chat_photo : Bool | Nil
Service message: the chat photo was deleted.
-
#delete_chat_photo=(delete_chat_photo : Bool | Nil)
Service message: the chat photo was deleted.
-
#dice : Hamilton::Types::Dice | Nil
Message is a dice with random value.
-
#dice=(dice : Hamilton::Types::Dice | Nil)
Message is a dice with random value.
-
#direct_message_price_changed : Hamilton::Types::DirectMessagePriceChanged | Nil
Service message: the price for paid messages in the corresponding direct messages chat of a channel has changed.
-
#direct_message_price_changed=(direct_message_price_changed : Hamilton::Types::DirectMessagePriceChanged | Nil)
Service message: the price for paid messages in the corresponding direct messages chat of a channel has changed.
-
#direct_messages_topic : Hamilton::Types::DirectMessagesTopic | Nil
Information about the direct messages chat topic that contains the message.
-
#direct_messages_topic=(direct_messages_topic : Hamilton::Types::DirectMessagesTopic | Nil)
Information about the direct messages chat topic that contains the message.
-
#document : Hamilton::Types::Document | Nil
Message is a general file, information about the file.
-
#document=(document : Hamilton::Types::Document | Nil)
Message is a general file, information about the file.
-
#edit_date : Int32 | Nil
Date the message was last edited in Unix time.
-
#edit_date=(edit_date : Int32 | Nil)
Date the message was last edited in Unix time.
-
#effect_id : String | Nil
Unique identifier of the message effect added to the message.
-
#effect_id=(effect_id : String | Nil)
Unique identifier of the message effect added to the message.
-
#entities : Array(Hamilton::Types::MessageEntity) | Nil
For text messages, special entities like usernames, URLs, bot commands, etc.
-
#entities=(entities : Array(Hamilton::Types::MessageEntity) | Nil)
For text messages, special entities like usernames, URLs, bot commands, etc.
-
#external_reply : Hamilton::Types::ExternalReplyInfo | Nil
Information about the message that is being replied to, which may come from another chat or forum topic.
-
#external_reply=(external_reply : Hamilton::Types::ExternalReplyInfo | Nil)
Information about the message that is being replied to, which may come from another chat or forum topic.
-
#forum_topic_closed : Hamilton::Types::ForumTopicClosed | Nil
Service message: forum topic closed.
-
#forum_topic_closed=(forum_topic_closed : Hamilton::Types::ForumTopicClosed | Nil)
Service message: forum topic closed.
-
#forum_topic_created : Hamilton::Types::ForumTopicCreated | Nil
Service message: forum topic created.
-
#forum_topic_created=(forum_topic_created : Hamilton::Types::ForumTopicCreated | Nil)
Service message: forum topic created.
-
#forum_topic_edited : Hamilton::Types::ForumTopicEdited | Nil
Service message: forum topic edited.
-
#forum_topic_edited=(forum_topic_edited : Hamilton::Types::ForumTopicEdited | Nil)
Service message: forum topic edited.
-
#forum_topic_reopened : Hamilton::Types::ForumTopicReopened | Nil
Service message: forum topic reopened.
-
#forum_topic_reopened=(forum_topic_reopened : Hamilton::Types::ForumTopicReopened | Nil)
Service message: forum topic reopened.
-
#forward_origin : Hamilton::Types::MessageOrigin | Nil
Information about the original message for forwarded messages.
-
#forward_origin=(forward_origin : Hamilton::Types::MessageOrigin | Nil)
Information about the original message for forwarded messages.
-
#from : Hamilton::Types::User | Nil
Sender of the message; may be empty for messages sent to channels.
-
#from=(from : Hamilton::Types::User | Nil)
Sender of the message; may be empty for messages sent to channels.
-
#game : Hamilton::Types::Game | Nil
Message is a game, information about the game.
-
#game=(game : Hamilton::Types::Game | Nil)
Message is a game, information about the game.
-
#general_forum_topic_hidden : Hamilton::Types::GeneralForumTopicHidden | Nil
Service message: the 'General' forum topic hidden.
-
#general_forum_topic_hidden=(general_forum_topic_hidden : Hamilton::Types::GeneralForumTopicHidden | Nil)
Service message: the 'General' forum topic hidden.
-
#general_forum_topic_unhidden : Hamilton::Types::GeneralForumTopicUnhidden | Nil
Service message: the 'General' forum topic unhidden.
-
#general_forum_topic_unhidden=(general_forum_topic_unhidden : Hamilton::Types::GeneralForumTopicUnhidden | Nil)
Service message: the 'General' forum topic unhidden.
-
#gift : Hamilton::Types::GiftInfo | Nil
Service message: a regular gift was sent or received.
-
#gift=(gift : Hamilton::Types::GiftInfo | Nil)
Service message: a regular gift was sent or received.
-
#giveaway : Hamilton::Types::Giveaway | Nil
The message is a scheduled giveaway message.
-
#giveaway=(giveaway : Hamilton::Types::Giveaway | Nil)
The message is a scheduled giveaway message.
-
#giveaway_completed : Hamilton::Types::GiveawayCompleted | Nil
Service message: a giveaway without public winners was completed.
-
#giveaway_completed=(giveaway_completed : Hamilton::Types::GiveawayCompleted | Nil)
Service message: a giveaway without public winners was completed.
-
#giveaway_created : Hamilton::Types::GiveawayCreated | Nil
Service message: a scheduled giveaway was created.
-
#giveaway_created=(giveaway_created : Hamilton::Types::GiveawayCreated | Nil)
Service message: a scheduled giveaway was created.
-
#giveaway_winners : Hamilton::Types::GiveawayWinners | Nil
A giveaway with public winners was completed.
-
#giveaway_winners=(giveaway_winners : Hamilton::Types::GiveawayWinners | Nil)
A giveaway with public winners was completed.
-
#group_chat_created : Bool | Nil
Service message: the group has been created.
-
#group_chat_created=(group_chat_created : Bool | Nil)
Service message: the group has been created.
-
#has_media_spoiler : Bool | Nil
True, if the message media is covered by a spoiler animation.
-
#has_media_spoiler=(has_media_spoiler : Bool | Nil)
True, if the message media is covered by a spoiler animation.
-
#has_protected_content : Bool | Nil
True, if the message can't be forwarded.
-
#has_protected_content=(has_protected_content : Bool | Nil)
True, if the message can't be forwarded.
-
#invoice : Hamilton::Types::Invoice | Nil
Message is an invoice for a payment, information about the invoice.
-
#invoice=(invoice : Hamilton::Types::Invoice | Nil)
Message is an invoice for a payment, information about the invoice.
-
#is_automatic_forward : Bool | Nil
True, if the message is a channel post that was automatically forwarded to the connected discussion group.
-
#is_automatic_forward=(is_automatic_forward : Bool | Nil)
True, if the message is a channel post that was automatically forwarded to the connected discussion group.
-
#is_from_offline : Bool | Nil
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=(is_from_offline : Bool | Nil)
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_paid_post : Bool | Nil
True, if the message is a paid post.
-
#is_paid_post=(is_paid_post : Bool | Nil)
True, if the message is a paid post.
-
#is_topic_message : Bool | Nil
True, if the message is sent to a forum topic.
-
#is_topic_message=(is_topic_message : Bool | Nil)
True, if the message is sent to a forum topic.
-
#left_chat_member : Hamilton::Types::User | Nil
A member was removed from the group, information about them (this member may be the bot itself).
-
#left_chat_member=(left_chat_member : Hamilton::Types::User | Nil)
A member was removed from the group, information about them (this member may be the bot itself).
-
#link_preview_options : Hamilton::Types::LinkPreviewOptions | Nil
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 : Hamilton::Types::LinkPreviewOptions | Nil)
Options used for link preview generation for the message, if it is a text message and link preview options were changed.
-
#location : Hamilton::Types::Location | Nil
Message is a shared location, information about the location.
-
#location=(location : Hamilton::Types::Location | Nil)
Message is a shared location, information about the location.
-
#media_group_id : String | Nil
The unique identifier of a media message group this message belongs to.
-
#media_group_id=(media_group_id : String | Nil)
The unique identifier of a media message group this message belongs to.
-
#message_auto_delete_timer_changed : Hamilton::Types::MessageAutoDeleteTimerChanged | Nil
Service message: auto-delete timer settings changed in the chat.
-
#message_auto_delete_timer_changed=(message_auto_delete_timer_changed : Hamilton::Types::MessageAutoDeleteTimerChanged | Nil)
Service message: auto-delete timer settings changed in the chat.
-
#message_id : Int32
Unique message identifier inside this chat.
-
#message_id=(message_id : Int32)
Unique message identifier inside this chat.
-
#message_thread_id : Int32 | Nil
Unique identifier of a message thread to which the message belongs; for supergroups only.
-
#message_thread_id=(message_thread_id : Int32 | Nil)
Unique identifier of a message thread to which the message belongs; for supergroups only.
-
#migrate_from_chat_id : Int64 | Nil
The supergroup has been migrated from a group with the specified identifier.
-
#migrate_from_chat_id=(migrate_from_chat_id : Int64 | Nil)
The supergroup has been migrated from a group with the specified identifier.
-
#migrate_to_chat_id : Int64 | Nil
The group has been migrated to a supergroup with the specified identifier.
-
#migrate_to_chat_id=(migrate_to_chat_id : Int64 | Nil)
The group has been migrated to a supergroup with the specified identifier.
-
#new_chat_members : Array(Hamilton::Types::User) | Nil
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(Hamilton::Types::User) | Nil)
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(Hamilton::Types::PhotoSize) | Nil
A chat photo was change to this value.
-
#new_chat_photo=(new_chat_photo : Array(Hamilton::Types::PhotoSize) | Nil)
A chat photo was change to this value.
-
#new_chat_title : String | Nil
A chat title was changed to this value.
-
#new_chat_title=(new_chat_title : String | Nil)
A chat title was changed to this value.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#paid_media : Hamilton::Types::PaidMediaInfo | Nil
Message contains paid media; information about the paid media.
-
#paid_media=(paid_media : Hamilton::Types::PaidMediaInfo | Nil)
Message contains paid media; information about the paid media.
-
#paid_message_price_changed : Hamilton::Types::PaidMessagePriceChanged | Nil
Service message: the price for paid messages has changed in the chat.
-
#paid_message_price_changed=(paid_message_price_changed : Hamilton::Types::PaidMessagePriceChanged | Nil)
Service message: the price for paid messages has changed in the chat.
-
#paid_star_count : Int32 | Nil
The number of Telegram Stars that were paid by the sender of the message to send it.
-
#paid_star_count=(paid_star_count : Int32 | Nil)
The number of Telegram Stars that were paid by the sender of the message to send it.
-
#passport_data : Hamilton::Types::PassportData | Nil
Telegram Passport data.
-
#passport_data=(passport_data : Hamilton::Types::PassportData | Nil)
Telegram Passport data.
-
#photo : Array(Hamilton::Types::PhotoSize) | Nil
Message is a photo, available sizes of the photo.
-
#photo=(photo : Array(Hamilton::Types::PhotoSize) | Nil)
Message is a photo, available sizes of the photo.
-
#pinned_message : Hamilton::Types::MaybeInaccessibleMessage | Nil
Specified message was pinned.
-
#pinned_message=(pinned_message : Hamilton::Types::MaybeInaccessibleMessage | Nil)
Specified message was pinned.
-
#poll : Hamilton::Types::Poll | Nil
Message is a native poll, information about the poll.
-
#poll=(poll : Hamilton::Types::Poll | Nil)
Message is a native poll, information about the poll.
-
#proximity_alert_triggered : Hamilton::Types::ProximityAlertTriggered | Nil
Service message.
-
#proximity_alert_triggered=(proximity_alert_triggered : Hamilton::Types::ProximityAlertTriggered | Nil)
Service message.
-
#quote : Hamilton::Types::TextQuote | Nil
For replies that quote part of the original message, the quoted part of the message.
-
#quote=(quote : Hamilton::Types::TextQuote | Nil)
For replies that quote part of the original message, the quoted part of the message.
-
#refunded_payment : Hamilton::Types::RefundedPayment | Nil
Message is a service message about a refunded payment, information about the payment.
-
#refunded_payment=(refunded_payment : Hamilton::Types::RefundedPayment | Nil)
Message is a service message about a refunded payment, information about the payment.
-
#reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil
Inline keyboard attached to the message.
-
#reply_markup=(reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil)
Inline keyboard attached to the message.
-
#reply_to_checklist_task_id : Int32 | Nil
Identifier of the specific checklist task that is being replied to.
-
#reply_to_checklist_task_id=(reply_to_checklist_task_id : Int32 | Nil)
Identifier of the specific checklist task that is being replied to.
-
#reply_to_message : Hamilton::Types::Message | Nil
For replies in the same chat and message thread, the original message.
-
#reply_to_message=(reply_to_message : Hamilton::Types::Message | Nil)
For replies in the same chat and message thread, the original message.
-
#reply_to_story : Hamilton::Types::Story | Nil
For replies to a story, the original story.
-
#reply_to_story=(reply_to_story : Hamilton::Types::Story | Nil)
For replies to a story, the original story.
-
#sender_boost_count : Int32 | Nil
If the sender of the message boosted the chat, the number of boosts added by the user.
-
#sender_boost_count=(sender_boost_count : Int32 | Nil)
If the sender of the message boosted the chat, the number of boosts added by the user.
-
#sender_business_bot : Hamilton::Types::User | Nil
The bot that actually sent the message on behalf of the business account.
-
#sender_business_bot=(sender_business_bot : Hamilton::Types::User | Nil)
The bot that actually sent the message on behalf of the business account.
-
#sender_chat : Hamilton::Types::Chat | Nil
Sender of the message when sent on behalf of a chat.
-
#sender_chat=(sender_chat : Hamilton::Types::Chat | Nil)
Sender of the message when sent on behalf of a chat.
-
#show_caption_above_media : Bool | Nil
True, if the caption must be shown above the message media.
-
#show_caption_above_media=(show_caption_above_media : Bool | Nil)
True, if the caption must be shown above the message media.
-
#sticker : Hamilton::Types::Sticker | Nil
Message is a sticker, information about the sticker.
-
#sticker=(sticker : Hamilton::Types::Sticker | Nil)
Message is a sticker, information about the sticker.
-
#story : Hamilton::Types::Story | Nil
Message is a forwarded story.
-
#story=(story : Hamilton::Types::Story | Nil)
Message is a forwarded story.
-
#successful_payment : Hamilton::Types::SuccessfulPayment | Nil
Message is a service message about a successful payment, information about the payment.
-
#successful_payment=(successful_payment : Hamilton::Types::SuccessfulPayment | Nil)
Message is a service message about a successful payment, information about the payment.
-
#suggested_post_approval_failed : Hamilton::Types::SuggestedPostApprovalFailed | Nil
Service message: approval of a suggested post has failed.
-
#suggested_post_approval_failed=(suggested_post_approval_failed : Hamilton::Types::SuggestedPostApprovalFailed | Nil)
Service message: approval of a suggested post has failed.
-
#suggested_post_approved : Hamilton::Types::SuggestedPostApproved | Nil
Service message: a suggested post was approved.
-
#suggested_post_approved=(suggested_post_approved : Hamilton::Types::SuggestedPostApproved | Nil)
Service message: a suggested post was approved.
-
#suggested_post_declined : Hamilton::Types::SuggestedPostDeclined | Nil
Service message: a suggested post was declined.
-
#suggested_post_declined=(suggested_post_declined : Hamilton::Types::SuggestedPostDeclined | Nil)
Service message: a suggested post was declined.
-
#suggested_post_info : Hamilton::Types::SuggestedPostInfo | Nil
Information about suggested post parameters if the message is a suggested post in a channel direct messages chat.
-
#suggested_post_info=(suggested_post_info : Hamilton::Types::SuggestedPostInfo | Nil)
Information about suggested post parameters if the message is a suggested post in a channel direct messages chat.
-
#suggested_post_paid : Hamilton::Types::SuggestedPostPaid | Nil
Service message: payment for a suggested post was received.
-
#suggested_post_paid=(suggested_post_paid : Hamilton::Types::SuggestedPostPaid | Nil)
Service message: payment for a suggested post was received.
-
#suggested_post_refunded : Hamilton::Types::SuggestedPostRefunded | Nil
Service message: payment for a suggested post was refunded.
-
#suggested_post_refunded=(suggested_post_refunded : Hamilton::Types::SuggestedPostRefunded | Nil)
Service message: payment for a suggested post was refunded.
-
#supergroup_chat_created : Bool | Nil
Service message: the supergroup has been created.
-
#supergroup_chat_created=(supergroup_chat_created : Bool | Nil)
Service message: the supergroup has been created.
-
#text : String | Nil
For text messages, the actual UTF-8 text of the message.
-
#text=(text : String | Nil)
For text messages, the actual UTF-8 text of the message.
-
#unique_gift : Hamilton::Types::UniqueGiftInfo | Nil
Service message: a unique gift was sent or received.
-
#unique_gift=(unique_gift : Hamilton::Types::UniqueGiftInfo | Nil)
Service message: a unique gift was sent or received.
-
#users_shared : Hamilton::Types::UsersShared | Nil
Service message: users were shared with the bot.
-
#users_shared=(users_shared : Hamilton::Types::UsersShared | Nil)
Service message: users were shared with the bot.
-
#venue : Hamilton::Types::Venue | Nil
Message is a venue, information about the venue.
-
#venue=(venue : Hamilton::Types::Venue | Nil)
Message is a venue, information about the venue.
-
#via_bot : Hamilton::Types::User | Nil
Bot through which the message was sent.
-
#via_bot=(via_bot : Hamilton::Types::User | Nil)
Bot through which the message was sent.
-
#video : Hamilton::Types::Video | Nil
Message is a video, information about the video.
-
#video=(video : Hamilton::Types::Video | Nil)
Message is a video, information about the video.
-
#video_chat_ended : Hamilton::Types::VideoChatEnded | Nil
Service message: video chat ended.
-
#video_chat_ended=(video_chat_ended : Hamilton::Types::VideoChatEnded | Nil)
Service message: video chat ended.
-
#video_chat_participants_invited : Hamilton::Types::VideoChatParticipantsInvited | Nil
Service message: new participants invited to a video chat.
-
#video_chat_participants_invited=(video_chat_participants_invited : Hamilton::Types::VideoChatParticipantsInvited | Nil)
Service message: new participants invited to a video chat.
-
#video_chat_scheduled : Hamilton::Types::VideoChatScheduled | Nil
Service message: video chat scheduled.
-
#video_chat_scheduled=(video_chat_scheduled : Hamilton::Types::VideoChatScheduled | Nil)
Service message: video chat scheduled.
-
#video_chat_started : Hamilton::Types::VideoChatStarted | Nil
Service message: video chat started.
-
#video_chat_started=(video_chat_started : Hamilton::Types::VideoChatStarted | Nil)
Service message: video chat started.
-
#video_note : Hamilton::Types::VideoNote | Nil
Message is a video note, information about the video message.
-
#video_note=(video_note : Hamilton::Types::VideoNote | Nil)
Message is a video note, information about the video message.
-
#voice : Hamilton::Types::Voice | Nil
Message is a voice message, information about the file.
-
#voice=(voice : Hamilton::Types::Voice | Nil)
Message is a voice message, information about the file.
-
#web_app_data : Hamilton::Types::WebAppData | Nil
Service message: data sent by a Web App.
-
#web_app_data=(web_app_data : Hamilton::Types::WebAppData | Nil)
Service message: data sent by a Web App.
-
#write_access_allowed : Hamilton::Types::WriteAccessAllowed | Nil
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 : Hamilton::Types::WriteAccessAllowed | Nil)
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.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set.
Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set.
Message is an audio file, information about the file.
Signature of the post author for messages in channels, or the custom title of an anonymous group administrator.
Signature of the post author for messages in channels, or the custom title of an anonymous group administrator.
Service message: user boosted the chat.
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.
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 for the animation, audio, document, paid media, photo, video or voice.
Caption for the animation, audio, document, paid media, photo, video or voice.
For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption.
For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption.
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.
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.
Service message: chat background set.
Service message: chat background set.
Service message: tasks were added to a checklist.
Service message: tasks were added to a checklist.
Service message: some tasks in a checklist were marked as done or not done.
Service message: some tasks in a checklist were marked as done or not done.
Message is a shared contact, information about the contact.
Message is a shared contact, information about the contact.
Date the message was sent in Unix time. It is always a positive number, representing a valid date.
Date the message was sent in Unix time. It is always a positive number, representing a valid date.
Service message: the chat photo was deleted.
Service message: the price for paid messages in the corresponding direct messages chat of a channel has changed.
Service message: the price for paid messages in the corresponding direct messages chat of a channel has changed.
Information about the direct messages chat topic that contains the message.
Information about the direct messages chat topic that contains the message.
Message is a general file, information about the file.
Message is a general file, information about the file.
Unique identifier of the message effect added to the message.
For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text.
For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text.
Information about the message that is being replied to, which may come from another chat or forum topic.
Information about the message that is being replied to, which may come from another chat or forum topic.
Service message: forum topic closed.
Service message: forum topic closed.
Service message: forum topic created.
Service message: forum topic created.
Service message: forum topic edited.
Service message: forum topic edited.
Service message: forum topic reopened.
Service message: forum topic reopened.
Information about the original message for forwarded messages.
Information about the original message for forwarded messages.
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.
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.
Service message: a regular gift was sent or received.
The message is a scheduled giveaway message.
Service message: a giveaway without public winners was completed.
Service message: a giveaway without public winners was completed.
Service message: a scheduled giveaway was created.
Service message: a scheduled giveaway was created.
A giveaway with public winners was completed.
A giveaway with public winners was completed.
Service message: the group has been created.
True, if the message media is covered by a spoiler animation.
True, if the message can't be forwarded.
Message is an invoice for a payment, information about the invoice.
Message is an invoice for a payment, information about the invoice.
True, if the message is a channel post that was automatically forwarded to the connected discussion group.
True, if the message is a channel post that was automatically forwarded to the connected discussion group.
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.
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.
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.
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.
True, if the message is sent to a forum topic.
A member was removed from the group, information about them (this member may be the bot itself).
A member was removed from the group, information about them (this member may be the bot itself).
Options used for link preview generation for the message, if it is a text message and link preview options were changed.
Options used for link preview generation for the message, if it is a text message and link preview options were changed.
Message is a shared location, information about the location.
Message is a shared location, information about the location.
The unique identifier of a media message group this message belongs to.
The unique identifier of a media message group this message belongs to.
Service message: auto-delete timer settings changed in the chat.
Service message: auto-delete timer settings changed in the chat.
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.
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.
Unique identifier of a message thread to which the message belongs; for supergroups only.
Unique identifier of a message thread to which the message belongs; for supergroups only.
The supergroup has been migrated from a group with the specified identifier.
The supergroup has been migrated from a group with the specified identifier.
The group has been migrated to a supergroup with the specified identifier.
The group has been migrated to a supergroup with the specified identifier.
New members that were added to the group or supergroup and information about them (the bot itself may be one of these members).
New members that were added to the group or supergroup and information about them (the bot itself may be one of these members).
A chat photo was change to this value.
A chat photo was change to this value.
Message contains paid media; information about the paid media.
Message contains paid media; information about the paid media.
Service message: the price for paid messages has changed in the chat.
Service message: the price for paid messages has changed in the chat.
The number of Telegram Stars that were paid by the sender of the message to send it.
The number of Telegram Stars that were paid by the sender of the message to send it.
Message is a photo, available sizes of the photo.
Message is a photo, available sizes of the photo.
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.
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.
Message is a native poll, information about the poll.
Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.
Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.
For replies that quote part of the original message, the quoted part of the message.
For replies that quote part of the original message, the quoted part of the message.
Message is a service message about a refunded payment, information about the payment.
Message is a service message about a refunded payment, information about the payment.
Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.
Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.
Identifier of the specific checklist task that is being replied to.
Identifier of the specific checklist task that is being replied to.
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.
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.
For replies to a story, the original story.
If the sender of the message boosted the chat, the number of boosts added by the user.
If the sender of the message boosted the chat, the number of boosts added by the user.
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.
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 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.
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.
True, if the caption must be shown above the message media.
True, if the caption must be shown above the message media.
Message is a sticker, information about the sticker.
Message is a service message about a successful payment, information about the payment.
Message is a service message about a successful payment, information about the payment.
Service message: approval of a suggested post has failed.
Service message: approval of a suggested post has failed.
Service message: a suggested post was approved.
Service message: a suggested post was approved.
Service message: a suggested post was declined.
Service message: a suggested post was declined.
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.
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.
Service message: payment for a suggested post was received.
Service message: payment for a suggested post was received.
Service message: payment for a suggested post was refunded.
Service message: payment for a suggested post was refunded.
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.
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.
Service message: a unique gift was sent or received.
Service message: a unique gift was sent or received.
Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set.
Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set.
Service message: video chat ended.
Service message: new participants invited to a video chat.
Service message: new participants invited to a video chat.
Service message: video chat scheduled.
Service message: video chat scheduled.
Service message: video chat started.
Service message: video chat started.
Message is a video note, information about the video message.
Message is a video note, information about the video message.
Message is a voice message, information about the file.
Service message: data sent by a Web App.
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.
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.