public static class TdApi.MessageProperties extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
canBeCopiedToSecretChat
True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options.
|
boolean |
canBeDeletedForAllUsers
True, if the message can be deleted for all users using the method deleteMessages with revoke == true.
|
boolean |
canBeDeletedOnlyForSelf
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.
|
boolean |
canBeEdited
True, if the message can be edited using the methods editMessageText, editMessageCaption, or editMessageReplyMarkup.
|
boolean |
canBeForwarded
True, if the message can be forwarded using inputMessageForwarded or forwardMessages.
|
boolean |
canBePaid
True, if the message can be paid using inputInvoiceMessage.
|
boolean |
canBePinned
True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage.
|
boolean |
canBeReplied
True, if the message can be replied in the same chat and forum topic using inputMessageReplyToMessage.
|
boolean |
canBeRepliedInAnotherChat
True, if the message can be replied in another chat or forum topic using inputMessageReplyToExternalMessage.
|
boolean |
canBeSaved
True, if content of the message can be saved locally or copied using inputMessageForwarded or forwardMessages with copy options.
|
boolean |
canBeSharedInStory
True, if the message can be shared in a story using inputStoryAreaTypeMessage.
|
boolean |
canEditMedia
True, if the message can be edited using the method editMessageMedia.
|
boolean |
canEditSchedulingState
True, if scheduling state of the message can be edited.
|
boolean |
canGetEmbeddingCode
True, if code for message embedding can be received using getMessageEmbeddingCode.
|
boolean |
canGetLink
True, if a link can be generated for the message using getMessageLink.
|
boolean |
canGetMediaTimestampLinks
True, if media timestamp links can be generated for media timestamp entities in the message text, caption or link preview description using getMessageLink.
|
boolean |
canGetMessageThread
True, if information about the message thread is available through getMessageThread and getMessageThreadHistory.
|
boolean |
canGetReadDate
True, if read date of the message can be received through getMessageReadDate.
|
boolean |
canGetStatistics
True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards.
|
boolean |
canGetViewers
True, if chat members already viewed the message can be received through getMessageViewers.
|
boolean |
canRecognizeSpeech
True, if speech can be recognized for the message through recognizeSpeech.
|
boolean |
canReportChat
True, if the message can be reported using reportChat.
|
boolean |
canReportReactions
True, if reactions on the message can be reported through reportMessageReactions.
|
boolean |
canReportSupergroupSpam
True, if the message can be reported using reportSupergroupSpam.
|
boolean |
canSetFactCheck
True, if fact check for the message can be changed through setMessageFactCheck.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
needShowStatistics
True, if message statistics must be available from context menu of the message.
|
| Constructor and Description |
|---|
MessageProperties()
Contains properties of a message and describes actions that can be done with the message right now.
|
MessageProperties(boolean canBeCopiedToSecretChat,
boolean canBeDeletedOnlyForSelf,
boolean canBeDeletedForAllUsers,
boolean canBeEdited,
boolean canBeForwarded,
boolean canBePaid,
boolean canBePinned,
boolean canBeReplied,
boolean canBeRepliedInAnotherChat,
boolean canBeSaved,
boolean canBeSharedInStory,
boolean canEditMedia,
boolean canEditSchedulingState,
boolean canGetEmbeddingCode,
boolean canGetLink,
boolean canGetMediaTimestampLinks,
boolean canGetMessageThread,
boolean canGetReadDate,
boolean canGetStatistics,
boolean canGetViewers,
boolean canRecognizeSpeech,
boolean canReportChat,
boolean canReportReactions,
boolean canReportSupergroupSpam,
boolean canSetFactCheck,
boolean needShowStatistics)
Contains properties of a message and describes actions that can be done with the message right now.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic boolean canBeCopiedToSecretChat
public boolean canBeDeletedOnlyForSelf
public boolean canBeDeletedForAllUsers
public boolean canBeEdited
public boolean canBeForwarded
public boolean canBePaid
public boolean canBePinned
public boolean canBeReplied
public boolean canBeRepliedInAnotherChat
public boolean canBeSaved
public boolean canBeSharedInStory
public boolean canEditMedia
public boolean canEditSchedulingState
public boolean canGetEmbeddingCode
public boolean canGetLink
public boolean canGetMediaTimestampLinks
public boolean canGetMessageThread
public boolean canGetReadDate
public boolean canGetStatistics
public boolean canGetViewers
public boolean canRecognizeSpeech
public boolean canReportChat
public boolean canReportReactions
public boolean canReportSupergroupSpam
public boolean canSetFactCheck
public boolean needShowStatistics
public static final int CONSTRUCTOR
public MessageProperties()
public MessageProperties(boolean canBeCopiedToSecretChat,
boolean canBeDeletedOnlyForSelf,
boolean canBeDeletedForAllUsers,
boolean canBeEdited,
boolean canBeForwarded,
boolean canBePaid,
boolean canBePinned,
boolean canBeReplied,
boolean canBeRepliedInAnotherChat,
boolean canBeSaved,
boolean canBeSharedInStory,
boolean canEditMedia,
boolean canEditSchedulingState,
boolean canGetEmbeddingCode,
boolean canGetLink,
boolean canGetMediaTimestampLinks,
boolean canGetMessageThread,
boolean canGetReadDate,
boolean canGetStatistics,
boolean canGetViewers,
boolean canRecognizeSpeech,
boolean canReportChat,
boolean canReportReactions,
boolean canReportSupergroupSpam,
boolean canSetFactCheck,
boolean needShowStatistics)
canBeCopiedToSecretChat - True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options.canBeDeletedOnlyForSelf - 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.canBeDeletedForAllUsers - True, if the message can be deleted for all users using the method deleteMessages with revoke == true.canBeEdited - 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.canBeForwarded - True, if the message can be forwarded using inputMessageForwarded or forwardMessages.canBePaid - True, if the message can be paid using inputInvoiceMessage.canBePinned - True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage.canBeReplied - True, if the message can be replied in the same chat and forum topic using inputMessageReplyToMessage.canBeRepliedInAnotherChat - True, if the message can be replied in another chat or forum topic using inputMessageReplyToExternalMessage.canBeSaved - True, if content of the message can be saved locally or copied using inputMessageForwarded or forwardMessages with copy options.canBeSharedInStory - True, if the message can be shared in a story using inputStoryAreaTypeMessage.canEditMedia - True, if the message can be edited using the method editMessageMedia.canEditSchedulingState - True, if scheduling state of the message can be edited.canGetEmbeddingCode - True, if code for message embedding can be received using getMessageEmbeddingCode.canGetLink - True, if a link can be generated for the message using getMessageLink.canGetMediaTimestampLinks - True, if media timestamp links can be generated for media timestamp entities in the message text, caption or link preview description using getMessageLink.canGetMessageThread - True, if information about the message thread is available through getMessageThread and getMessageThreadHistory.canGetReadDate - True, if read date of the message can be received through getMessageReadDate.canGetStatistics - True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards.canGetViewers - True, if chat members already viewed the message can be received through getMessageViewers.canRecognizeSpeech - True, if speech can be recognized for the message through recognizeSpeech.canReportChat - True, if the message can be reported using reportChat.canReportReactions - True, if reactions on the message can be reported through reportMessageReactions.canReportSupergroupSpam - True, if the message can be reported using reportSupergroupSpam.canSetFactCheck - True, if fact check for the message can be changed through setMessageFactCheck.needShowStatistics - True, if message statistics must be available from context menu of the message.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object