public static class TdApi.ForwardMessages extends TdApi.Function
Returns Messages
TdApi.Function.Constructors
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.
|
boolean |
onlyPreview
If true, messages will not be forwarded and instead fake messages will be returned.
|
TdApi.MessageSendOptions |
options
Options to be used to send the messages; pass null to use default options.
|
boolean |
removeCaption
If true, media caption of message copies will be removed.
|
boolean |
sendCopy
If true, content of the messages will be copied without reference to the original sender.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long chatId
public long fromChatId
public long[] messageIds
public TdApi.MessageSendOptions options
public boolean sendCopy
public boolean removeCaption
public boolean onlyPreview
public static final int CONSTRUCTOR
public ForwardMessages()
Returns Messages
public ForwardMessages(long chatId, long fromChatId, long[] messageIds, TdApi.MessageSendOptions options, boolean sendCopy, boolean removeCaption, boolean onlyPreview)
Returns Messages
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.public int getConstructor()
getConstructor
in class TdApi.Function