public static class TdApi.ForwardMessages extends TdApi.Function
Returns Messages
TdApi.Function.Constructors| Modifier and Type | Field and Description |
|---|---|
boolean |
asAlbum
True, if the messages should be grouped into an album after forwarding.
|
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.
|
TdApi.SendMessageOptions |
options
Options to be used to send the messages.
|
boolean |
removeCaption
True, if media captions of message copies needs to be removed.
|
boolean |
sendCopy
True, if content of the messages needs to be copied without links to the original messages.
|
| Constructor and Description |
|---|
ForwardMessages()
Default constructor for a function, which forwards previously sent messages.
|
ForwardMessages(long chatId,
long fromChatId,
long[] messageIds,
TdApi.SendMessageOptions options,
boolean asAlbum,
boolean sendCopy,
boolean removeCaption)
Creates a function, which forwards previously sent messages.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor() |
toStringpublic long chatId
public long fromChatId
public long[] messageIds
public TdApi.SendMessageOptions options
public boolean asAlbum
public boolean sendCopy
public boolean removeCaption
public static final int CONSTRUCTOR
public ForwardMessages()
Returns Messages
public ForwardMessages(long chatId,
long fromChatId,
long[] messageIds,
TdApi.SendMessageOptions options,
boolean asAlbum,
boolean sendCopy,
boolean removeCaption)
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.options - Options to be used to send the messages.asAlbum - True, if the messages should be grouped into an album after forwarding. For this to work, no more than 10 messages may be forwarded, and all of them must be photo or video messages.sendCopy - True, if content of the messages needs to be copied without links to the original messages. Always true if the messages are forwarded to a secret chat.removeCaption - True, if media captions of message copies needs to be removed. Ignored if sendCopy is false.public int getConstructor()
getConstructor in class TdApi.Function