Package org.drinkless.tdlib
Class TdApi.ForwardMessages
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.ForwardMessages
-
- Enclosing class:
- TdApi
public static class TdApi.ForwardMessages extends TdApi.Function
Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in messageIds. If a message can't be forwarded, null will be returned instead of the message.Returns
Messages
-
-
Field Summary
Fields Modifier and Type Field Description longchatIdIdentifier of the chat to which to forward messages.static intCONSTRUCTORIdentifier uniquely determining type of the object.longfromChatIdIdentifier of the chat from which to forward messages.long[]messageIdsIdentifiers of the messages to forward.booleanonlyPreviewIf true, messages will not be forwarded and instead fake messages will be returned.TdApi.MessageSendOptionsoptionsOptions to be used to send the messages; pass null to use default options.booleanremoveCaptionIf true, media caption of message copies will be removed.booleansendCopyIf true, content of the messages will be copied without reference to the original sender.
-
Constructor Summary
Constructors Constructor Description ForwardMessages()Default constructor for a function, which forwards previously sent messages.ForwardMessages(long chatId, long fromChatId, long[] messageIds, TdApi.MessageSendOptions options, boolean sendCopy, boolean removeCaption, boolean onlyPreview)Creates a function, which forwards previously sent messages.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
chatId
public long chatId
Identifier of the chat to which to forward messages.
-
fromChatId
public long fromChatId
Identifier of the chat from which to forward messages.
-
messageIds
public long[] messageIds
Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages can be forwarded simultaneously.
-
options
public TdApi.MessageSendOptions options
Options to be used to send the messages; pass null to use default options.
-
sendCopy
public boolean sendCopy
If true, content of the messages will be copied without reference to the original sender. Always true if the messages are forwarded to a secret chat or are local.
-
removeCaption
public boolean removeCaption
If true, media caption of message copies will be removed. Ignored if sendCopy is false.
-
onlyPreview
public boolean onlyPreview
If true, messages will not be forwarded and instead fake messages will be returned.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ForwardMessages
public ForwardMessages()
Default constructor for a function, which forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in messageIds. If a message can't be forwarded, null will be returned instead of the message.Returns
Messages
-
ForwardMessages
public ForwardMessages(long chatId, long fromChatId, long[] messageIds, TdApi.MessageSendOptions options, boolean sendCopy, boolean removeCaption, boolean onlyPreview)Creates a function, which forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in messageIds. If a message can't be forwarded, null will be returned instead of the message.Returns
Messages- Parameters:
chatId- Identifier of the chat to which to forward messages.fromChatId- Identifier of the chat from which to forward messages.messageIds- Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages can be forwarded simultaneously.options- Options to be used to send the messages; pass null to use default options.sendCopy- If true, content of the messages will be copied without reference to the original sender. Always true if the messages are forwarded to a secret chat or are local.removeCaption- If true, media caption of message copies will be removed. Ignored if sendCopy is false.onlyPreview- If true, messages will not be forwarded and instead fake messages will be returned.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-