Interface MessageProperties

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

interface MessageProperties {
    @type: "messageProperties";
    can_be_copied_to_secret_chat?: 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_edit_media?: boolean;
    can_edit_scheduling_state?: boolean;
    can_get_embedding_code?: boolean;
    can_get_link?: boolean;
    can_get_media_timestamp_links?: boolean;
    can_get_message_thread?: boolean;
    can_get_read_date?: boolean;
    can_get_statistics?: boolean;
    can_get_viewers?: boolean;
    can_recognize_speech?: boolean;
    can_report_chat?: boolean;
    can_report_reactions?: boolean;
    can_report_supergroup_spam?: boolean;
    can_set_fact_check?: boolean;
    need_show_statistics?: boolean;
}

Properties

@type: "messageProperties"
can_be_copied_to_secret_chat?: boolean

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

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 and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message.

can_be_forwarded?: boolean

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

can_be_paid?: boolean

True, if the message can be paid 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 in the same chat and forum topic using inputMessageReplyToMessage.

can_be_replied_in_another_chat?: boolean

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

can_be_saved?: boolean

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

can_be_shared_in_story?: boolean

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

can_edit_media?: boolean

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

can_edit_scheduling_state?: boolean

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

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_read_date?: boolean

True, if 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_viewers?: boolean

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

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 fact check for the message can be changed through setMessageFactCheck.

need_show_statistics?: boolean

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