Package org.drinkless.tdlib
Class TdApi.MessageProperties
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageProperties
- Enclosing class:
- TdApi
Contains properties of a message and describes actions that can be done with the message right now.
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
True, if an offer can be added to the message using addOffer.boolean
True, if tasks can be added to the message's checklist using addChecklistTasks if the current user has Telegram Premium subscription.boolean
True, if the message is a suggested post that can be approved by the user using approveSuggestedPost.boolean
True, if content of the message can be copied using inputMessageForwarded or forwardMessages with copy options.boolean
True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options.boolean
True, if the message is a suggested post that can be declined by the user using declineSuggestedPost.boolean
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, editMessageCaption, or editMessageReplyMarkup.boolean
True, if the message can be forwarded using inputMessageForwarded or forwardMessages without copy options.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.boolean
True, if the message can be shared in a story using inputStoryAreaTypeMessage.boolean
True, if the message can be edited using the method editMessageMedia.boolean
True, if scheduling state of the message can be edited.boolean
True, if another price or post send time can be suggested using addOffer.boolean
True, if author of the message sent on behalf of a chat can be received through getMessageAuthor.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 advertisements for video of the message can be received though getVideoMessageAdvertisements.boolean
True, if chat members already viewed the message can be received through getMessageViewers.boolean
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.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
ConstructorsConstructorDescriptionContains properties of a message and describes actions that can be done with the message right now.MessageProperties
(boolean canAddOffer, boolean canAddTasks, boolean canBeApproved, boolean canBeCopied, boolean canBeCopiedToSecretChat, boolean canBeDeclined, 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 canEditSuggestedPostInfo, boolean canGetAuthor, boolean canGetEmbeddingCode, boolean canGetLink, boolean canGetMediaTimestampLinks, boolean canGetMessageThread, boolean canGetReadDate, boolean canGetStatistics, boolean canGetVideoAdvertisements, boolean canGetViewers, boolean canMarkTasksAsDone, 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 org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
canAddOffer
public boolean canAddOfferTrue, if an offer can be added to the message using addOffer. -
canAddTasks
public boolean canAddTasksTrue, if tasks can be added to the message's checklist using addChecklistTasks if the current user has Telegram Premium subscription. -
canBeApproved
public boolean canBeApprovedTrue, if the message is a suggested post that can be approved by the user using approveSuggestedPost. -
canBeCopied
public boolean canBeCopiedTrue, if content of the message can be copied using inputMessageForwarded or forwardMessages with copy options. -
canBeCopiedToSecretChat
public boolean canBeCopiedToSecretChatTrue, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options. -
canBeDeclined
public boolean canBeDeclinedTrue, if the message is a suggested post that can be declined by the user using declineSuggestedPost. -
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, 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. -
canBeForwarded
public boolean canBeForwardedTrue, if the message can be forwarded using inputMessageForwarded or forwardMessages without copy options. -
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. -
canEditMedia
public boolean canEditMediaTrue, if the message can be edited using the method editMessageMedia. -
canEditSchedulingState
public boolean canEditSchedulingStateTrue, if scheduling state of the message can be edited. -
canEditSuggestedPostInfo
public boolean canEditSuggestedPostInfoTrue, if another price or post send time can be suggested using addOffer. -
canGetAuthor
public boolean canGetAuthorTrue, if author of the message sent on behalf of a chat can be received through getMessageAuthor. -
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. -
canGetVideoAdvertisements
public boolean canGetVideoAdvertisementsTrue, if advertisements for video of the message can be received though getVideoMessageAdvertisements. -
canGetViewers
public boolean canGetViewersTrue, if chat members already viewed the message can be received through getMessageViewers. -
canMarkTasksAsDone
public boolean canMarkTasksAsDoneTrue, 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. -
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 canAddOffer, boolean canAddTasks, boolean canBeApproved, boolean canBeCopied, boolean canBeCopiedToSecretChat, boolean canBeDeclined, 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 canEditSuggestedPostInfo, boolean canGetAuthor, boolean canGetEmbeddingCode, boolean canGetLink, boolean canGetMediaTimestampLinks, boolean canGetMessageThread, boolean canGetReadDate, boolean canGetStatistics, boolean canGetVideoAdvertisements, boolean canGetViewers, boolean canMarkTasksAsDone, 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:
canAddOffer
- True, if an offer can be added to the message using addOffer.canAddTasks
- True, if tasks can be added to the message's checklist using addChecklistTasks if the current user has Telegram Premium subscription.canBeApproved
- True, if the message is a suggested post that can be approved by the user using approveSuggestedPost.canBeCopied
- True, if content of the message can be copied using inputMessageForwarded or forwardMessages with copy options.canBeCopiedToSecretChat
- True, if content of the message can be copied to a secret chat using inputMessageForwarded or forwardMessages with copy options.canBeDeclined
- True, if the message is a suggested post that can be declined by the user using declineSuggestedPost.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, poll, and checklist messages this fields shows whether editMessageLiveLocation, stopPoll, or editMessageChecklist respectively can be used with this message.canBeForwarded
- True, if the message can be forwarded using inputMessageForwarded or forwardMessages without copy options.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.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.canEditSuggestedPostInfo
- True, if another price or post send time can be suggested using addOffer.canGetAuthor
- True, if author of the message sent on behalf of a chat can be received through getMessageAuthor.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.canGetVideoAdvertisements
- True, if advertisements for video of the message can be received though getVideoMessageAdvertisements.canGetViewers
- True, if chat members already viewed the message can be received through getMessageViewers.canMarkTasksAsDone
- 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.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
-