From cae3744d73b7847d9c44ae059e4cb5e10756770c Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 25 Sep 2021 04:11:58 +0000 Subject: [PATCH] Update content of files --- .../constructor/updateChatUserTyping.html | 160 ++++++++++++++ .../method/auth.resetAuthorizations | 156 ++++++++++++++ .../method/messages.deleteHistory | 201 ++++++++++++++++++ .../constructor/pageBlockDetails.html | 162 ++++++++++++++ .../constructor/webDocument.html | 167 +++++++++++++++ 5 files changed, 846 insertions(+) create mode 100644 data/core.telegram.org/constructor/updateChatUserTyping.html create mode 100644 data/core.telegram.org/method/auth.resetAuthorizations create mode 100644 data/core.telegram.org/method/messages.deleteHistory create mode 100644 data/corefork.telegram.org/constructor/pageBlockDetails.html create mode 100644 data/corefork.telegram.org/constructor/webDocument.html diff --git a/data/core.telegram.org/constructor/updateChatUserTyping.html b/data/core.telegram.org/constructor/updateChatUserTyping.html new file mode 100644 index 0000000000..9a87b9f494 --- /dev/null +++ b/data/core.telegram.org/constructor/updateChatUserTyping.html @@ -0,0 +1,160 @@ + + + + + updateChatUserTyping + + + + + + + + + + + + + +
+ +
+
+
+ +

updateChatUserTyping

+ +

The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no repeated update received after 6 seconds, it should be considered that the user stopped doing whatever he's been doing.

+

+
updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
chat_idintGroup id
user_idintUser id
actionSendMessageActionType of action
Parameter added in Layer 17.
+

Type

+

Update

+

Related pages

+

Layers

+

Below you will find information on scheme changes. For more details on the use of layers, see Invoking API methods.

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/auth.resetAuthorizations b/data/core.telegram.org/method/auth.resetAuthorizations new file mode 100644 index 0000000000..875f0a5925 --- /dev/null +++ b/data/core.telegram.org/method/auth.resetAuthorizations @@ -0,0 +1,156 @@ + + + + + auth.resetAuthorizations + + + + + + + + + + + + + +
+ +
+
+
+ +

auth.resetAuthorizations

+ +

Terminates all user's authorized sessions except for the current one.

+

After calling this method it is necessary to reregister the current device using the method account.registerDevice

+

+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+auth.resetAuthorizations#9fab0d1a = Bool;

+

Parameters

+

This constructor does not require any parameters.

+

Result

+

Bool

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
406FRESH_RESET_AUTHORISATION_FORBIDDENYou can't logout other sessions if less than 24 hours have passed since you logged on the current session
+

Related pages

+

account.registerDevice

+

Register device to receive PUSH notifications

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/core.telegram.org/method/messages.deleteHistory b/data/core.telegram.org/method/messages.deleteHistory new file mode 100644 index 0000000000..a58dc9709e --- /dev/null +++ b/data/core.telegram.org/method/messages.deleteHistory @@ -0,0 +1,201 @@ + + + + + messages.deleteHistory + + + + + + + + + + + + + +
+ +
+
+
+ +

messages.deleteHistory

+ +

Deletes communication history.

+

+
messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;
+---functions---
+messages.deleteHistory#1c015b09 flags:# just_clear:flags.0?true revoke:flags.1?true peer:InputPeer max_id:int = messages.AffectedHistory;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
just_clearflags.0?trueJust clear history for the current user, without actually removing messages for every chat user
revokeflags.1?trueWhether to delete the message history for all chat participants
peerInputPeerUser or chat, communication history of which will be deleted
max_idintMaximum ID of message to delete
+

Result

+

messages.AffectedHistory

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ID_INVALIDThe provided chat id is invalid
400MESSAGE_ID_INVALIDThe provided message id is invalid
400MSG_ID_INVALIDInvalid message ID provided
400PEER_ID_INVALIDThe provided peer id is invalid
+ +
+ +
+
+ +
+ + + + + + diff --git a/data/corefork.telegram.org/constructor/pageBlockDetails.html b/data/corefork.telegram.org/constructor/pageBlockDetails.html new file mode 100644 index 0000000000..e674155ea5 --- /dev/null +++ b/data/corefork.telegram.org/constructor/pageBlockDetails.html @@ -0,0 +1,162 @@ + + + + + pageBlockDetails + + + + + + + + + + + + + +
+ +
+
+
+ +

pageBlockDetails

+ +

A collapsible details block

+

+ +
+
pageBlockDetails#76768bed flags:# open:flags.0?true blocks:Vector<PageBlock> title:RichText = PageBlock;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
openflags.0?trueWhether the block is open by default
blocksVector<PageBlock>Block contents
titleRichTextAlways visible heading for the block
+

Type

+

PageBlock

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/corefork.telegram.org/constructor/webDocument.html b/data/corefork.telegram.org/constructor/webDocument.html new file mode 100644 index 0000000000..7ec05aef55 --- /dev/null +++ b/data/corefork.telegram.org/constructor/webDocument.html @@ -0,0 +1,167 @@ + + + + + webDocument + + + + + + + + + + + + + +
+ +
+
+
+ +

webDocument

+ +

Remote document

+

+ +
+
webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector<DocumentAttribute> = WebDocument;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlstringDocument URL
access_hashlongAccess hash
sizeintFile size
mime_typestringMIME type
attributesVector<DocumentAttribute>Attributes for media types
+

Type

+

WebDocument

+ +
+ +
+
+ +
+ + + + + +