From 9eb5ea4305e0ed06468d4458fe9b4bae06da595b Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 13 Mar 2022 18:45:56 +0000 Subject: [PATCH] Update content of files --- data/corefork.telegram.org/api/layers.html | 47 ++++++++++-- .../constructor/groupCall.html | 6 +- .../constructor/groupCallStreamChannel.html | 59 +++++++++++++-- .../inputReportReasonIllegalDrugs.html | 31 ++++++-- .../inputReportReasonPersonalDetails.html | 31 ++++++-- .../constructor/phone.groupCallStreamChannels | 46 ++++++++++-- .../constructor/phone.groupCallStreamRtmpUrl | 51 +++++++++++-- .../method/account.updatePasswordSettings | 5 ++ .../method/contacts.resolvePhone | 48 ++++++++++-- .../method/messages.deleteHistory | 5 ++ .../method/messages.getStickerSet | 5 -- .../method/messages.searchSentMedia | 63 ++++++++++++++-- .../method/messages.sendMedia | 5 -- .../method/phone.createGroupCall | 2 +- .../method/phone.getGroupCallStreamChannels | 75 +++++++++++++++++-- .../method/phone.getGroupCallStreamRtmpUrl | 56 ++++++++++++-- data/corefork.telegram.org/methods.html | 16 ++++ .../type/GroupCallStreamChannel.html | 42 +++++++++-- .../type/ReportReason.html | 8 ++ .../type/contacts.ResolvedPeer | 4 + .../type/messages.Messages | 4 + .../type/phone.GroupCallStreamChannels | 61 +++++++++++++-- .../type/phone.GroupCallStreamRtmpUrl | 61 +++++++++++++-- 23 files changed, 628 insertions(+), 103 deletions(-) diff --git a/data/corefork.telegram.org/api/layers.html b/data/corefork.telegram.org/api/layers.html index b62237ef7b..172d47dacb 100644 --- a/data/corefork.telegram.org/api/layers.html +++ b/data/corefork.telegram.org/api/layers.html @@ -44,19 +44,57 @@ Layer…">

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

-

Layer 138

-

Video stickers, better reactions, RTMP streams in group calls and livestreams.

+

Layer 139

+

RTMP streams in group calls and livestreams, link to users by their phone number, browse recently sent media.

The RPC error database » was also updated.

Schema changes

New Methods
+
Changed Methods
+ +
New Constructors
+ +
Changed Constructors
+ +

Schema

+
groupCall#d597650c flags:# join_muted:flags.1?true can_change_join_muted:flags.2?true join_date_asc:flags.6?true schedule_start_subscribed:flags.8?true can_start_video:flags.9?true record_video_active:flags.11?true rtmp_stream:flags.12?true listeners_hidden:flags.13?true id:long access_hash:long participants_count:int title:flags.3?string stream_dc_id:flags.4?int record_start_date:flags.5?int schedule_date:flags.7?int unmuted_video_count:flags.10?int unmuted_video_limit:int version:int = GroupCall;
+groupCallStreamChannel#80eb48af channel:int scale:int last_timestamp_ms:long = GroupCallStreamChannel;
+phone.groupCallStreamChannels#d0e482b2 channels:Vector<GroupCallStreamChannel> = phone.GroupCallStreamChannels;
+inputReportReasonIllegalDrugs#0a8eb2be = ReportReason; +inputReportReasonPersonalDetails#9ec7863d = ReportReason;
+phone.groupCallStreamRtmpUrl#2dbf3432 url:string key:string = phone.GroupCallStreamRtmpUrl;
+---functions---
+phone.createGroupCall#48cdc6d8 flags:# rtmp_stream:flags.2?true peer:InputPeer random_id:int title:flags.0?string schedule_date:flags.1?int = Updates;
+contacts.resolvePhone#8af94344 phone:string = contacts.ResolvedPeer;
+phone.getGroupCallStreamChannels#1ab21940 call:InputGroupCall = phone.GroupCallStreamChannels; +phone.getGroupCallStreamRtmpUrl#deb3abbf peer:InputPeer revoke:Bool = phone.GroupCallStreamRtmpUrl;
+messages.searchSentMedia#107e31a0 q:string filter:MessagesFilter limit:int = messages.Messages;
+

Layer 138

+

Video stickers, better reactions.

+

Schema changes

+
New Methods
+
Changed Methods
New Constructors
+

Change group call settings

+

phone.getGroupParticipants

+

Get group call participants

diff --git a/data/corefork.telegram.org/constructor/groupCallStreamChannel.html b/data/corefork.telegram.org/constructor/groupCallStreamChannel.html index 56876a49dc..907e3f6bb4 100644 --- a/data/corefork.telegram.org/constructor/groupCallStreamChannel.html +++ b/data/corefork.telegram.org/constructor/groupCallStreamChannel.html @@ -2,12 +2,12 @@ - Page not found + groupCallStreamChannel - - + + - + @@ -36,10 +36,55 @@
- -

Page not found

+ +

groupCallStreamChannel

-
The page has not been saved
+

Info about an RTMP stream in a group call or livestream

+

+ +
+
groupCallStreamChannel#80eb48af channel:int scale:int last_timestamp_ms:long = GroupCallStreamChannel;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelintChannel ID
scaleintSpecifies the duration of the video segment to fetch in milliseconds, by bitshifting 1000 to the right scale times: duration_ms := 1000 >> scale.
last_timestamp_mslongLast seen timestamp to easily start fetching livestream chunks using inputGroupCallStream
+

Type

+

GroupCallStreamChannel

+

Related pages

+

inputGroupCallStream

+

Chunk of a livestream

diff --git a/data/corefork.telegram.org/constructor/inputReportReasonIllegalDrugs.html b/data/corefork.telegram.org/constructor/inputReportReasonIllegalDrugs.html index 56876a49dc..2bb3ed3302 100644 --- a/data/corefork.telegram.org/constructor/inputReportReasonIllegalDrugs.html +++ b/data/corefork.telegram.org/constructor/inputReportReasonIllegalDrugs.html @@ -2,12 +2,12 @@ - Page not found + inputReportReasonIllegalDrugs - - + + - + @@ -36,10 +36,27 @@
- -

Page not found

+ +

inputReportReasonIllegalDrugs

-
The page has not been saved
+

Report for illegal drugs

+

+ +
+
inputReportReasonIllegalDrugs#a8eb2be = ReportReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ReportReason

diff --git a/data/corefork.telegram.org/constructor/inputReportReasonPersonalDetails.html b/data/corefork.telegram.org/constructor/inputReportReasonPersonalDetails.html index 56876a49dc..9c2df33822 100644 --- a/data/corefork.telegram.org/constructor/inputReportReasonPersonalDetails.html +++ b/data/corefork.telegram.org/constructor/inputReportReasonPersonalDetails.html @@ -2,12 +2,12 @@ - Page not found + inputReportReasonPersonalDetails - - + + - + @@ -36,10 +36,27 @@
- -

Page not found

+ +

inputReportReasonPersonalDetails

-
The page has not been saved
+

Report for divulgation of personal details

+

+ +
+
inputReportReasonPersonalDetails#9ec7863d = ReportReason;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

ReportReason

diff --git a/data/corefork.telegram.org/constructor/phone.groupCallStreamChannels b/data/corefork.telegram.org/constructor/phone.groupCallStreamChannels index 56876a49dc..630af7b520 100644 --- a/data/corefork.telegram.org/constructor/phone.groupCallStreamChannels +++ b/data/corefork.telegram.org/constructor/phone.groupCallStreamChannels @@ -2,12 +2,12 @@ - Page not found + phone.groupCallStreamChannels - - + + - + @@ -36,10 +36,42 @@
- -

Page not found

+ +

phone.groupCallStreamChannels

-
The page has not been saved
+

Info about RTMP streams in a group call or livestream

+

+ +
+
phone.groupCallStreamChannels#d0e482b2 channels:Vector<GroupCallStreamChannel> = phone.GroupCallStreamChannels;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
channelsVector<GroupCallStreamChannel>RTMP streams
+

Type

+

phone.GroupCallStreamChannels

diff --git a/data/corefork.telegram.org/constructor/phone.groupCallStreamRtmpUrl b/data/corefork.telegram.org/constructor/phone.groupCallStreamRtmpUrl index 56876a49dc..d145253905 100644 --- a/data/corefork.telegram.org/constructor/phone.groupCallStreamRtmpUrl +++ b/data/corefork.telegram.org/constructor/phone.groupCallStreamRtmpUrl @@ -2,12 +2,12 @@ - Page not found + phone.groupCallStreamRtmpUrl - - + + - + @@ -36,10 +36,47 @@
- -

Page not found

+ +

phone.groupCallStreamRtmpUrl

-
The page has not been saved
+

RTMP URL and stream key to be used in streaming software

+

+ +
+
phone.groupCallStreamRtmpUrl#2dbf3432 url:string key:string = phone.GroupCallStreamRtmpUrl;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
urlstringRTMP URL
keystringStream key
+

Type

+

phone.GroupCallStreamRtmpUrl

diff --git a/data/corefork.telegram.org/method/account.updatePasswordSettings b/data/corefork.telegram.org/method/account.updatePasswordSettings index fc6713f1c9..5db44211d0 100644 --- a/data/corefork.telegram.org/method/account.updatePasswordSettings +++ b/data/corefork.telegram.org/method/account.updatePasswordSettings @@ -97,6 +97,11 @@ 400 +EMAIL_INVALID +The specified email is invalid. + + +400 EMAIL_UNCONFIRMED Email unconfirmed. diff --git a/data/corefork.telegram.org/method/contacts.resolvePhone b/data/corefork.telegram.org/method/contacts.resolvePhone index 8ec571fb78..bf9149f6d0 100644 --- a/data/corefork.telegram.org/method/contacts.resolvePhone +++ b/data/corefork.telegram.org/method/contacts.resolvePhone @@ -2,12 +2,12 @@ - Page not found + contacts.resolvePhone - - + + - + @@ -36,10 +36,44 @@
- -

Page not found

+ +

contacts.resolvePhone

-
The page has not been saved
+

Resolve a phone number to get user info, if their privacy settings allow it.

+

+ +
+
contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector<Chat> users:Vector<User> = contacts.ResolvedPeer;
+---functions---
+contacts.resolvePhone#8af94344 phone:string = contacts.ResolvedPeer;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
phonestringPhone number in international format, possibly obtained from a t.me/+number or tg://resolve?phone=number URI.
+

Result

+

contacts.ResolvedPeer

diff --git a/data/corefork.telegram.org/method/messages.deleteHistory b/data/corefork.telegram.org/method/messages.deleteHistory index 81071a9777..e1f8dab6b5 100644 --- a/data/corefork.telegram.org/method/messages.deleteHistory +++ b/data/corefork.telegram.org/method/messages.deleteHistory @@ -126,6 +126,11 @@ 400 +MAX_DATE_INVALID +The specified maximum date is invalid. + + +400 MESSAGE_ID_INVALID The provided message id is invalid. diff --git a/data/corefork.telegram.org/method/messages.getStickerSet b/data/corefork.telegram.org/method/messages.getStickerSet index 36edfc90db..9a0a7c4557 100644 --- a/data/corefork.telegram.org/method/messages.getStickerSet +++ b/data/corefork.telegram.org/method/messages.getStickerSet @@ -91,11 +91,6 @@ -400 -EMOTICON_STICKERPACK_MISSING -  - - 406 STICKERSET_INVALID The provided sticker set is invalid. diff --git a/data/corefork.telegram.org/method/messages.searchSentMedia b/data/corefork.telegram.org/method/messages.searchSentMedia index 8ec571fb78..db76276522 100644 --- a/data/corefork.telegram.org/method/messages.searchSentMedia +++ b/data/corefork.telegram.org/method/messages.searchSentMedia @@ -2,12 +2,12 @@ - Page not found + messages.searchSentMedia - - + + - + @@ -36,10 +36,59 @@
- -

Page not found

+ +

messages.searchSentMedia

-
The page has not been saved
+

View and search recently sent media.
+This method does not support pagination.

+

+ +
+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesNotModified#74535f21 count:int = messages.Messages;
+---functions---
+messages.searchSentMedia#107e31a0 q:string filter:MessagesFilter limit:int = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
qstringOptional search query
filterMessagesFilterMessage filter
limitintMaximum number of results to return (max 100).
+

Result

+

messages.Messages

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/messages.sendMedia b/data/corefork.telegram.org/method/messages.sendMedia index d61b033cc4..ce910c2bb3 100644 --- a/data/corefork.telegram.org/method/messages.sendMedia +++ b/data/corefork.telegram.org/method/messages.sendMedia @@ -162,11 +162,6 @@ 400 -BOT_POLLS_DISABLED -  - - -400 BROADCAST_PUBLIC_VOTERS_FORBIDDEN You can't forward polls with public voters. diff --git a/data/corefork.telegram.org/method/phone.createGroupCall b/data/corefork.telegram.org/method/phone.createGroupCall index bdf3bb38a5..685c272c8b 100644 --- a/data/corefork.telegram.org/method/phone.createGroupCall +++ b/data/corefork.telegram.org/method/phone.createGroupCall @@ -79,7 +79,7 @@ rtmp_stream flags.2?true -Whether RTMP stream support should be enabled +Whether RTMP stream support should be enabled: only the group/supergroup/channel owner can use this flag. peer diff --git a/data/corefork.telegram.org/method/phone.getGroupCallStreamChannels b/data/corefork.telegram.org/method/phone.getGroupCallStreamChannels index 8ec571fb78..3611c37633 100644 --- a/data/corefork.telegram.org/method/phone.getGroupCallStreamChannels +++ b/data/corefork.telegram.org/method/phone.getGroupCallStreamChannels @@ -2,12 +2,12 @@ - Page not found + phone.getGroupCallStreamChannels - - + + - + @@ -36,10 +36,71 @@
- -

Page not found

+ +

phone.getGroupCallStreamChannels

-
The page has not been saved
+

Get info about RTMP streams in a group call or livestream.
+This method should be invoked to the same group/channel-related DC used for downloading livestream chunks.
+As usual, the media DC is preferred, if available.

+

+ +
+
phone.groupCallStreamChannels#d0e482b2 channels:Vector<GroupCallStreamChannel> = phone.GroupCallStreamChannels;
+---functions---
+phone.getGroupCallStreamChannels#1ab21940 call:InputGroupCall = phone.GroupCallStreamChannels;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
callInputGroupCallGroup call or livestream
+

Result

+

phone.GroupCallStreamChannels

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400GROUPCALL_INVALIDThe specified group call is invalid.
400GROUPCALL_JOIN_MISSINGYou haven't joined this group call.
+

Related pages

+

Uploading and Downloading Files

+

How to transfer large data batches correctly.

diff --git a/data/corefork.telegram.org/method/phone.getGroupCallStreamRtmpUrl b/data/corefork.telegram.org/method/phone.getGroupCallStreamRtmpUrl index 8ec571fb78..2d6ab84c56 100644 --- a/data/corefork.telegram.org/method/phone.getGroupCallStreamRtmpUrl +++ b/data/corefork.telegram.org/method/phone.getGroupCallStreamRtmpUrl @@ -2,12 +2,12 @@ - Page not found + phone.getGroupCallStreamRtmpUrl - - + + - + @@ -36,10 +36,52 @@
- -

Page not found

+ +

phone.getGroupCallStreamRtmpUrl

-
The page has not been saved
+

Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with phone.createGroupCall (the rtmp_stream flag must be set).

+

+ +
+
phone.groupCallStreamRtmpUrl#2dbf3432 url:string key:string = phone.GroupCallStreamRtmpUrl;
+---functions---
+phone.getGroupCallStreamRtmpUrl#deb3abbf peer:InputPeer revoke:Bool = phone.GroupCallStreamRtmpUrl;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeerPeer to livestream into
revokeBoolWhether to revoke the previous stream key or simply return the existing one
+

Result

+

phone.GroupCallStreamRtmpUrl

+

Related pages

+

phone.createGroupCall

+

Create a group call or livestream

diff --git a/data/corefork.telegram.org/methods.html b/data/corefork.telegram.org/methods.html index 739d14a52c..d800699a94 100644 --- a/data/corefork.telegram.org/methods.html +++ b/data/corefork.telegram.org/methods.html @@ -1546,6 +1546,14 @@ phone.saveDefaultGroupCallJoinAs Set the default peer that will be used to join a group call in a specific dialog. + +phone.getGroupCallStreamChannels +Get info about RTMP streams in a group call or livestream.
This method should be invoked to the same group/channel-related DC used for downloading livestream chunks.
As usual, the media DC is preferred, if available. + + +phone.getGroupCallStreamRtmpUrl +Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with phone.createGroupCall (the rtmp_stream flag must be set). +

Working with imported chats

@@ -1742,6 +1750,10 @@ Search for messages and peers globally +messages.searchSentMedia +View and search recently sent media.
This method does not support pagination. + + messages.sendMedia Send a media @@ -1835,6 +1847,10 @@ users.getUsers Returns basic user info according to their identifiers. + +contacts.resolvePhone +Resolve a phone number to get user info, if their privacy settings allow it. +

Working with payments

diff --git a/data/corefork.telegram.org/type/GroupCallStreamChannel.html b/data/corefork.telegram.org/type/GroupCallStreamChannel.html index 56876a49dc..aefee93ecd 100644 --- a/data/corefork.telegram.org/type/GroupCallStreamChannel.html +++ b/data/corefork.telegram.org/type/GroupCallStreamChannel.html @@ -2,12 +2,12 @@ - Page not found + GroupCallStreamChannel - - + + - + @@ -36,10 +36,38 @@
- -

Page not found

+ +

GroupCallStreamChannel

-
The page has not been saved
+

Info about an RTMP stream in a group call or livestream

+

+ +
+
groupCallStreamChannel#80eb48af channel:int scale:int last_timestamp_ms:long = GroupCallStreamChannel;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
groupCallStreamChannelInfo about an RTMP stream in a group call or livestream
diff --git a/data/corefork.telegram.org/type/ReportReason.html b/data/corefork.telegram.org/type/ReportReason.html index e05a4f83e6..ef02ea0647 100644 --- a/data/corefork.telegram.org/type/ReportReason.html +++ b/data/corefork.telegram.org/type/ReportReason.html @@ -103,6 +103,14 @@ inputReportReasonFake Report for impersonation + +inputReportReasonIllegalDrugs +Report for illegal drugs + + +inputReportReasonPersonalDetails +Report for divulgation of personal details +
diff --git a/data/corefork.telegram.org/type/contacts.ResolvedPeer b/data/corefork.telegram.org/type/contacts.ResolvedPeer index 65075ea1a8..390107c9c7 100644 --- a/data/corefork.telegram.org/type/contacts.ResolvedPeer +++ b/data/corefork.telegram.org/type/contacts.ResolvedPeer @@ -86,6 +86,10 @@ contacts.resolveUsername Resolve a @username to get peer info + +contacts.resolvePhone +Resolve a phone number to get peer info +
diff --git a/data/corefork.telegram.org/type/messages.Messages b/data/corefork.telegram.org/type/messages.Messages index 8813416658..09fa8fb967 100644 --- a/data/corefork.telegram.org/type/messages.Messages +++ b/data/corefork.telegram.org/type/messages.Messages @@ -158,6 +158,10 @@ messages.getUnreadReactions Get unread reactions to messages you sent + +messages.searchSentMedia +View and search recently sent media +
diff --git a/data/corefork.telegram.org/type/phone.GroupCallStreamChannels b/data/corefork.telegram.org/type/phone.GroupCallStreamChannels index 56876a49dc..c1afe5506c 100644 --- a/data/corefork.telegram.org/type/phone.GroupCallStreamChannels +++ b/data/corefork.telegram.org/type/phone.GroupCallStreamChannels @@ -2,12 +2,12 @@ - Page not found + phone.GroupCallStreamChannels - - + + - + @@ -36,10 +36,57 @@
- -

Page not found

+ +

phone.GroupCallStreamChannels

-
The page has not been saved
+

Info about RTMP streams in a group call or livestream

+

+ +
+
phone.groupCallStreamChannels#d0e482b2 channels:Vector<GroupCallStreamChannel> = phone.GroupCallStreamChannels;
+
+---functions---
+
+phone.getGroupCallStreamChannels#1ab21940 call:InputGroupCall = phone.GroupCallStreamChannels;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
phone.groupCallStreamChannelsInfo about RTMP streams in a group call or livestream
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
phone.getGroupCallStreamChannelsGet info about RTMP streams in a group call or livestream
diff --git a/data/corefork.telegram.org/type/phone.GroupCallStreamRtmpUrl b/data/corefork.telegram.org/type/phone.GroupCallStreamRtmpUrl index 56876a49dc..64558a76d2 100644 --- a/data/corefork.telegram.org/type/phone.GroupCallStreamRtmpUrl +++ b/data/corefork.telegram.org/type/phone.GroupCallStreamRtmpUrl @@ -2,12 +2,12 @@ - Page not found + phone.GroupCallStreamRtmpUrl - - + + - + @@ -36,10 +36,57 @@
- -

Page not found

+ +

phone.GroupCallStreamRtmpUrl

-
The page has not been saved
+

RTMP URL and stream key to be used in streaming software

+

+ +
+
phone.groupCallStreamRtmpUrl#2dbf3432 url:string key:string = phone.GroupCallStreamRtmpUrl;
+
+---functions---
+
+phone.getGroupCallStreamRtmpUrl#deb3abbf peer:InputPeer revoke:Bool = phone.GroupCallStreamRtmpUrl;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
phone.groupCallStreamRtmpUrlRTMP URL and stream key to be used in streaming software
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
phone.getGroupCallStreamRtmpUrlGet RTMP URL and stream key for RTMP livestreams