Interface MessageProperties

Contains properties of a message and describes actions that can be done with the message right now.

interface MessageProperties {
    @type: "messageProperties";
    can_add_offer?: boolean;
    can_add_tasks?: boolean;
    can_be_approved?: boolean;
    can_be_copied?: boolean;
    can_be_copied_to_secret_chat?: boolean;
    can_be_declined?: boolean;
    can_be_deleted_for_all_users?: boolean;
    can_be_deleted_only_for_self?: boolean;
    can_be_edited?: boolean;
    can_be_forwarded?: boolean;
    can_be_paid?: boolean;
    can_be_pinned?: boolean;
    can_be_replied?: boolean;
    can_be_replied_in_another_chat?: boolean;
    can_be_saved?: boolean;
    can_be_shared_in_story?: boolean;
    can_delete_reactions?: boolean;
    can_edit_media?: boolean;
    can_edit_scheduling_state?: boolean;
    can_edit_suggested_post_info?: boolean;
    can_get_author?: boolean;
    can_get_embedding_code?: boolean;
    can_get_link?: boolean;
    can_get_media_timestamp_links?: boolean;
    can_get_message_thread?: boolean;
    can_get_poll_vote_statistics?: boolean;
    can_get_read_date?: boolean;
    can_get_statistics?: boolean;
    can_get_video_advertisements?: boolean;
    can_get_viewers?: boolean;
    can_mark_tasks_as_done?: boolean;
    can_recognize_speech?: boolean;
    can_report_chat?: boolean;
    can_report_reactions?: boolean;
    can_report_supergroup_spam?: boolean;
    can_set_fact_check?: boolean;
    custom_emoji_ids: string[];
    has_protected_content_by_current_user?: boolean;
    has_protected_content_by_other_user?: boolean;
    need_show_statistics?: boolean;
}

Properties

@type: "messageProperties"
can_add_offer?: boolean

True, if an offer can be added to the message using addOffer.

can_add_tasks?: boolean

True, if tasks can be added to the message's checklist using addChecklistTasks if the current user has a Telegram Premium subscription.

can_be_approved?: boolean

True, if the message is a suggested post that can be approved by the user using approveSuggestedPost.

can_be_copied?: boolean

True, if the content of the message can be copied using inputMessageForwarded or forwardMessages with copy options.

can_be_copied_to_secret_chat?: boolean

True, if the content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options.

can_be_declined?: boolean

True, if the message is a suggested post that can be declined by the user using declineSuggestedPost.

can_be_deleted_for_all_users?: boolean

True, if the message can be deleted for all users using the method deleteMessages with revoke == true.

can_be_deleted_only_for_self?: boolean

True, if the message can be deleted only for the current user while other users will continue to see it using the method deleteMessages with revoke == false.

can_be_edited?: boolean

True, if the message can be edited using the methods editMessageText, editMessageCaption, or editMessageReplyMarkup. For live location, poll, and checklist messages, this field shows whether editMessageLiveLocation, stopPoll, or editMessageChecklist respectively can be used with this message.

can_be_forwarded?: boolean

True, if the message can be forwarded using inputMessageForwarded or forwardMessages without copy options.

can_be_paid?: boolean

True, if the message can be paid for using inputInvoiceMessage.

can_be_pinned?: boolean

True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage.

can_be_replied?: boolean

True, if the message can be replied to in the same chat and forum topic using inputMessageReplyToMessage. Ephemeral messages can be replied to only by other ephemeral messages.

can_be_replied_in_another_chat?: boolean

True, if the message can be replied to in another chat or forum topic using inputMessageReplyToExternalMessage.

can_be_saved?: boolean

True, if the content of the message can be saved locally.

can_be_shared_in_story?: boolean

True, if the message can be shared in a story using inputStoryAreaTypeMessage.

can_delete_reactions?: boolean

True, if the user can delete reactions of other users in the message using the method deleteMessageReactionsFromSender.

can_edit_media?: boolean

True, if the message can be edited using the method editMessageMedia.

can_edit_scheduling_state?: boolean

True, if the scheduling state of the message can be edited.

can_edit_suggested_post_info?: boolean

True, if another price or post send time can be suggested using addOffer.

can_get_author?: boolean

True, if the author of the message sent on behalf of a chat can be received through getMessageAuthor.

can_get_embedding_code?: boolean

True, if code for message embedding can be received using getMessageEmbeddingCode.

can_get_link?: boolean

True, if a link can be generated for the message using getMessageLink.

can_get_media_timestamp_links?: boolean

True, if media timestamp links can be generated for media timestamp entities in the message text, caption, or link preview description using getMessageLink.

can_get_message_thread?: boolean

True, if information about the message thread is available through getMessageThread and getMessageThreadHistory.

can_get_poll_vote_statistics?: boolean

True, if the message is a poll and vote statistics are available through getPollVoteStatistics.

can_get_read_date?: boolean

True, if the read date of the message can be received through getMessageReadDate.

can_get_statistics?: boolean

True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards.

can_get_video_advertisements?: boolean

True, if advertisements for the video of the message can be received through getVideoMessageAdvertisements.

can_get_viewers?: boolean

True, if chat members who already viewed the message can be received through getMessageViewers.

can_mark_tasks_as_done?: boolean

True, if tasks can be marked as done or not done in the message's checklist using markChecklistTasksAsDone if the current user has a Telegram Premium subscription.

can_recognize_speech?: boolean

True, if speech can be recognized for the message through recognizeSpeech.

can_report_chat?: boolean

True, if the message can be reported using reportChat.

can_report_reactions?: boolean

True, if reactions on the message can be reported through reportMessageReactions.

can_report_supergroup_spam?: boolean

True, if the message can be reported using reportSupergroupSpam.

can_set_fact_check?: boolean

True, if the fact-check for the message can be changed through setMessageFactCheck.

custom_emoji_ids: string[]

Identifiers of custom emoji used in the message.

has_protected_content_by_current_user?: boolean

True, if the content of the message can't be saved locally because it is protected by the current user; if true, then can_be_saved is false.

has_protected_content_by_other_user?: boolean

True, if the content of the message can't be saved locally because it is protected by the other user; if true, then can_be_saved is false.

need_show_statistics?: boolean

True, if message statistics must be available from the context menu of the message.