Skip to content

addLocalMessage

Function · TDLib 1.8.67 · d1085f9c

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

addLocalMessage(
  chat_id: int53,
  sender_id: MessageSender,
  reply_to: InputMessageReplyTo,
  disable_notification: Bool,
  input_message_content: InputMessageContent
) → Message

chat_id

int53

Target chat; channel direct messages chats aren't supported

sender_id

MessageSender

Identifier of the sender of the message

reply_to

InputMessageReplyTo

Information about the message or story to be replied; pass null if none

disable_notification

Bool

Pass true to disable notification for the message

input_message_content

InputMessageContent

The content of the message to be added