java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InputMessageContent
it.tdlight.jni.TdApi.InputMessageForwarded
- Enclosing class:
- TdApi
A forwarded message.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Options to be used to copy content of the message without reference to the original sender; pass null to forward the message as usual.long
Identifier for the chat this forwarded message came from.boolean
True, if a game message is being shared from a launched game; applies only to game messages.long
Identifier of the message to forward. -
Constructor Summary
ConstructorDescriptionA forwarded message.InputMessageForwarded
(long fromChatId, long messageId, boolean inGameShare, TdApi.MessageCopyOptions copyOptions) A forwarded message.InputMessageForwarded
(DataInput input) A forwarded message. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
fromChatId
public long fromChatIdIdentifier for the chat this forwarded message came from. -
messageId
public long messageIdIdentifier of the message to forward. A message can be forwarded only if message.canBeForwarded. -
copyOptions
Options to be used to copy content of the message without reference to the original sender; pass null to forward the message as usual. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InputMessageForwarded
public InputMessageForwarded()A forwarded message. -
InputMessageForwarded
public InputMessageForwarded(long fromChatId, long messageId, boolean inGameShare, TdApi.MessageCopyOptions copyOptions) A forwarded message.- Parameters:
fromChatId
- Identifier for the chat this forwarded message came from.messageId
- Identifier of the message to forward. A message can be forwarded only if message.canBeForwarded.inGameShare
- True, if a game message is being shared from a launched game; applies only to game messages.copyOptions
- Options to be used to copy content of the message without reference to the original sender; pass null to forward the message as usual.
-
InputMessageForwarded
A forwarded message.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-