Package it.tdlight.jni
Class TdApi.ForwardMessages
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.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 long
chatId
Identifier of the chat to which to forward messages.static int
CONSTRUCTOR
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.boolean
removeCaption
If true, media caption of message copies will be removed.boolean
sendCopy
If true, content of the messages will be copied without links to the original messages. -
Constructor Summary
Constructors Constructor Description ForwardMessages()
Forwards previously sent messages.ForwardMessages(long chatId, long fromChatId, long[] messageIds, TdApi.MessageSendOptions options, boolean sendCopy, boolean removeCaption, boolean onlyPreview)
Forwards previously sent messages.ForwardMessages(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
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. -
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. -
sendCopy
public boolean sendCopyIf true, content of the messages will be copied without links to the original messages. Always true if the messages are forwarded to a secret chat. -
removeCaption
public boolean removeCaptionIf true, media caption of message copies will be removed. Ignored if sendCopy is false. -
onlyPreview
public boolean onlyPreviewIf true, messages will not be forwarded and instead fake messages will be returned. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
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.Returns
Messages
-
ForwardMessages
public ForwardMessages(long chatId, 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.Returns
Messages
- Parameters:
chatId
- long Identifier of the chat to which to forward messages.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.sendCopy
- boolean If true, content of the messages will be copied without links to the original messages. Always true if the messages are forwarded to a secret chat.removeCaption
- boolean If true, media caption of message copies will be removed. Ignored if sendCopy is false.onlyPreview
- boolean If true, messages will not be forwarded and instead fake messages will be returned.
-
ForwardMessages
- 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()
-