List of all members | Public Fields | Public Instance Methods | Static Public Attributes
messageProperties Class Referencefinal

Inherits Object.

Description

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

Public Fields

bool can_be_copied_to_secret_chat_
 True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options.
 
bool can_be_deleted_only_for_self_
 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.
 
bool can_be_deleted_for_all_users_
 True, if the message can be deleted for all users using the method deleteMessages with revoke == true.
 
bool can_be_edited_
 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.
 
bool can_be_forwarded_
 True, if the message can be forwarded using inputMessageForwarded or forwardMessages.
 
bool can_be_paid_
 True, if the message can be paid using inputInvoiceMessage.
 
bool can_be_pinned_
 True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage.
 
bool can_be_replied_
 True, if the message can be replied in the same chat and forum topic using inputMessageReplyToMessage.
 
bool can_be_replied_in_another_chat_
 True, if the message can be replied in another chat or forum topic using inputMessageReplyToExternalMessage.
 
bool can_be_saved_
 True, if content of the message can be saved locally or copied using inputMessageForwarded or forwardMessages with copy options.
 
bool can_be_shared_in_story_
 True, if the message can be shared in a story using inputStoryAreaTypeMessage.
 
bool can_edit_media_
 True, if the message can be edited using the method editMessageMedia.
 
bool can_edit_scheduling_state_
 True, if scheduling state of the message can be edited.
 
bool can_get_embedding_code_
 True, if code for message embedding can be received using getMessageEmbeddingCode.
 
bool can_get_link_
 True, if a link can be generated for the message using getMessageLink.
 
bool can_get_media_timestamp_links_
 True, if media timestamp links can be generated for media timestamp entities in the message text, caption or link preview description using getMessageLink.
 
bool can_get_message_thread_
 True, if information about the message thread is available through getMessageThread and getMessageThreadHistory.
 
bool can_get_read_date_
 True, if read date of the message can be received through getMessageReadDate.
 
bool can_get_statistics_
 True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards.
 
bool can_get_viewers_
 True, if chat members already viewed the message can be received through getMessageViewers.
 
bool can_recognize_speech_
 True, if speech can be recognized for the message through recognizeSpeech.
 
bool can_report_chat_
 True, if the message can be reported using reportChat.
 
bool can_report_reactions_
 True, if reactions on the message can be reported through reportMessageReactions.
 
bool can_report_supergroup_spam_
 True, if the message can be reported using reportSupergroupSpam.
 
bool can_set_fact_check_
 True, if fact check for the message can be changed through setMessageFactCheck.
 
bool need_show_statistics_
 True, if message statistics must be available from context menu of the message.
 

Public Instance Methods

 messageProperties ()
 
 messageProperties (bool can_be_copied_to_secret_chat_, 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_edit_media_, bool can_edit_scheduling_state_, bool can_get_embedding_code_, bool can_get_link_, bool can_get_media_timestamp_links_, bool can_get_message_thread_, bool can_get_read_date_, bool can_get_statistics_, bool can_get_viewers_, bool can_recognize_speech_, bool can_report_chat_, bool can_report_reactions_, bool can_report_supergroup_spam_, bool can_set_fact_check_, bool need_show_statistics_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

static const std::int32_t ID = -27014655
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ messageProperties() [1/2]

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

◆ messageProperties() [2/2]

messageProperties ( bool  can_be_copied_to_secret_chat_,
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_edit_media_,
bool  can_edit_scheduling_state_,
bool  can_get_embedding_code_,
bool  can_get_link_,
bool  can_get_media_timestamp_links_,
bool  can_get_message_thread_,
bool  can_get_read_date_,
bool  can_get_statistics_,
bool  can_get_viewers_,
bool  can_recognize_speech_,
bool  can_report_chat_,
bool  can_report_reactions_,
bool  can_report_supergroup_spam_,
bool  can_set_fact_check_,
bool  need_show_statistics_ 
)

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

Parameters
[in]can_be_copied_to_secret_chat_True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options.
[in]can_be_deleted_only_for_self_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.
[in]can_be_deleted_for_all_users_True, if the message can be deleted for all users using the method deleteMessages with revoke == true.
[in]can_be_edited_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.
[in]can_be_forwarded_True, if the message can be forwarded using inputMessageForwarded or forwardMessages.
[in]can_be_paid_True, if the message can be paid using inputInvoiceMessage.
[in]can_be_pinned_True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage.
[in]can_be_replied_True, if the message can be replied in the same chat and forum topic using inputMessageReplyToMessage.
[in]can_be_replied_in_another_chat_True, if the message can be replied in another chat or forum topic using inputMessageReplyToExternalMessage.
[in]can_be_saved_True, if content of the message can be saved locally or copied using inputMessageForwarded or forwardMessages with copy options.
[in]can_be_shared_in_story_True, if the message can be shared in a story using inputStoryAreaTypeMessage.
[in]can_edit_media_True, if the message can be edited using the method editMessageMedia.
[in]can_edit_scheduling_state_True, if scheduling state of the message can be edited.
[in]can_get_embedding_code_True, if code for message embedding can be received using getMessageEmbeddingCode.
[in]can_get_link_True, if a link can be generated for the message using getMessageLink.
[in]can_get_media_timestamp_links_True, if media timestamp links can be generated for media timestamp entities in the message text, caption or link preview description using getMessageLink.
[in]can_get_message_thread_True, if information about the message thread is available through getMessageThread and getMessageThreadHistory.
[in]can_get_read_date_True, if read date of the message can be received through getMessageReadDate.
[in]can_get_statistics_True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards.
[in]can_get_viewers_True, if chat members already viewed the message can be received through getMessageViewers.
[in]can_recognize_speech_True, if speech can be recognized for the message through recognizeSpeech.
[in]can_report_chat_True, if the message can be reported using reportChat.
[in]can_report_reactions_True, if reactions on the message can be reported through reportMessageReactions.
[in]can_report_supergroup_spam_True, if the message can be reported using reportSupergroupSpam.
[in]can_set_fact_check_True, if fact check for the message can be changed through setMessageFactCheck.
[in]need_show_statistics_True, if message statistics must be available from context menu of the message.

Method Documentation

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: