MessageProperties¶
Contains properties of a message and describes actions that can be done with the message right now
MessageProperties(
can_add_offer: Bool,
can_add_tasks: Bool,
can_be_approved: Bool,
can_be_copied: Bool,
can_be_copied_to_secret_chat: Bool,
can_be_declined: Bool,
can_be_deleted_only_for_self: Bool,
can_be_deleted_for_all_users: Bool,
can_be_edited: Bool,
can_be_forwarded: Bool,
can_be_paid: Bool,
can_be_pinned: Bool,
can_be_replied: Bool,
can_be_replied_in_another_chat: Bool,
can_be_saved: Bool,
can_be_shared_in_story: Bool,
can_delete_reactions: Bool,
can_edit_media: Bool,
can_edit_scheduling_state: Bool,
can_edit_suggested_post_info: Bool,
can_get_author: Bool,
can_get_embedding_code: Bool,
can_get_link: Bool,
can_get_media_timestamp_links: Bool,
can_get_message_thread: Bool,
can_get_poll_vote_statistics: Bool,
can_get_read_date: Bool,
can_get_statistics: Bool,
can_get_video_advertisements: Bool,
can_get_viewers: Bool,
can_mark_tasks_as_done: Bool,
can_recognize_speech: Bool,
can_report_chat: Bool,
can_report_reactions: Bool,
can_report_supergroup_spam: Bool,
can_set_fact_check: Bool,
has_protected_content_by_current_user: Bool,
has_protected_content_by_other_user: Bool,
need_show_statistics: Bool
) → MessageProperties
can_add_offer¶
Bool
True, if an offer can be added to the message using addOffer
can_add_tasks¶
Bool
True, if tasks can be added to the message's checklist using addChecklistTasks if the current user has Telegram Premium subscription
can_be_approved¶
Bool
True, if the message is a suggested post that can be approved by the user using approveSuggestedPost
can_be_copied¶
Bool
True, if content of the message can be copied using inputMessageForwarded or forwardMessages with copy options
can_be_copied_to_secret_chat¶
Bool
True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options
can_be_declined¶
Bool
True, if the message is a suggested post that can be declined by the user using declineSuggestedPost
can_be_deleted_only_for_self¶
Bool
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_deleted_for_all_users¶
Bool
True, if the message can be deleted for all users using the method deleteMessages with revoke == true
can_be_edited¶
Bool
True, if the message can be edited using the methods editMessageText, editMessageCaption, or editMessageReplyMarkup. For live location, poll, and checklist messages this fields shows whether editMessageLiveLocation, stopPoll, or editMessageChecklist respectively can be used with this message
can_be_forwarded¶
Bool
True, if the message can be forwarded using inputMessageForwarded or forwardMessages without copy options
can_be_paid¶
Bool
True, if the message can be paid using inputInvoiceMessage
can_be_pinned¶
Bool
True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage
can_be_replied¶
Bool
True, if the message can be replied in the same chat and forum topic using inputMessageReplyToMessage. Ephemeral messages can be replied only by other ephemeral messages
can_be_replied_in_another_chat¶
Bool
True, if the message can be replied in another chat or forum topic using inputMessageReplyToExternalMessage
can_be_saved¶
Bool
True, if content of the message can be saved locally
can_be_shared_in_story¶
Bool
True, if the message can be shared in a story using inputStoryAreaTypeMessage
can_delete_reactions¶
Bool
True, if the user can delete reactions of other users in the message using the method deleteMessageReactionsFromSender
can_edit_media¶
Bool
True, if the message can be edited using the method editMessageMedia
can_edit_scheduling_state¶
Bool
True, if scheduling state of the message can be edited
can_edit_suggested_post_info¶
Bool
True, if another price or post send time can be suggested using addOffer
can_get_author¶
Bool
True, if author of the message sent on behalf of a chat can be received through getMessageAuthor
can_get_embedding_code¶
Bool
True, if code for message embedding can be received using getMessageEmbeddingCode
can_get_link¶
Bool
True, if a link can be generated for the message using getMessageLink
can_get_media_timestamp_links¶
Bool
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¶
Bool
True, if information about the message thread is available through getMessageThread and getMessageThreadHistory
can_get_poll_vote_statistics¶
Bool
True, if the message is a poll and vote statistics are available through getPollVoteStatistics
can_get_read_date¶
Bool
True, if read date of the message can be received through getMessageReadDate
can_get_statistics¶
Bool
True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards
can_get_video_advertisements¶
Bool
True, if advertisements for video of the message can be received through getVideoMessageAdvertisements
can_get_viewers¶
Bool
True, if chat members already viewed the message can be received through getMessageViewers
can_mark_tasks_as_done¶
Bool
True, if tasks can be marked as done or not done in the message's checklist using markChecklistTasksAsDone if the current user has Telegram Premium subscription
can_recognize_speech¶
Bool
True, if speech can be recognized for the message through recognizeSpeech
can_report_chat¶
Bool
True, if the message can be reported using reportChat
can_report_reactions¶
Bool
True, if reactions on the message can be reported through reportMessageReactions
can_report_supergroup_spam¶
Bool
True, if the message can be reported using reportSupergroupSpam
can_set_fact_check¶
Bool
True, if fact check for the message can be changed through setMessageFactCheck
has_protected_content_by_current_user¶
Bool
True, if 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¶
Bool
True, if 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¶
Bool
True, if message statistics must be available from context menu of the message