- Enclosing class:
- TdApi
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
Modifier and TypeFieldDescriptionlong
Identifier of the chat to which to forward messages.static final int
long
Identifier of the chat from which to forward messages.long[]
Identifiers of the messages to forward.long
If not 0, a message thread identifier in which the message will be sent; for forum threads only.boolean
Pass true to get fake messages instead of actually forwarding them.Options to be used to send the messages; pass null to use default options.boolean
Pass true to remove media captions of message copies.boolean
Pass true to copy content of the messages without reference to the original sender. -
Constructor Summary
ConstructorDescriptionForwards previously sent messages.ForwardMessages
(long chatId, long messageThreadId, long fromChatId, long[] messageIds, TdApi.MessageSendOptions options, boolean sendCopy, boolean removeCaption, boolean onlyPreview) Forwards previously sent messages.ForwardMessages
(DataInput input) Forwards previously sent messages. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdIdentifier of the chat to which to forward messages. -
messageThreadId
public long messageThreadIdIf not 0, a message thread identifier in which the message will be sent; for forum threads only. -
fromChatId
public long fromChatIdIdentifier of the chat from which to forward messages. -
messageIds
public long[] messageIdsIdentifiers 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
public boolean sendCopyPass true to copy content of the messages without reference to the original sender. Always true if the messages are forwarded to a secret chat or are local. -
removeCaption
public boolean removeCaptionPass true to remove media captions of message copies. Ignored if sendCopy is false. -
onlyPreview
public boolean onlyPreviewPass true to get fake messages instead of actually forwarding them. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
ForwardMessages
public ForwardMessages()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. ReturnsMessages
-
ForwardMessages
public ForwardMessages(long chatId, long messageThreadId, long fromChatId, long[] messageIds, TdApi.MessageSendOptions options, boolean sendCopy, boolean removeCaption, boolean onlyPreview) 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. ReturnsMessages
- Parameters:
chatId
- long Identifier of the chat to which to forward messages.messageThreadId
- long If not 0, a message thread identifier in which the message will be sent; for forum threads only.fromChatId
- long Identifier of the chat from which to forward messages.messageIds
- long[] Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages can be forwarded simultaneously.options
- MessageSendOptions Options to be used to send the messages; pass null to use default options.sendCopy
- boolean Pass true to copy content of the messages without reference to the original sender. Always true if the messages are forwarded to a secret chat or are local.removeCaption
- boolean Pass true to remove media captions of message copies. Ignored if sendCopy is false.onlyPreview
- boolean Pass true to get fake messages instead of actually forwarding them.
-
ForwardMessages
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. ReturnsMessages
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-