- Enclosing class:
- TdApi
Adds a local message to a chat. The
message is persistent across application
restarts only if the message database
is used. Returns the added message.
Returns
Message-
Field Summary
FieldsModifier and TypeFieldDescriptionlongTarget chat.static final intbooleanPass true to disable notification for the message.The content of the message to be added.longIdentifier of the replied message; 0 if none.Identifier of the sender of the message. -
Constructor Summary
ConstructorsConstructorDescriptionAdds a local message to a chat.AddLocalMessage(long chatId, TdApi.MessageSender senderId, long replyToMessageId, boolean disableNotification, TdApi.InputMessageContent inputMessageContent) Adds a local message to a chat.AddLocalMessage(DataInput input) Adds a local message to a chat. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toStringMethods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdTarget chat. -
senderId
Identifier of the sender of the message. -
replyToMessageId
public long replyToMessageIdIdentifier of the replied message; 0 if none. -
disableNotification
public boolean disableNotificationPass true to disable notification for the message. -
inputMessageContent
The content of the message to be added. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
AddLocalMessage
public AddLocalMessage()Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message. ReturnsMessage -
AddLocalMessage
public AddLocalMessage(long chatId, TdApi.MessageSender senderId, long replyToMessageId, boolean disableNotification, TdApi.InputMessageContent inputMessageContent) Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message. ReturnsMessage- Parameters:
chatId- long Target chat.senderId- MessageSender Identifier of the sender of the message.replyToMessageId- long Identifier of the replied message; 0 if none.disableNotification- boolean Pass true to disable notification for the message.inputMessageContent- InputMessageContent The content of the message to be added.
-
AddLocalMessage
Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message. ReturnsMessage- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-