BPT\types\message

Extended by : BPT\types\types

This object represents a message.

Properties
Name Type Description Kind
id int This will only added when received as update field,Unique message identifier inside this chat normal
message_id int Unique message identifier inside this chat normal
message_thread_id int Optional. Unique identifier of a message thread to which the message belongs; for supergroups only normal
from BPT\types\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. normal
sender_chat BPT\types\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. normal
date int Date the message was sent in Unix time normal
chat BPT\types\chat Conversation the message belongs to normal
forward_from BPT\types\user Optional. For forwarded messages, sender of the original message normal
forward_from_chat BPT\types\chat Optional. For messages forwarded from channels or from anonymous administrators, information about the original sender chat normal
forward_from_message_id int Optional. For messages forwarded from channels, identifier of the original message in the channel normal
forward_signature string Optional. For forwarded messages that were originally sent in channels or by an anonymous chat administrator, signature of the message sender if present normal
forward_sender_name string Optional. Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages normal
forward_date int Optional. For forwarded messages, date the original message was sent in Unix time normal
is_topic_message bool Optional. True, if the message is sent to a forum topic normal
is_automatic_forward bool Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group normal
reply_to_message BPT\types\message Optional. For replies, 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. normal
via_bot BPT\types\user Optional. Bot through which the message was sent normal
edit_date int Optional. Date the message was last edited in Unix time normal
has_protected_content bool Optional. True, if the message can't be forwarded normal
media_group_id string Optional. The unique identifier of a media message group this message belongs to normal
author_signature string Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator normal
text string Optional. For text messages, the actual UTF-8 text of the message normal
command string | null Optional. If user message was a command , this parameter will be the command normal
command_username string | null Optional. If user message was a command , this parameter will be the command username(if exist) normal
command_payload string | null Optional. If user message was a command , this parameter will be the command payload(if exist) normal
entities messageEntity[] Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text normal
animation BPT\types\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 normal
audio BPT\types\audio Optional. Message is an audio file, information about the file normal
document BPT\types\document Optional. Message is a general file, information about the file normal
photo photoSize[] Optional. Message is a photo, available sizes of the photo normal
sticker BPT\types\sticker Optional. Message is a sticker, information about the sticker normal
video BPT\types\video Optional. Message is a video, information about the video normal
video_note BPT\types\videoNote Optional. Message is a video note, information about the video message normal
voice BPT\types\voice Optional. Message is a voice message, information about the file normal
caption string Optional. Caption for the animation, audio, document, photo, video or voice normal
caption_entities messageEntity[] Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption normal
has_media_spoiler bool Optional. True, if the message media is covered by a spoiler animation normal
contact BPT\types\contact Optional. Message is a shared contact, information about the contact normal
dice BPT\types\dice Optional. Message is a dice with random value normal
game BPT\types\game Optional. Message is a game, information about the game. More about games » normal
poll BPT\types\poll Optional. Message is a native poll, information about the poll normal
venue BPT\types\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 normal
location BPT\types\location Optional. Message is a shared location, information about the location normal
new_chat_members 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) normal
left_chat_member BPT\types\user Optional. A member was removed from the group, information about them (this member may be the bot itself) normal
new_chat_title string Optional. A chat title was changed to this value normal
new_chat_photo photoSize[] Optional. A chat photo was change to this value normal
delete_chat_photo bool Optional. Service message: the chat photo was deleted normal
group_chat_created bool Optional. Service message: the group has been created normal
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. normal
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. normal
message_auto_delete_timer_changed BPT\types\messageAutoDeleteTimerChanged Optional. Service message: auto-delete timer settings changed in the chat normal
migrate_to_chat_id int 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. normal
migrate_from_chat_id int 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. normal
pinned_message BPT\types\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 is itself a reply. normal
invoice BPT\types\invoice Optional. Message is an invoice for a payment, information about the invoice. More about payments » normal
successful_payment BPT\types\successfulPayment Optional. Message is a service message about a successful payment, information about the payment. More about payments » normal
user_shared BPT\types\userShared Optional. Service message: a user was shared with the bot normal
chat_shared BPT\types\chatShared Optional. Service message: a chat was shared with the bot normal
connected_website string Optional. The domain name of the website on which the user has logged in. More about Telegram Login » normal
write_access_allowed BPT\types\writeAccessAllowed Optional. Service message: the user allowed the bot added to the attachment menu to write messages normal
passport_data BPT\types\passportData Optional. Telegram Passport data normal
proximity_alert_triggered BPT\types\proximityAlertTriggered Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location. normal
forum_topic_created BPT\types\forumTopicCreated Optional. Service message: forum topic created normal
forum_topic_edited BPT\types\forumTopicEdited Optional. Service message: forum topic edited normal
forum_topic_closed BPT\types\forumTopicClosed Optional. Service message: forum topic closed normal
forum_topic_reopened BPT\types\forumTopicReopened Optional. Service message: forum topic reopened normal
general_forum_topic_hidden BPT\types\generalForumTopicHidden Optional. Service message: the 'General' forum topic hidden normal
general_forum_topic_unhidden BPT\types\generalForumTopicUnhidden Optional. Service message: the 'General' forum topic unhidden normal
video_chat_scheduled BPT\types\videoChatScheduled Optional. Service message: video chat scheduled normal
video_chat_started BPT\types\videoChatStarted Optional. Service message: video chat started normal
video_chat_ended BPT\types\videoChatEnded Optional. Service message: video chat ended normal
video_chat_participants_invited BPT\types\videoChatParticipantsInvited Optional. Service message: new participants invited to a video chat normal
web_app_data BPT\types\webAppData Optional. Service message: data sent by a Web App normal
reply_markup BPT\types\inlineKeyboardMarkup Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons. normal