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
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¶
Identifier of the sender of the message
reply_to¶
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¶
The content of the message to be added