public static class TdApi.ForwardMessages extends TdApi.Function<TdApi.Messages>
Returns Messages
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Identifier of the chat to which to forward messages.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
fromChatId
Identifier of the chat from which to forward messages.
|
long[] |
messageIds
Identifiers of the messages to forward.
|
long |
messageThreadId
If not 0, the message thread identifier in which the message will be sent; for forum threads only.
|
TdApi.MessageSendOptions |
options
Options to be used to send the messages; pass null to use default options.
|
boolean |
removeCaption
Pass true to remove media captions of message copies.
|
boolean |
sendCopy
Pass true to copy content of the messages without reference to the original sender.
|
| Constructor and Description |
|---|
ForwardMessages()
Default constructor for a function, which forwards previously sent messages.
|
ForwardMessages(long chatId,
long messageThreadId,
long fromChatId,
long[] messageIds,
TdApi.MessageSendOptions options,
boolean sendCopy,
boolean removeCaption)
Creates a function, which forwards previously sent messages.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long messageThreadId
public long fromChatId
public long[] messageIds
public TdApi.MessageSendOptions options
public boolean sendCopy
public boolean removeCaption
public static final int CONSTRUCTOR
public ForwardMessages()
Returns Messages
public ForwardMessages(long chatId,
long messageThreadId,
long fromChatId,
long[] messageIds,
TdApi.MessageSendOptions options,
boolean sendCopy,
boolean removeCaption)
Returns Messages
chatId - Identifier of the chat to which to forward messages.messageThreadId - If not 0, the message thread identifier in which the message will be sent; for forum threads only.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. A message can be forwarded only if messageProperties.canBeForwarded.options - Options to be used to send the messages; pass null to use default options.sendCopy - 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. Use messageProperties.canBeSaved and messageProperties.canBeCopiedToSecretChat to check whether the message is suitable.removeCaption - Pass true to remove media captions of message copies. Ignored if sendCopy is false.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object