Skip to content

Commit a424219

Browse files
committed
API Layer 173: no_joined_notifications, SavedReactionTags in peers
1 parent 0ad7d69 commit a424219

5 files changed

+103
-42
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![API Layer](https://img.shields.io/badge/API_Layer-172-blueviolet)](https://corefork.telegram.org/methods)
1+
[![API Layer](https://img.shields.io/badge/API_Layer-173-blueviolet)](https://corefork.telegram.org/methods)
22
[![NuGet version](https://img.shields.io/nuget/v/WTelegramClient?color=00508F)](https://www.nuget.org/packages/WTelegramClient/)
33
[![NuGet prerelease](https://img.shields.io/nuget/vpre/WTelegramClient?color=C09030&label=dev+nuget)](https://www.nuget.org/packages/WTelegramClient/absoluteLatest)
44
[![Donate](https://img.shields.io/badge/Help_this_project:-Donate-ff4444)](https://www.buymeacoffee.com/wizou)

src/TL.Schema.cs

+38-10
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,7 @@ public partial class Message : MessageBase
16721672
[IfFlag(8)] public Peer from_id;
16731673
/// <summary>Peer ID, the chat where this message was sent</summary>
16741674
public Peer peer_id;
1675+
/// <summary>Messages fetched from a <a href="https://corefork.telegram.org/api/saved-messages">saved messages dialog »</a> will have <c>peer</c>=<see cref="InputPeerSelf"/> and the <c>saved_peer_id</c> flag set to the ID of the saved dialog.<br/></summary>
16751676
[IfFlag(28)] public Peer saved_peer_id;
16761677
/// <summary>Info about forwarded messages</summary>
16771678
[IfFlag(2)] public MessageFwdHeader fwd_from;
@@ -1910,8 +1911,11 @@ public partial class MessageMediaDocument : MessageMedia
19101911
spoiler = 0x10,
19111912
/// <summary>Field <see cref="alt_document"/> has a value</summary>
19121913
has_alt_document = 0x20,
1914+
/// <summary>Whether this is a video.</summary>
19131915
video = 0x40,
1916+
/// <summary>Whether this is a round video.</summary>
19141917
round = 0x80,
1918+
/// <summary>Whether this is a voice message.</summary>
19151919
voice = 0x100,
19161920
}
19171921
}
@@ -3269,7 +3273,7 @@ public class UserFull : IObject
32693273
stories_pinned_available = 0x4000000,
32703274
/// <summary>Whether we've <a href="https://corefork.telegram.org/api/block">blocked this user, preventing them from seeing our stories »</a>.</summary>
32713275
blocked_my_stories_from = 0x8000000,
3272-
/// <summary>Whether the other user has chosen a custom wallpaper for us using <see cref="SchemaExtensions.Messages_SetChatWallPaper">Messages_SetChatWallPaper</see> and the <c>for_both</c> flag, see <a href="https://corefork.telegram.org/api/wallpapers#installing-wallpapers-in-a-specific-chator-channel">here »</a> for more info.</summary>
3276+
/// <summary>Whether the other user has chosen a custom wallpaper for us using <see cref="SchemaExtensions.Messages_SetChatWallPaper">Messages_SetChatWallPaper</see> and the <c>for_both</c> flag, see <a href="https://corefork.telegram.org/api/wallpapers#installing-wallpapers-in-a-specific-chat-or-channel">here »</a> for more info.</summary>
32733277
wallpaper_overridden = 0x10000000,
32743278
contact_require_premium = 0x20000000,
32753279
read_dates_private = 0x40000000,
@@ -5094,25 +5098,28 @@ public class UpdateBotMessageReactions : Update
50945098

50955099
public override (long, int, int) GetMBox() => (-1, qts, 1);
50965100
}
5097-
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateSavedDialogPinned"/></para></summary>
5101+
/// <summary>A <a href="https://corefork.telegram.org/api/saved-messages">saved message dialog</a> was pinned/unpinned <para>See <a href="https://corefork.telegram.org/constructor/updateSavedDialogPinned"/></para></summary>
50985102
[TLDef(0xAEAF9E74)]
50995103
public class UpdateSavedDialogPinned : Update
51005104
{
51015105
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
51025106
public Flags flags;
5107+
/// <summary>The dialog</summary>
51035108
public DialogPeerBase peer;
51045109

51055110
[Flags] public enum Flags : uint
51065111
{
5112+
/// <summary>Whether the dialog was pinned</summary>
51075113
pinned = 0x1,
51085114
}
51095115
}
5110-
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updatePinnedSavedDialogs"/></para></summary>
5116+
/// <summary><a href="https://corefork.telegram.org/api/saved-messages">Pinned saved dialogs »</a> were updated <para>See <a href="https://corefork.telegram.org/constructor/updatePinnedSavedDialogs"/></para></summary>
51115117
[TLDef(0x686C85A6)]
51125118
public class UpdatePinnedSavedDialogs : Update
51135119
{
51145120
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
51155121
public Flags flags;
5122+
/// <summary>New order of pinned saved dialogs</summary>
51165123
[IfFlag(0)] public DialogPeerBase[] order;
51175124

51185125
[Flags] public enum Flags : uint
@@ -8600,12 +8607,15 @@ public class MessageFwdHeader : IObject
86008607
[IfFlag(2)] public int channel_post;
86018608
/// <summary>For channels and if signatures are enabled, author of the channel message</summary>
86028609
[IfFlag(3)] public string post_author;
8603-
/// <summary>Only for messages forwarded to the current user (inputPeerSelf), full info about the user/channel that originally sent the message</summary>
8610+
/// <summary>Only for messages forwarded to <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a>, contains the dialog where the message was originally sent.</summary>
86048611
[IfFlag(4)] public Peer saved_from_peer;
8605-
/// <summary>Only for messages forwarded to the current user (inputPeerSelf), ID of the message that was forwarded from the original user/channel</summary>
8612+
/// <summary>Only for messages forwarded to <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a>, contains the original ID of the message in <c>saved_from_peer</c>.</summary>
86068613
[IfFlag(4)] public int saved_from_msg_id;
8614+
/// <summary>Only for forwarded messages reforwarded to <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a>, contains the sender of the original message (i.e. if user A sends a message, then user B forwards it somewhere, then user C saves it to saved messages, this field will contain the ID of user A and <c>from_id</c> will contain the ID of user B).</summary>
86078615
[IfFlag(8)] public Peer saved_from_id;
8616+
/// <summary>Only for forwarded messages from users with forward privacy enabled reforwarded to <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a>, contains the sender of the original message (i.e. if user A (fwd privacy enabled) sends a message, then user B forwards it somewhere, then user C saves it to saved messages, this field will contain the name of user A and <c>from_id</c> will contain the ID of user B).</summary>
86088617
[IfFlag(9)] public string saved_from_name;
8618+
/// <summary>Only for forwarded messages reforwarded to <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a>, indicates when was the original message sent (i.e. if user A sends a message @ unixtime 1, then user B forwards it somewhere @ unixtime 2, then user C saves it to saved messages @ unixtime 3, this field will contain 1, <c>date</c> will contain 2 and the <c>date</c> of the containing <see cref="Message"/> will contain 3).</summary>
86098619
[IfFlag(10)] public DateTime saved_date;
86108620
/// <summary>PSA type</summary>
86118621
[IfFlag(6)] public string psa_type;
@@ -8632,6 +8642,7 @@ public class MessageFwdHeader : IObject
86328642
has_saved_from_name = 0x200,
86338643
/// <summary>Field <see cref="saved_date"/> has a value</summary>
86348644
has_saved_date = 0x400,
8645+
/// <summary>Only for messages forwarded to <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a>, set if the original message was outgoing (though the message may have been originally outgoing even if this flag is not set, if <c>from_id</c> points to the current user).</summary>
86358646
saved_out = 0x800,
86368647
}
86378648
}
@@ -16863,55 +16874,72 @@ public class Stories_StoryReactionsList : IObject, IPeerResolver
1686316874
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
1686416875
}
1686516876

16866-
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/savedDialog"/></para></summary>
16877+
/// <summary>Represents a <a href="https://corefork.telegram.org/api/saved-messages">saved dialog »</a>. <para>See <a href="https://corefork.telegram.org/constructor/savedDialog"/></para></summary>
1686716878
[TLDef(0xBD87CB6C)]
1686816879
public class SavedDialog : IObject
1686916880
{
1687016881
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
1687116882
public Flags flags;
16883+
/// <summary>The dialog</summary>
1687216884
public Peer peer;
16885+
/// <summary>The latest message ID</summary>
1687316886
public int top_message;
1687416887

1687516888
[Flags] public enum Flags : uint
1687616889
{
16890+
/// <summary>Is the dialog pinned</summary>
1687716891
pinned = 0x4,
1687816892
}
1687916893
}
1688016894

16881-
/// <summary><para>See <a href="https://corefork.telegram.org/type/messages.SavedDialogs"/></para> <para>Derived classes: <see cref="Messages_SavedDialogs"/>, <see cref="Messages_SavedDialogsSlice"/>, <see cref="Messages_SavedDialogsNotModified"/></para></summary>
16895+
/// <summary>Represents some <a href="https://corefork.telegram.org/api/saved-messages">saved message dialogs »</a>. <para>See <a href="https://corefork.telegram.org/type/messages.SavedDialogs"/></para> <para>Derived classes: <see cref="Messages_SavedDialogs"/>, <see cref="Messages_SavedDialogsSlice"/>, <see cref="Messages_SavedDialogsNotModified"/></para></summary>
1688216896
public abstract class Messages_SavedDialogsBase : IObject
1688316897
{
16898+
/// <summary><a href="https://corefork.telegram.org/api/saved-messages">Saved message dialogs »</a>.</summary>
1688416899
public virtual SavedDialog[] Dialogs { get; }
16900+
/// <summary>List of last messages from each saved dialog</summary>
1688516901
public virtual MessageBase[] Messages { get; }
16902+
/// <summary>Mentioned chats</summary>
1688616903
public virtual Dictionary<long, ChatBase> Chats { get; }
16904+
/// <summary>Mentioned users</summary>
1688716905
public virtual Dictionary<long, User> Users { get; }
1688816906
}
16889-
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messages.savedDialogs"/></para></summary>
16907+
/// <summary>Represents some <a href="https://corefork.telegram.org/api/saved-messages">saved message dialogs »</a>. <para>See <a href="https://corefork.telegram.org/constructor/messages.savedDialogs"/></para></summary>
1689016908
[TLDef(0xF83AE221)]
1689116909
public class Messages_SavedDialogs : Messages_SavedDialogsBase, IPeerResolver
1689216910
{
16911+
/// <summary><a href="https://corefork.telegram.org/api/saved-messages">Saved message dialogs »</a>.</summary>
1689316912
public SavedDialog[] dialogs;
16913+
/// <summary>List of last messages from each saved dialog</summary>
1689416914
public MessageBase[] messages;
16915+
/// <summary>Mentioned chats</summary>
1689516916
public Dictionary<long, ChatBase> chats;
16917+
/// <summary>Mentioned users</summary>
1689616918
public Dictionary<long, User> users;
1689716919

16920+
/// <summary><a href="https://corefork.telegram.org/api/saved-messages">Saved message dialogs »</a>.</summary>
1689816921
public override SavedDialog[] Dialogs => dialogs;
16922+
/// <summary>List of last messages from each saved dialog</summary>
1689916923
public override MessageBase[] Messages => messages;
16924+
/// <summary>Mentioned chats</summary>
1690016925
public override Dictionary<long, ChatBase> Chats => chats;
16926+
/// <summary>Mentioned users</summary>
1690116927
public override Dictionary<long, User> Users => users;
1690216928
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
1690316929
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
1690416930
}
16905-
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messages.savedDialogsSlice"/></para></summary>
16931+
/// <summary>Incomplete list of <a href="https://corefork.telegram.org/api/saved-messages">saved message dialogs »</a> with messages and auxiliary data. <para>See <a href="https://corefork.telegram.org/constructor/messages.savedDialogsSlice"/></para></summary>
1690616932
[TLDef(0x44BA9DD9)]
1690716933
public class Messages_SavedDialogsSlice : Messages_SavedDialogs
1690816934
{
16935+
/// <summary>Total number of saved message dialogs</summary>
1690916936
public int count;
1691016937
}
16911-
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messages.savedDialogsNotModified"/></para></summary>
16938+
/// <summary>The saved dialogs haven't changed <para>See <a href="https://corefork.telegram.org/constructor/messages.savedDialogsNotModified"/></para></summary>
1691216939
[TLDef(0xC01F6FE8)]
1691316940
public class Messages_SavedDialogsNotModified : Messages_SavedDialogsBase
1691416941
{
16942+
/// <summary>Number of <a href="https://corefork.telegram.org/api/saved-messages">saved dialogs</a> found server-side by the query</summary>
1691516943
public int count;
1691616944
}
1691716945

0 commit comments

Comments
 (0)