Class TdApi.MessageProperties
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.MessageProperties
- Enclosing class:
- TdApi
Contains properties of a message and describes actions that can be done with the message right now.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
True, if the message can be deleted for all users using the method deleteMessages with revoke == true.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.boolean
True, if the message can be edited using the methods editMessageText, editMessageMedia, editMessageCaption, or editMessageReplyMarkup.boolean
True, if the message can be forwarded using inputMessageForwarded or forwardMessages.boolean
True, if the message can be paid using inputInvoiceMessage.boolean
True, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage.boolean
True, if the message can be replied in the same chat and forum topic using inputMessageReplyToMessage.boolean
True, if the message can be replied in another chat or forum topic using inputMessageReplyToExternalMessage.boolean
True, if content of the message can be saved locally or copied using inputMessageForwarded or forwardMessages with copy options.boolean
True, if the message can be shared in a story using inputStoryAreaTypeMessage.boolean
True, if scheduling state of the message can be edited.boolean
True, if the list of added reactions is available using getMessageAddedReactions.boolean
True, if code for message embedding can be received using getMessageEmbeddingCode.boolean
True, if a link can be generated for the message using getMessageLink.boolean
True, if media timestamp links can be generated for media timestamp entities in the message text, caption or link preview description using getMessageLink.boolean
True, if information about the message thread is available through getMessageThread and getMessageThreadHistory.boolean
True, if read date of the message can be received through getMessageReadDate.boolean
True, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards.boolean
True, if chat members already viewed the message can be received through getMessageViewers.boolean
True, if speech can be recognized for the message through recognizeSpeech.boolean
True, if the message can be reported using reportChat.boolean
True, if reactions on the message can be reported through reportMessageReactions.boolean
True, if the message can be reported using reportSupergroupSpam.boolean
True, if fact check for the message can be changed through setMessageFactCheck.static final int
Identifier uniquely determining type of the object.boolean
True, if message statistics must be available from context menu of the message. -
Constructor Summary
ConstructorDescriptionContains properties of a message and describes actions that can be done with the message right now.MessageProperties
(boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canBeEdited, boolean canBeForwarded, boolean canBePaid, boolean canBePinned, boolean canBeReplied, boolean canBeRepliedInAnotherChat, boolean canBeSaved, boolean canBeSharedInStory, boolean canEditSchedulingState, boolean canGetAddedReactions, 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. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
canBeDeletedOnlyForSelf
public boolean canBeDeletedOnlyForSelfTrue, 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
public boolean canBeDeletedForAllUsersTrue, if the message can be deleted for all users using the method deleteMessages with revoke == true. -
canBeEdited
public boolean canBeEditedTrue, if the message can be edited using the methods editMessageText, editMessageMedia, editMessageCaption, or editMessageReplyMarkup. For live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message. -
canBeForwarded
public boolean canBeForwardedTrue, if the message can be forwarded using inputMessageForwarded or forwardMessages. -
canBePaid
public boolean canBePaidTrue, if the message can be paid using inputInvoiceMessage. -
canBePinned
public boolean canBePinnedTrue, if the message can be pinned or unpinned in the chat using pinChatMessage or unpinChatMessage. -
canBeReplied
public boolean canBeRepliedTrue, if the message can be replied in the same chat and forum topic using inputMessageReplyToMessage. -
canBeRepliedInAnotherChat
public boolean canBeRepliedInAnotherChatTrue, if the message can be replied in another chat or forum topic using inputMessageReplyToExternalMessage. -
canBeSaved
public boolean canBeSavedTrue, if content of the message can be saved locally or copied using inputMessageForwarded or forwardMessages with copy options. -
canEditSchedulingState
public boolean canEditSchedulingStateTrue, if scheduling state of the message can be edited. -
canGetAddedReactions
public boolean canGetAddedReactionsTrue, if the list of added reactions is available using getMessageAddedReactions. -
canGetEmbeddingCode
public boolean canGetEmbeddingCodeTrue, if code for message embedding can be received using getMessageEmbeddingCode. -
canGetLink
public boolean canGetLinkTrue, if a link can be generated for the message using getMessageLink. -
canGetMediaTimestampLinks
public boolean canGetMediaTimestampLinksTrue, if media timestamp links can be generated for media timestamp entities in the message text, caption or link preview description using getMessageLink. -
canGetMessageThread
public boolean canGetMessageThreadTrue, if information about the message thread is available through getMessageThread and getMessageThreadHistory. -
canGetReadDate
public boolean canGetReadDateTrue, if read date of the message can be received through getMessageReadDate. -
canGetStatistics
public boolean canGetStatisticsTrue, if message statistics are available through getMessageStatistics and message forwards can be received using getMessagePublicForwards. -
canGetViewers
public boolean canGetViewersTrue, if chat members already viewed the message can be received through getMessageViewers. -
canRecognizeSpeech
public boolean canRecognizeSpeechTrue, if speech can be recognized for the message through recognizeSpeech. -
canReportChat
public boolean canReportChatTrue, if the message can be reported using reportChat. -
canReportReactions
public boolean canReportReactionsTrue, if reactions on the message can be reported through reportMessageReactions. -
canReportSupergroupSpam
public boolean canReportSupergroupSpamTrue, if the message can be reported using reportSupergroupSpam. -
canSetFactCheck
public boolean canSetFactCheckTrue, if fact check for the message can be changed through setMessageFactCheck. -
needShowStatistics
public boolean needShowStatisticsTrue, if message statistics must be available from context menu of the message. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessageProperties
public MessageProperties()Contains properties of a message and describes actions that can be done with the message right now. -
MessageProperties
public MessageProperties(boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canBeEdited, boolean canBeForwarded, boolean canBePaid, boolean canBePinned, boolean canBeReplied, boolean canBeRepliedInAnotherChat, boolean canBeSaved, boolean canBeSharedInStory, boolean canEditSchedulingState, boolean canGetAddedReactions, 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.- Parameters:
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, editMessageMedia, 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.canEditSchedulingState
- True, if scheduling state of the message can be edited.canGetAddedReactions
- True, if the list of added reactions is available using getMessageAddedReactions.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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-