diff --git a/data/core.telegram.org/api/drafts.html b/data/core.telegram.org/api/drafts.html new file mode 100644 index 0000000000..b6ffd788e0 --- /dev/null +++ b/data/core.telegram.org/api/drafts.html @@ -0,0 +1,131 @@ + + + + + Message drafts + + + + + + + + + + + + + +
+ +
+
+
+ +

Message drafts

+ +
+ +

Message drafts in Telegram allow syncing the text typed into message fields between devices.

+

Drafts

+

Drafts are represented by the DraftMessage constructors. +The parameters of the peer-specific draft should be used as defaults when composing a message to be sent to a certain peer (in the case of media, the same draft should still be used as base, the message will become the caption). +If the user exits the app before sending the message, the message should be saved as a draft:

+

Saving drafts

+

Drafts can be saved using the messages.saveDraft method.

+

Downloading drafts

+

New drafts are automatically sent to all devices via updateDraftMessage updates.

+

Dialog objects fetched via the API also contain the draft associated with the dialog.

+

Clearing drafts

+

Drafts can be cleared by setting the clear_draft flag when sending messages or media using messages.sendMessage, messages.sendMedia, messages.sendMultiMedia, messages.sendInlineBotResult and similar or manually by passing empty values to messages.saveDraft.

+ +
+ +
+
+ +
+ + + + + + + + diff --git a/data/corefork.telegram.org/constructor/decryptedMessageActionFlushHistory.html b/data/core.telegram.org/constructor/inputPrivacyKeyForwards.html similarity index 88% rename from data/corefork.telegram.org/constructor/decryptedMessageActionFlushHistory.html rename to data/core.telegram.org/constructor/inputPrivacyKeyForwards.html index 1ca1086ed4..641c41488e 100644 --- a/data/corefork.telegram.org/constructor/decryptedMessageActionFlushHistory.html +++ b/data/core.telegram.org/constructor/inputPrivacyKeyForwards.html @@ -2,12 +2,12 @@ - decryptedMessageActionFlushHistory + inputPrivacyKeyForwards - - + + - + @@ -36,10 +36,10 @@
- -

decryptedMessageActionFlushHistory

+ +

inputPrivacyKeyForwards

-

The entire message history has been deleted.

+

Whether messages forwarded from this user will be anonymous

-
===8===
-decryptedMessageActionFlushHistory#6719e45c = DecryptedMessageAction;

+
inputPrivacyKeyForwards#a4dd4c08 = InputPrivacyKey;

Parameters

This constructor does not require any parameters.

Type

-

DecryptedMessageAction

+

InputPrivacyKey

@@ -96,9 +95,9 @@