mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
API Layer 204: Channel DMs (MonoForum), Forum Tabs, Saved peer/dialog stuff...
(for the very latest layers, go to https://patreon.com/wizou)
This commit is contained in:
parent
fa90e236e7
commit
4f7954db61
|
|
@ -1,4 +1,4 @@
|
||||||
[](https://corefork.telegram.org/methods)
|
[](https://corefork.telegram.org/methods)
|
||||||
[](https://www.nuget.org/packages/WTelegramClient/)
|
[](https://www.nuget.org/packages/WTelegramClient/)
|
||||||
[](https://www.nuget.org/packages/WTelegramClient/absoluteLatest)
|
[](https://www.nuget.org/packages/WTelegramClient/absoluteLatest)
|
||||||
[](https://buymeacoffee.com/wizou)
|
[](https://buymeacoffee.com/wizou)
|
||||||
|
|
|
||||||
106
src/TL.Schema.cs
106
src/TL.Schema.cs
|
|
@ -1074,7 +1074,7 @@ namespace TL
|
||||||
public override string Title => title;
|
public override string Title => title;
|
||||||
}
|
}
|
||||||
/// <summary>Channel/supergroup info <para>See <a href="https://corefork.telegram.org/constructor/channel"/></para></summary>
|
/// <summary>Channel/supergroup info <para>See <a href="https://corefork.telegram.org/constructor/channel"/></para></summary>
|
||||||
[TLDef(0x7482147E)]
|
[TLDef(0xFE685355)]
|
||||||
public sealed partial class Channel : ChatBase
|
public sealed partial class Channel : ChatBase
|
||||||
{
|
{
|
||||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
|
|
@ -1119,6 +1119,7 @@ namespace TL
|
||||||
[IfFlag(43)] public DateTime subscription_until_date;
|
[IfFlag(43)] public DateTime subscription_until_date;
|
||||||
[IfFlag(45)] public long bot_verification_icon;
|
[IfFlag(45)] public long bot_verification_icon;
|
||||||
[IfFlag(46)] public long send_paid_messages_stars;
|
[IfFlag(46)] public long send_paid_messages_stars;
|
||||||
|
[IfFlag(50)] public long linked_monoforum_id;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
|
@ -1205,6 +1206,11 @@ namespace TL
|
||||||
/// <summary>Field <see cref="send_paid_messages_stars"/> has a value</summary>
|
/// <summary>Field <see cref="send_paid_messages_stars"/> has a value</summary>
|
||||||
has_send_paid_messages_stars = 0x4000,
|
has_send_paid_messages_stars = 0x4000,
|
||||||
autotranslation = 0x8000,
|
autotranslation = 0x8000,
|
||||||
|
broadcast_messages_allowed = 0x10000,
|
||||||
|
monoforum = 0x20000,
|
||||||
|
/// <summary>Field <see cref="linked_monoforum_id"/> has a value</summary>
|
||||||
|
has_linked_monoforum_id = 0x40000,
|
||||||
|
forum_tabs = 0x80000,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>ID of the channel, see <a href="https://corefork.telegram.org/api/peers#peer-id">here »</a> for more info</summary>
|
/// <summary>ID of the channel, see <a href="https://corefork.telegram.org/api/peers#peer-id">here »</a> for more info</summary>
|
||||||
|
|
@ -2961,10 +2967,16 @@ namespace TL
|
||||||
public long stars;
|
public long stars;
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionPaidMessagesPrice"/></para></summary>
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionPaidMessagesPrice"/></para></summary>
|
||||||
[TLDef(0xBCD71419)]
|
[TLDef(0x84B88578)]
|
||||||
public sealed partial class MessageActionPaidMessagesPrice : MessageAction
|
public sealed partial class MessageActionPaidMessagesPrice : MessageAction
|
||||||
{
|
{
|
||||||
|
public Flags flags;
|
||||||
public long stars;
|
public long stars;
|
||||||
|
|
||||||
|
[Flags] public enum Flags : uint
|
||||||
|
{
|
||||||
|
broadcast_messages_allowed = 0x1,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionConferenceCall"/></para></summary>
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionConferenceCall"/></para></summary>
|
||||||
[TLDef(0x2FFE2F7A)]
|
[TLDef(0x2FFE2F7A)]
|
||||||
|
|
@ -4650,7 +4662,7 @@ namespace TL
|
||||||
public int max_id;
|
public int max_id;
|
||||||
}
|
}
|
||||||
/// <summary>Notifies a change of a message <a href="https://corefork.telegram.org/api/drafts">draft</a>. <para>See <a href="https://corefork.telegram.org/constructor/updateDraftMessage"/></para></summary>
|
/// <summary>Notifies a change of a message <a href="https://corefork.telegram.org/api/drafts">draft</a>. <para>See <a href="https://corefork.telegram.org/constructor/updateDraftMessage"/></para></summary>
|
||||||
[TLDef(0x1B49EC6D)]
|
[TLDef(0xEDFC111E)]
|
||||||
public sealed partial class UpdateDraftMessage : Update
|
public sealed partial class UpdateDraftMessage : Update
|
||||||
{
|
{
|
||||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
|
|
@ -4659,6 +4671,7 @@ namespace TL
|
||||||
public Peer peer;
|
public Peer peer;
|
||||||
/// <summary>ID of the <a href="https://corefork.telegram.org/api/forum#forum-topics">forum topic</a> to which the draft is associated</summary>
|
/// <summary>ID of the <a href="https://corefork.telegram.org/api/forum#forum-topics">forum topic</a> to which the draft is associated</summary>
|
||||||
[IfFlag(0)] public int top_msg_id;
|
[IfFlag(0)] public int top_msg_id;
|
||||||
|
[IfFlag(1)] public Peer saved_peer_id;
|
||||||
/// <summary>The draft</summary>
|
/// <summary>The draft</summary>
|
||||||
public DraftMessageBase draft;
|
public DraftMessageBase draft;
|
||||||
|
|
||||||
|
|
@ -4666,6 +4679,8 @@ namespace TL
|
||||||
{
|
{
|
||||||
/// <summary>Field <see cref="top_msg_id"/> has a value</summary>
|
/// <summary>Field <see cref="top_msg_id"/> has a value</summary>
|
||||||
has_top_msg_id = 0x1,
|
has_top_msg_id = 0x1,
|
||||||
|
/// <summary>Field <see cref="saved_peer_id"/> has a value</summary>
|
||||||
|
has_saved_peer_id = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>Some featured stickers were marked as read <para>See <a href="https://corefork.telegram.org/constructor/updateReadFeaturedStickers"/></para></summary>
|
/// <summary>Some featured stickers were marked as read <para>See <a href="https://corefork.telegram.org/constructor/updateReadFeaturedStickers"/></para></summary>
|
||||||
|
|
@ -4812,7 +4827,7 @@ namespace TL
|
||||||
[TLDef(0xE511996D)]
|
[TLDef(0xE511996D)]
|
||||||
public sealed partial class UpdateFavedStickers : Update { }
|
public sealed partial class UpdateFavedStickers : Update { }
|
||||||
/// <summary>The specified <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a> messages were read <para>See <a href="https://corefork.telegram.org/constructor/updateChannelReadMessagesContents"/></para></summary>
|
/// <summary>The specified <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a> messages were read <para>See <a href="https://corefork.telegram.org/constructor/updateChannelReadMessagesContents"/></para></summary>
|
||||||
[TLDef(0xEA29055D)]
|
[TLDef(0x25F324F7)]
|
||||||
public sealed partial class UpdateChannelReadMessagesContents : Update
|
public sealed partial class UpdateChannelReadMessagesContents : Update
|
||||||
{
|
{
|
||||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
|
|
@ -4821,6 +4836,7 @@ namespace TL
|
||||||
public long channel_id;
|
public long channel_id;
|
||||||
/// <summary><a href="https://corefork.telegram.org/api/forum#forum-topics">Forum topic ID</a>.</summary>
|
/// <summary><a href="https://corefork.telegram.org/api/forum#forum-topics">Forum topic ID</a>.</summary>
|
||||||
[IfFlag(0)] public int top_msg_id;
|
[IfFlag(0)] public int top_msg_id;
|
||||||
|
[IfFlag(1)] public Peer saved_peer_id;
|
||||||
/// <summary>IDs of messages that were read</summary>
|
/// <summary>IDs of messages that were read</summary>
|
||||||
public int[] messages;
|
public int[] messages;
|
||||||
|
|
||||||
|
|
@ -4828,6 +4844,8 @@ namespace TL
|
||||||
{
|
{
|
||||||
/// <summary>Field <see cref="top_msg_id"/> has a value</summary>
|
/// <summary>Field <see cref="top_msg_id"/> has a value</summary>
|
||||||
has_top_msg_id = 0x1,
|
has_top_msg_id = 0x1,
|
||||||
|
/// <summary>Field <see cref="saved_peer_id"/> has a value</summary>
|
||||||
|
has_saved_peer_id = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>All contacts were deleted <para>See <a href="https://corefork.telegram.org/constructor/updateContactsReset"/></para></summary>
|
/// <summary>All contacts were deleted <para>See <a href="https://corefork.telegram.org/constructor/updateContactsReset"/></para></summary>
|
||||||
|
|
@ -4841,18 +4859,21 @@ namespace TL
|
||||||
public int available_min_id;
|
public int available_min_id;
|
||||||
}
|
}
|
||||||
/// <summary>The manual unread mark of a chat was changed <para>See <a href="https://corefork.telegram.org/constructor/updateDialogUnreadMark"/></para></summary>
|
/// <summary>The manual unread mark of a chat was changed <para>See <a href="https://corefork.telegram.org/constructor/updateDialogUnreadMark"/></para></summary>
|
||||||
[TLDef(0xE16459C3)]
|
[TLDef(0xB658F23E)]
|
||||||
public sealed partial class UpdateDialogUnreadMark : Update
|
public sealed partial class UpdateDialogUnreadMark : Update
|
||||||
{
|
{
|
||||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
/// <summary>The dialog</summary>
|
/// <summary>The dialog</summary>
|
||||||
public DialogPeerBase peer;
|
public DialogPeerBase peer;
|
||||||
|
[IfFlag(1)] public Peer saved_peer_id;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
/// <summary>Was the chat marked or unmarked as read</summary>
|
/// <summary>Was the chat marked or unmarked as read</summary>
|
||||||
unread = 0x1,
|
unread = 0x1,
|
||||||
|
/// <summary>Field <see cref="saved_peer_id"/> has a value</summary>
|
||||||
|
has_saved_peer_id = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>The results of a poll have changed <para>See <a href="https://corefork.telegram.org/constructor/updateMessagePoll"/></para></summary>
|
/// <summary>The results of a poll have changed <para>See <a href="https://corefork.telegram.org/constructor/updateMessagePoll"/></para></summary>
|
||||||
|
|
@ -5332,7 +5353,7 @@ namespace TL
|
||||||
public override (long, int, int) GetMBox() => (-1, qts, 1);
|
public override (long, int, int) GetMBox() => (-1, qts, 1);
|
||||||
}
|
}
|
||||||
/// <summary>New <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> are available <para>See <a href="https://corefork.telegram.org/constructor/updateMessageReactions"/></para></summary>
|
/// <summary>New <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> are available <para>See <a href="https://corefork.telegram.org/constructor/updateMessageReactions"/></para></summary>
|
||||||
[TLDef(0x5E1B3CB8)]
|
[TLDef(0x1E297BFA)]
|
||||||
public sealed partial class UpdateMessageReactions : Update
|
public sealed partial class UpdateMessageReactions : Update
|
||||||
{
|
{
|
||||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
|
|
@ -5343,6 +5364,7 @@ namespace TL
|
||||||
public int msg_id;
|
public int msg_id;
|
||||||
/// <summary><a href="https://corefork.telegram.org/api/forum#forum-topics">Forum topic ID</a></summary>
|
/// <summary><a href="https://corefork.telegram.org/api/forum#forum-topics">Forum topic ID</a></summary>
|
||||||
[IfFlag(0)] public int top_msg_id;
|
[IfFlag(0)] public int top_msg_id;
|
||||||
|
[IfFlag(1)] public Peer saved_peer_id;
|
||||||
/// <summary>Reactions</summary>
|
/// <summary>Reactions</summary>
|
||||||
public MessageReactions reactions;
|
public MessageReactions reactions;
|
||||||
|
|
||||||
|
|
@ -5350,6 +5372,8 @@ namespace TL
|
||||||
{
|
{
|
||||||
/// <summary>Field <see cref="top_msg_id"/> has a value</summary>
|
/// <summary>Field <see cref="top_msg_id"/> has a value</summary>
|
||||||
has_top_msg_id = 0x1,
|
has_top_msg_id = 0x1,
|
||||||
|
/// <summary>Field <see cref="saved_peer_id"/> has a value</summary>
|
||||||
|
has_saved_peer_id = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>The list of installed <a href="https://corefork.telegram.org/api/bots/attach">attachment menu entries »</a> has changed, use <see cref="SchemaExtensions.Messages_GetAttachMenuBots">Messages_GetAttachMenuBots</see> to fetch the updated list. <para>See <a href="https://corefork.telegram.org/constructor/updateAttachMenuBots"/></para></summary>
|
/// <summary>The list of installed <a href="https://corefork.telegram.org/api/bots/attach">attachment menu entries »</a> has changed, use <see cref="SchemaExtensions.Messages_GetAttachMenuBots">Messages_GetAttachMenuBots</see> to fetch the updated list. <para>See <a href="https://corefork.telegram.org/constructor/updateAttachMenuBots"/></para></summary>
|
||||||
|
|
@ -5852,6 +5876,22 @@ namespace TL
|
||||||
public byte[][] blocks;
|
public byte[][] blocks;
|
||||||
public int next_offset;
|
public int next_offset;
|
||||||
}
|
}
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateReadMonoForumInbox"/></para></summary>
|
||||||
|
[TLDef(0x77B0E372)]
|
||||||
|
public sealed partial class UpdateReadMonoForumInbox : Update
|
||||||
|
{
|
||||||
|
public long channel_id;
|
||||||
|
public Peer saved_peer_id;
|
||||||
|
public int read_max_id;
|
||||||
|
}
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateReadMonoForumOutbox"/></para></summary>
|
||||||
|
[TLDef(0xA4A79376)]
|
||||||
|
public sealed partial class UpdateReadMonoForumOutbox : Update
|
||||||
|
{
|
||||||
|
public long channel_id;
|
||||||
|
public Peer saved_peer_id;
|
||||||
|
public int read_max_id;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>Updates state. <para>See <a href="https://corefork.telegram.org/constructor/updates.state"/></para></summary>
|
/// <summary>Updates state. <para>See <a href="https://corefork.telegram.org/constructor/updates.state"/></para></summary>
|
||||||
[TLDef(0xA56C2A3E)]
|
[TLDef(0xA56C2A3E)]
|
||||||
|
|
@ -17484,7 +17524,7 @@ namespace TL
|
||||||
/// <summary>Contains info about a message or story to reply to. <para>See <a href="https://corefork.telegram.org/type/InputReplyTo"/></para> <para>Derived classes: <see cref="InputReplyToMessage"/>, <see cref="InputReplyToStory"/></para></summary>
|
/// <summary>Contains info about a message or story to reply to. <para>See <a href="https://corefork.telegram.org/type/InputReplyTo"/></para> <para>Derived classes: <see cref="InputReplyToMessage"/>, <see cref="InputReplyToStory"/></para></summary>
|
||||||
public abstract partial class InputReplyTo : IObject { }
|
public abstract partial class InputReplyTo : IObject { }
|
||||||
/// <summary>Reply to a message. <para>See <a href="https://corefork.telegram.org/constructor/inputReplyToMessage"/></para></summary>
|
/// <summary>Reply to a message. <para>See <a href="https://corefork.telegram.org/constructor/inputReplyToMessage"/></para></summary>
|
||||||
[TLDef(0x22C0F6D5)]
|
[TLDef(0xB07038B0)]
|
||||||
public sealed partial class InputReplyToMessage : InputReplyTo
|
public sealed partial class InputReplyToMessage : InputReplyTo
|
||||||
{
|
{
|
||||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
|
|
@ -17501,6 +17541,7 @@ namespace TL
|
||||||
[IfFlag(3)] public MessageEntity[] quote_entities;
|
[IfFlag(3)] public MessageEntity[] quote_entities;
|
||||||
/// <summary>Offset of the message <c>quote_text</c> within the original message (in <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16 code units</a>).</summary>
|
/// <summary>Offset of the message <c>quote_text</c> within the original message (in <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16 code units</a>).</summary>
|
||||||
[IfFlag(4)] public int quote_offset;
|
[IfFlag(4)] public int quote_offset;
|
||||||
|
[IfFlag(5)] public InputPeer monoforum_peer_id;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
|
@ -17514,6 +17555,8 @@ namespace TL
|
||||||
has_quote_entities = 0x8,
|
has_quote_entities = 0x8,
|
||||||
/// <summary>Field <see cref="quote_offset"/> has a value</summary>
|
/// <summary>Field <see cref="quote_offset"/> has a value</summary>
|
||||||
has_quote_offset = 0x10,
|
has_quote_offset = 0x10,
|
||||||
|
/// <summary>Field <see cref="monoforum_peer_id"/> has a value</summary>
|
||||||
|
has_monoforum_peer_id = 0x20,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>Reply to a story. <para>See <a href="https://corefork.telegram.org/constructor/inputReplyToStory"/></para></summary>
|
/// <summary>Reply to a story. <para>See <a href="https://corefork.telegram.org/constructor/inputReplyToStory"/></para></summary>
|
||||||
|
|
@ -17525,6 +17568,12 @@ namespace TL
|
||||||
/// <summary>ID of the story to reply to.</summary>
|
/// <summary>ID of the story to reply to.</summary>
|
||||||
public int story_id;
|
public int story_id;
|
||||||
}
|
}
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputReplyToMonoForum"/></para></summary>
|
||||||
|
[TLDef(0x69D66C45)]
|
||||||
|
public sealed partial class InputReplyToMonoForum : InputReplyTo
|
||||||
|
{
|
||||||
|
public InputPeer monoforum_peer_id;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>Represents a <a href="https://corefork.telegram.org/api/stories#story-links">story deep link</a>. <para>See <a href="https://corefork.telegram.org/constructor/exportedStoryLink"/></para></summary>
|
/// <summary>Represents a <a href="https://corefork.telegram.org/api/stories#story-links">story deep link</a>. <para>See <a href="https://corefork.telegram.org/constructor/exportedStoryLink"/></para></summary>
|
||||||
[TLDef(0x3FC9053B)]
|
[TLDef(0x3FC9053B)]
|
||||||
|
|
@ -18336,9 +18385,17 @@ namespace TL
|
||||||
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
|
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>Represents a <a href="https://corefork.telegram.org/api/saved-messages">saved message dialog »</a>. <para>See <a href="https://corefork.telegram.org/type/SavedDialog"/></para> <para>Derived classes: <see cref="SavedDialog"/></para></summary>
|
||||||
|
public abstract partial class SavedDialogBase : IObject
|
||||||
|
{
|
||||||
|
/// <summary>The dialog</summary>
|
||||||
|
public virtual Peer Peer => default;
|
||||||
|
/// <summary>The latest message ID</summary>
|
||||||
|
public virtual int TopMessage => default;
|
||||||
|
}
|
||||||
/// <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>
|
/// <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>
|
||||||
[TLDef(0xBD87CB6C)]
|
[TLDef(0xBD87CB6C)]
|
||||||
public sealed partial class SavedDialog : IObject
|
public sealed partial class SavedDialog : SavedDialogBase
|
||||||
{
|
{
|
||||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
|
@ -18352,13 +18409,40 @@ namespace TL
|
||||||
/// <summary>Is the dialog pinned</summary>
|
/// <summary>Is the dialog pinned</summary>
|
||||||
pinned = 0x4,
|
pinned = 0x4,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>The dialog</summary>
|
||||||
|
public override Peer Peer => peer;
|
||||||
|
/// <summary>The latest message ID</summary>
|
||||||
|
public override int TopMessage => top_message;
|
||||||
|
}
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/monoForumDialog"/></para></summary>
|
||||||
|
[TLDef(0x64407EA7)]
|
||||||
|
public sealed partial class MonoForumDialog : SavedDialogBase
|
||||||
|
{
|
||||||
|
public Flags flags;
|
||||||
|
public Peer peer;
|
||||||
|
public int top_message;
|
||||||
|
public int read_inbox_max_id;
|
||||||
|
public int read_outbox_max_id;
|
||||||
|
public int unread_count;
|
||||||
|
public int unread_reactions_count;
|
||||||
|
[IfFlag(1)] public DraftMessageBase draft;
|
||||||
|
|
||||||
|
[Flags] public enum Flags : uint
|
||||||
|
{
|
||||||
|
has_draft = 0x2,
|
||||||
|
unread_mark = 0x8,
|
||||||
|
}
|
||||||
|
|
||||||
|
public override Peer Peer => peer;
|
||||||
|
public override int TopMessage => top_message;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <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>
|
/// <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>
|
||||||
public abstract partial class Messages_SavedDialogsBase : IObject
|
public abstract partial class Messages_SavedDialogsBase : IObject
|
||||||
{
|
{
|
||||||
/// <summary><a href="https://corefork.telegram.org/api/saved-messages">Saved message dialogs »</a>.</summary>
|
/// <summary><a href="https://corefork.telegram.org/api/saved-messages">Saved message dialogs »</a>.</summary>
|
||||||
public virtual SavedDialog[] Dialogs => default;
|
public virtual SavedDialogBase[] Dialogs => default;
|
||||||
/// <summary>List of last messages from each saved dialog</summary>
|
/// <summary>List of last messages from each saved dialog</summary>
|
||||||
public virtual MessageBase[] Messages => default;
|
public virtual MessageBase[] Messages => default;
|
||||||
/// <summary>Mentioned chats</summary>
|
/// <summary>Mentioned chats</summary>
|
||||||
|
|
@ -18371,7 +18455,7 @@ namespace TL
|
||||||
public partial class Messages_SavedDialogs : Messages_SavedDialogsBase, IPeerResolver
|
public partial class Messages_SavedDialogs : Messages_SavedDialogsBase, IPeerResolver
|
||||||
{
|
{
|
||||||
/// <summary><a href="https://corefork.telegram.org/api/saved-messages">Saved message dialogs »</a>.</summary>
|
/// <summary><a href="https://corefork.telegram.org/api/saved-messages">Saved message dialogs »</a>.</summary>
|
||||||
public SavedDialog[] dialogs;
|
public SavedDialogBase[] dialogs;
|
||||||
/// <summary>List of last messages from each saved dialog</summary>
|
/// <summary>List of last messages from each saved dialog</summary>
|
||||||
public MessageBase[] messages;
|
public MessageBase[] messages;
|
||||||
/// <summary>Mentioned chats</summary>
|
/// <summary>Mentioned chats</summary>
|
||||||
|
|
@ -18380,7 +18464,7 @@ namespace TL
|
||||||
public Dictionary<long, User> users;
|
public Dictionary<long, User> users;
|
||||||
|
|
||||||
/// <summary><a href="https://corefork.telegram.org/api/saved-messages">Saved message dialogs »</a>.</summary>
|
/// <summary><a href="https://corefork.telegram.org/api/saved-messages">Saved message dialogs »</a>.</summary>
|
||||||
public override SavedDialog[] Dialogs => dialogs;
|
public override SavedDialogBase[] Dialogs => dialogs;
|
||||||
/// <summary>List of last messages from each saved dialog</summary>
|
/// <summary>List of last messages from each saved dialog</summary>
|
||||||
public override MessageBase[] Messages => messages;
|
public override MessageBase[] Messages => messages;
|
||||||
/// <summary>Mentioned chats</summary>
|
/// <summary>Mentioned chats</summary>
|
||||||
|
|
|
||||||
|
|
@ -1972,15 +1972,16 @@ namespace TL
|
||||||
/// <param name="schedule_date">Scheduled message date for scheduled messages</param>
|
/// <param name="schedule_date">Scheduled message date for scheduled messages</param>
|
||||||
/// <param name="send_as">Forward the messages as the specified peer</param>
|
/// <param name="send_as">Forward the messages as the specified peer</param>
|
||||||
/// <param name="quick_reply_shortcut">Add the messages to the specified <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick reply shortcut »</a>, instead.</param>
|
/// <param name="quick_reply_shortcut">Add the messages to the specified <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick reply shortcut »</a>, instead.</param>
|
||||||
public static Task<UpdatesBase> Messages_ForwardMessages(this Client client, InputPeer from_peer, int[] id, long[] random_id, InputPeer to_peer, int? top_msg_id = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, int? video_timestamp = null, long? allow_paid_stars = null, bool silent = false, bool background = false, bool with_my_score = false, bool drop_author = false, bool drop_media_captions = false, bool noforwards = false, bool allow_paid_floodskip = false)
|
public static Task<UpdatesBase> Messages_ForwardMessages(this Client client, InputPeer from_peer, int[] id, long[] random_id, InputPeer to_peer, int? top_msg_id = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, int? video_timestamp = null, long? allow_paid_stars = null, InputReplyTo reply_to = null, bool silent = false, bool background = false, bool with_my_score = false, bool drop_author = false, bool drop_media_captions = false, bool noforwards = false, bool allow_paid_floodskip = false)
|
||||||
=> client.Invoke(new Messages_ForwardMessages
|
=> client.Invoke(new Messages_ForwardMessages
|
||||||
{
|
{
|
||||||
flags = (Messages_ForwardMessages.Flags)((top_msg_id != null ? 0x200 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0) | (quick_reply_shortcut != null ? 0x20000 : 0) | (video_timestamp != null ? 0x100000 : 0) | (allow_paid_stars != null ? 0x200000 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (with_my_score ? 0x100 : 0) | (drop_author ? 0x800 : 0) | (drop_media_captions ? 0x1000 : 0) | (noforwards ? 0x4000 : 0) | (allow_paid_floodskip ? 0x80000 : 0)),
|
flags = (Messages_ForwardMessages.Flags)((top_msg_id != null ? 0x200 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0) | (quick_reply_shortcut != null ? 0x20000 : 0) | (video_timestamp != null ? 0x100000 : 0) | (allow_paid_stars != null ? 0x200000 : 0) | (reply_to != null ? 0x400000 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (with_my_score ? 0x100 : 0) | (drop_author ? 0x800 : 0) | (drop_media_captions ? 0x1000 : 0) | (noforwards ? 0x4000 : 0) | (allow_paid_floodskip ? 0x80000 : 0)),
|
||||||
from_peer = from_peer,
|
from_peer = from_peer,
|
||||||
id = id,
|
id = id,
|
||||||
random_id = random_id,
|
random_id = random_id,
|
||||||
to_peer = to_peer,
|
to_peer = to_peer,
|
||||||
top_msg_id = top_msg_id ?? default,
|
top_msg_id = top_msg_id ?? default,
|
||||||
|
reply_to = reply_to,
|
||||||
schedule_date = schedule_date ?? default,
|
schedule_date = schedule_date ?? default,
|
||||||
send_as = send_as,
|
send_as = send_as,
|
||||||
quick_reply_shortcut = quick_reply_shortcut,
|
quick_reply_shortcut = quick_reply_shortcut,
|
||||||
|
|
@ -2978,17 +2979,20 @@ namespace TL
|
||||||
/// <summary>Manually mark dialog as unread <para>See <a href="https://corefork.telegram.org/method/messages.markDialogUnread"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.markDialogUnread#possible-errors">details</a>)</para></summary>
|
/// <summary>Manually mark dialog as unread <para>See <a href="https://corefork.telegram.org/method/messages.markDialogUnread"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.markDialogUnread#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="unread">Mark as unread/read</param>
|
/// <param name="unread">Mark as unread/read</param>
|
||||||
/// <param name="peer">Dialog</param>
|
/// <param name="peer">Dialog</param>
|
||||||
public static Task<bool> Messages_MarkDialogUnread(this Client client, InputDialogPeerBase peer, bool unread = false)
|
public static Task<bool> Messages_MarkDialogUnread(this Client client, InputDialogPeerBase peer, InputPeer parent_peer = null, bool unread = false)
|
||||||
=> client.Invoke(new Messages_MarkDialogUnread
|
=> client.Invoke(new Messages_MarkDialogUnread
|
||||||
{
|
{
|
||||||
flags = (Messages_MarkDialogUnread.Flags)(unread ? 0x1 : 0),
|
flags = (Messages_MarkDialogUnread.Flags)((parent_peer != null ? 0x2 : 0) | (unread ? 0x1 : 0)),
|
||||||
|
parent_peer = parent_peer,
|
||||||
peer = peer,
|
peer = peer,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Get dialogs manually marked as unread <para>See <a href="https://corefork.telegram.org/method/messages.getDialogUnreadMarks"/></para></summary>
|
/// <summary>Get dialogs manually marked as unread <para>See <a href="https://corefork.telegram.org/method/messages.getDialogUnreadMarks"/></para></summary>
|
||||||
public static Task<DialogPeerBase[]> Messages_GetDialogUnreadMarks(this Client client)
|
public static Task<DialogPeerBase[]> Messages_GetDialogUnreadMarks(this Client client, InputPeer parent_peer = null)
|
||||||
=> client.Invoke(new Messages_GetDialogUnreadMarks
|
=> client.Invoke(new Messages_GetDialogUnreadMarks
|
||||||
{
|
{
|
||||||
|
flags = (Messages_GetDialogUnreadMarks.Flags)(parent_peer != null ? 0x1 : 0),
|
||||||
|
parent_peer = parent_peer,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Clear all <a href="https://corefork.telegram.org/api/drafts">drafts</a>. <para>See <a href="https://corefork.telegram.org/method/messages.clearAllDrafts"/></para></summary>
|
/// <summary>Clear all <a href="https://corefork.telegram.org/api/drafts">drafts</a>. <para>See <a href="https://corefork.telegram.org/method/messages.clearAllDrafts"/></para></summary>
|
||||||
|
|
@ -3312,12 +3316,13 @@ namespace TL
|
||||||
/// <summary><a href="https://corefork.telegram.org/api/pin">Unpin</a> all pinned messages <para>See <a href="https://corefork.telegram.org/method/messages.unpinAllMessages"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.unpinAllMessages#possible-errors">details</a>)</para></summary>
|
/// <summary><a href="https://corefork.telegram.org/api/pin">Unpin</a> all pinned messages <para>See <a href="https://corefork.telegram.org/method/messages.unpinAllMessages"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.unpinAllMessages#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="peer">Chat where to unpin</param>
|
/// <param name="peer">Chat where to unpin</param>
|
||||||
/// <param name="top_msg_id"><a href="https://corefork.telegram.org/api/forum#forum-topics">Forum topic</a> where to unpin</param>
|
/// <param name="top_msg_id"><a href="https://corefork.telegram.org/api/forum#forum-topics">Forum topic</a> where to unpin</param>
|
||||||
public static Task<Messages_AffectedHistory> Messages_UnpinAllMessages(this Client client, InputPeer peer, int? top_msg_id = null)
|
public static Task<Messages_AffectedHistory> Messages_UnpinAllMessages(this Client client, InputPeer peer, int? top_msg_id = null, InputPeer saved_peer_id = null)
|
||||||
=> client.InvokeAffected(new Messages_UnpinAllMessages
|
=> client.InvokeAffected(new Messages_UnpinAllMessages
|
||||||
{
|
{
|
||||||
flags = (Messages_UnpinAllMessages.Flags)(top_msg_id != null ? 0x1 : 0),
|
flags = (Messages_UnpinAllMessages.Flags)((top_msg_id != null ? 0x1 : 0) | (saved_peer_id != null ? 0x2 : 0)),
|
||||||
peer = peer,
|
peer = peer,
|
||||||
top_msg_id = top_msg_id ?? default,
|
top_msg_id = top_msg_id ?? default,
|
||||||
|
saved_peer_id = saved_peer_id,
|
||||||
}, peer is InputPeerChannel ipc ? ipc.channel_id : 0);
|
}, peer is InputPeerChannel ipc ? ipc.channel_id : 0);
|
||||||
|
|
||||||
/// <summary><para>⚠ <b>This method is only for basic Chat</b>. See <see href="https://wiz0u.github.io/WTelegramClient/#terminology">Terminology</see> in the README to understand what this means<br/>Search for a similar method name starting with <c>Channels_</c> if you're dealing with a <see cref="Channel"/></para> Delete a <a href="https://corefork.telegram.org/api/channel">chat</a> <para>See <a href="https://corefork.telegram.org/method/messages.deleteChat"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.deleteChat#possible-errors">details</a>)</para></summary>
|
/// <summary><para>⚠ <b>This method is only for basic Chat</b>. See <see href="https://wiz0u.github.io/WTelegramClient/#terminology">Terminology</see> in the README to understand what this means<br/>Search for a similar method name starting with <c>Channels_</c> if you're dealing with a <see cref="Channel"/></para> Delete a <a href="https://corefork.telegram.org/api/channel">chat</a> <para>See <a href="https://corefork.telegram.org/method/messages.deleteChat"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.deleteChat#possible-errors">details</a>)</para></summary>
|
||||||
|
|
@ -3691,12 +3696,13 @@ namespace TL
|
||||||
/// <param name="limit">Maximum number of results to return, <a href="https://corefork.telegram.org/api/offsets">see pagination</a></param>
|
/// <param name="limit">Maximum number of results to return, <a href="https://corefork.telegram.org/api/offsets">see pagination</a></param>
|
||||||
/// <param name="max_id">Only return reactions for messages up until this message ID</param>
|
/// <param name="max_id">Only return reactions for messages up until this message ID</param>
|
||||||
/// <param name="min_id">Only return reactions for messages starting from this message ID</param>
|
/// <param name="min_id">Only return reactions for messages starting from this message ID</param>
|
||||||
public static Task<Messages_MessagesBase> Messages_GetUnreadReactions(this Client client, InputPeer peer, int offset_id = default, int add_offset = default, int limit = int.MaxValue, int max_id = default, int min_id = default, int? top_msg_id = null)
|
public static Task<Messages_MessagesBase> Messages_GetUnreadReactions(this Client client, InputPeer peer, int offset_id = default, int add_offset = default, int limit = int.MaxValue, int max_id = default, int min_id = default, int? top_msg_id = null, InputPeer saved_peer_id = null)
|
||||||
=> client.Invoke(new Messages_GetUnreadReactions
|
=> client.Invoke(new Messages_GetUnreadReactions
|
||||||
{
|
{
|
||||||
flags = (Messages_GetUnreadReactions.Flags)(top_msg_id != null ? 0x1 : 0),
|
flags = (Messages_GetUnreadReactions.Flags)((top_msg_id != null ? 0x1 : 0) | (saved_peer_id != null ? 0x2 : 0)),
|
||||||
peer = peer,
|
peer = peer,
|
||||||
top_msg_id = top_msg_id ?? default,
|
top_msg_id = top_msg_id ?? default,
|
||||||
|
saved_peer_id = saved_peer_id,
|
||||||
offset_id = offset_id,
|
offset_id = offset_id,
|
||||||
add_offset = add_offset,
|
add_offset = add_offset,
|
||||||
limit = limit,
|
limit = limit,
|
||||||
|
|
@ -3707,12 +3713,13 @@ namespace TL
|
||||||
/// <summary>Mark <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> as read <para>See <a href="https://corefork.telegram.org/method/messages.readReactions"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.readReactions#possible-errors">details</a>)</para></summary>
|
/// <summary>Mark <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> as read <para>See <a href="https://corefork.telegram.org/method/messages.readReactions"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.readReactions#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="peer">Peer</param>
|
/// <param name="peer">Peer</param>
|
||||||
/// <param name="top_msg_id">Mark as read only reactions to messages within the specified <a href="https://corefork.telegram.org/api/forum#forum-topics">forum topic</a></param>
|
/// <param name="top_msg_id">Mark as read only reactions to messages within the specified <a href="https://corefork.telegram.org/api/forum#forum-topics">forum topic</a></param>
|
||||||
public static Task<Messages_AffectedHistory> Messages_ReadReactions(this Client client, InputPeer peer, int? top_msg_id = null)
|
public static Task<Messages_AffectedHistory> Messages_ReadReactions(this Client client, InputPeer peer, int? top_msg_id = null, InputPeer saved_peer_id = null)
|
||||||
=> client.InvokeAffected(new Messages_ReadReactions
|
=> client.InvokeAffected(new Messages_ReadReactions
|
||||||
{
|
{
|
||||||
flags = (Messages_ReadReactions.Flags)(top_msg_id != null ? 0x1 : 0),
|
flags = (Messages_ReadReactions.Flags)((top_msg_id != null ? 0x1 : 0) | (saved_peer_id != null ? 0x2 : 0)),
|
||||||
peer = peer,
|
peer = peer,
|
||||||
top_msg_id = top_msg_id ?? default,
|
top_msg_id = top_msg_id ?? default,
|
||||||
|
saved_peer_id = saved_peer_id,
|
||||||
}, peer is InputPeerChannel ipc ? ipc.channel_id : 0);
|
}, peer is InputPeerChannel ipc ? ipc.channel_id : 0);
|
||||||
|
|
||||||
/// <summary>View and search recently sent media.<br/>This method does not support pagination. <para>See <a href="https://corefork.telegram.org/method/messages.searchSentMedia"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.searchSentMedia#possible-errors">details</a>)</para></summary>
|
/// <summary>View and search recently sent media.<br/>This method does not support pagination. <para>See <a href="https://corefork.telegram.org/method/messages.searchSentMedia"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.searchSentMedia#possible-errors">details</a>)</para></summary>
|
||||||
|
|
@ -4088,10 +4095,11 @@ namespace TL
|
||||||
/// <param name="offset_peer"><a href="https://corefork.telegram.org/api/offsets">Offset peer for pagination</a></param>
|
/// <param name="offset_peer"><a href="https://corefork.telegram.org/api/offsets">Offset peer for pagination</a></param>
|
||||||
/// <param name="limit">Number of list elements to be returned</param>
|
/// <param name="limit">Number of list elements to be returned</param>
|
||||||
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash used for caching, for more info click here</a></param>
|
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash used for caching, for more info click here</a></param>
|
||||||
public static Task<Messages_SavedDialogsBase> Messages_GetSavedDialogs(this Client client, DateTime offset_date = default, int offset_id = default, InputPeer offset_peer = null, int limit = int.MaxValue, long hash = default, bool exclude_pinned = false)
|
public static Task<Messages_SavedDialogsBase> Messages_GetSavedDialogs(this Client client, DateTime offset_date = default, int offset_id = default, InputPeer offset_peer = null, int limit = int.MaxValue, long hash = default, InputPeer parent_peer = null, bool exclude_pinned = false)
|
||||||
=> client.Invoke(new Messages_GetSavedDialogs
|
=> client.Invoke(new Messages_GetSavedDialogs
|
||||||
{
|
{
|
||||||
flags = (Messages_GetSavedDialogs.Flags)(exclude_pinned ? 0x1 : 0),
|
flags = (Messages_GetSavedDialogs.Flags)((parent_peer != null ? 0x2 : 0) | (exclude_pinned ? 0x1 : 0)),
|
||||||
|
parent_peer = parent_peer,
|
||||||
offset_date = offset_date,
|
offset_date = offset_date,
|
||||||
offset_id = offset_id,
|
offset_id = offset_id,
|
||||||
offset_peer = offset_peer,
|
offset_peer = offset_peer,
|
||||||
|
|
@ -4108,9 +4116,11 @@ namespace TL
|
||||||
/// <param name="max_id">If a positive value was transferred, the method will return only messages with IDs less than <strong>max_id</strong></param>
|
/// <param name="max_id">If a positive value was transferred, the method will return only messages with IDs less than <strong>max_id</strong></param>
|
||||||
/// <param name="min_id">If a positive value was transferred, the method will return only messages with IDs more than <strong>min_id</strong></param>
|
/// <param name="min_id">If a positive value was transferred, the method will return only messages with IDs more than <strong>min_id</strong></param>
|
||||||
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets">Result hash</a></param>
|
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets">Result hash</a></param>
|
||||||
public static Task<Messages_MessagesBase> Messages_GetSavedHistory(this Client client, InputPeer peer, int offset_id = default, DateTime offset_date = default, int add_offset = default, int limit = int.MaxValue, int max_id = default, int min_id = default, long hash = default)
|
public static Task<Messages_MessagesBase> Messages_GetSavedHistory(this Client client, InputPeer peer, int offset_id = default, DateTime offset_date = default, int add_offset = default, int limit = int.MaxValue, int max_id = default, int min_id = default, long hash = default, InputPeer parent_peer = null)
|
||||||
=> client.Invoke(new Messages_GetSavedHistory
|
=> client.Invoke(new Messages_GetSavedHistory
|
||||||
{
|
{
|
||||||
|
flags = (Messages_GetSavedHistory.Flags)(parent_peer != null ? 0x1 : 0),
|
||||||
|
parent_peer = parent_peer,
|
||||||
peer = peer,
|
peer = peer,
|
||||||
offset_id = offset_id,
|
offset_id = offset_id,
|
||||||
offset_date = offset_date,
|
offset_date = offset_date,
|
||||||
|
|
@ -4126,10 +4136,11 @@ namespace TL
|
||||||
/// <param name="max_id">Maximum ID of message to delete</param>
|
/// <param name="max_id">Maximum ID of message to delete</param>
|
||||||
/// <param name="min_date">Delete all messages newer than this UNIX timestamp</param>
|
/// <param name="min_date">Delete all messages newer than this UNIX timestamp</param>
|
||||||
/// <param name="max_date">Delete all messages older than this UNIX timestamp</param>
|
/// <param name="max_date">Delete all messages older than this UNIX timestamp</param>
|
||||||
public static Task<Messages_AffectedHistory> Messages_DeleteSavedHistory(this Client client, InputPeer peer, int max_id = default, DateTime? min_date = null, DateTime? max_date = null)
|
public static Task<Messages_AffectedHistory> Messages_DeleteSavedHistory(this Client client, InputPeer peer, int max_id = default, InputPeer parent_peer = null, DateTime? min_date = null, DateTime? max_date = null)
|
||||||
=> client.InvokeAffected(new Messages_DeleteSavedHistory
|
=> client.InvokeAffected(new Messages_DeleteSavedHistory
|
||||||
{
|
{
|
||||||
flags = (Messages_DeleteSavedHistory.Flags)((min_date != null ? 0x4 : 0) | (max_date != null ? 0x8 : 0)),
|
flags = (Messages_DeleteSavedHistory.Flags)((parent_peer != null ? 0x1 : 0) | (min_date != null ? 0x4 : 0) | (max_date != null ? 0x8 : 0)),
|
||||||
|
parent_peer = parent_peer,
|
||||||
peer = peer,
|
peer = peer,
|
||||||
max_id = max_id,
|
max_id = max_id,
|
||||||
min_date = min_date ?? default,
|
min_date = min_date ?? default,
|
||||||
|
|
@ -4496,6 +4507,24 @@ namespace TL
|
||||||
id = id,
|
id = id,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getSavedDialogsByID"/></para></summary>
|
||||||
|
public static Task<Messages_SavedDialogsBase> Messages_GetSavedDialogsByID(this Client client, InputPeer[] ids, InputPeer parent_peer = null)
|
||||||
|
=> client.Invoke(new Messages_GetSavedDialogsByID
|
||||||
|
{
|
||||||
|
flags = (Messages_GetSavedDialogsByID.Flags)(parent_peer != null ? 0x2 : 0),
|
||||||
|
parent_peer = parent_peer,
|
||||||
|
ids = ids,
|
||||||
|
});
|
||||||
|
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.readSavedHistory"/></para></summary>
|
||||||
|
public static Task<bool> Messages_ReadSavedHistory(this Client client, InputPeer parent_peer, InputPeer peer, int max_id = default)
|
||||||
|
=> client.Invoke(new Messages_ReadSavedHistory
|
||||||
|
{
|
||||||
|
parent_peer = parent_peer,
|
||||||
|
peer = peer,
|
||||||
|
max_id = max_id,
|
||||||
|
});
|
||||||
|
|
||||||
/// <summary>Returns a current state of updates. <para>See <a href="https://corefork.telegram.org/method/updates.getState"/> [bots: ✓]</para></summary>
|
/// <summary>Returns a current state of updates. <para>See <a href="https://corefork.telegram.org/method/updates.getState"/> [bots: ✓]</para></summary>
|
||||||
public static Task<Updates_State> Updates_GetState(this Client client)
|
public static Task<Updates_State> Updates_GetState(this Client client)
|
||||||
=> client.Invoke(new Updates_GetState
|
=> client.Invoke(new Updates_GetState
|
||||||
|
|
@ -5352,11 +5381,12 @@ namespace TL
|
||||||
/// <summary>Enable or disable <a href="https://corefork.telegram.org/api/forum">forum functionality</a> in a supergroup. <para>See <a href="https://corefork.telegram.org/method/channels.toggleForum"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.toggleForum#possible-errors">details</a>)</para></summary>
|
/// <summary>Enable or disable <a href="https://corefork.telegram.org/api/forum">forum functionality</a> in a supergroup. <para>See <a href="https://corefork.telegram.org/method/channels.toggleForum"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.toggleForum#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="channel">Supergroup ID</param>
|
/// <param name="channel">Supergroup ID</param>
|
||||||
/// <param name="enabled">Enable or disable forum functionality</param>
|
/// <param name="enabled">Enable or disable forum functionality</param>
|
||||||
public static Task<UpdatesBase> Channels_ToggleForum(this Client client, InputChannelBase channel, bool enabled)
|
public static Task<UpdatesBase> Channels_ToggleForum(this Client client, InputChannelBase channel, bool enabled, bool tabs)
|
||||||
=> client.Invoke(new Channels_ToggleForum
|
=> client.Invoke(new Channels_ToggleForum
|
||||||
{
|
{
|
||||||
channel = channel,
|
channel = channel,
|
||||||
enabled = enabled,
|
enabled = enabled,
|
||||||
|
tabs = tabs,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Create a <a href="https://corefork.telegram.org/api/forum">forum topic</a>; requires <a href="https://corefork.telegram.org/api/rights"><c>manage_topics</c> rights</a>. <para>See <a href="https://corefork.telegram.org/method/channels.createForumTopic"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.createForumTopic#possible-errors">details</a>)</para></summary>
|
/// <summary>Create a <a href="https://corefork.telegram.org/api/forum">forum topic</a>; requires <a href="https://corefork.telegram.org/api/rights"><c>manage_topics</c> rights</a>. <para>See <a href="https://corefork.telegram.org/method/channels.createForumTopic"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.createForumTopic#possible-errors">details</a>)</para></summary>
|
||||||
|
|
@ -5580,9 +5610,10 @@ namespace TL
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.updatePaidMessagesPrice"/></para></summary>
|
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.updatePaidMessagesPrice"/></para></summary>
|
||||||
public static Task<UpdatesBase> Channels_UpdatePaidMessagesPrice(this Client client, InputChannelBase channel, long send_paid_messages_stars)
|
public static Task<UpdatesBase> Channels_UpdatePaidMessagesPrice(this Client client, InputChannelBase channel, long send_paid_messages_stars, bool broadcast_messages_allowed = false)
|
||||||
=> client.Invoke(new Channels_UpdatePaidMessagesPrice
|
=> client.Invoke(new Channels_UpdatePaidMessagesPrice
|
||||||
{
|
{
|
||||||
|
flags = (Channels_UpdatePaidMessagesPrice.Flags)(broadcast_messages_allowed ? 0x1 : 0),
|
||||||
channel = channel,
|
channel = channel,
|
||||||
send_paid_messages_stars = send_paid_messages_stars,
|
send_paid_messages_stars = send_paid_messages_stars,
|
||||||
});
|
});
|
||||||
|
|
@ -5595,6 +5626,14 @@ namespace TL
|
||||||
enabled = enabled,
|
enabled = enabled,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.getMessageAuthor"/></para></summary>
|
||||||
|
public static Task<UserBase> Channels_GetMessageAuthor(this Client client, InputChannelBase channel, int id)
|
||||||
|
=> client.Invoke(new Channels_GetMessageAuthor
|
||||||
|
{
|
||||||
|
channel = channel,
|
||||||
|
id = id,
|
||||||
|
});
|
||||||
|
|
||||||
/// <summary>Sends a custom request; for bots only <para>See <a href="https://corefork.telegram.org/method/bots.sendCustomRequest"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/bots.sendCustomRequest#possible-errors">details</a>)</para></summary>
|
/// <summary>Sends a custom request; for bots only <para>See <a href="https://corefork.telegram.org/method/bots.sendCustomRequest"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/bots.sendCustomRequest#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="custom_method">The method name</param>
|
/// <param name="custom_method">The method name</param>
|
||||||
/// <param name="params_">JSON-serialized method parameters</param>
|
/// <param name="params_">JSON-serialized method parameters</param>
|
||||||
|
|
@ -9238,7 +9277,7 @@ namespace TL.Methods
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0xBB9FA475)]
|
[TLDef(0x38F0188C)]
|
||||||
public sealed partial class Messages_ForwardMessages : IMethod<UpdatesBase>
|
public sealed partial class Messages_ForwardMessages : IMethod<UpdatesBase>
|
||||||
{
|
{
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
|
@ -9247,6 +9286,7 @@ namespace TL.Methods
|
||||||
public long[] random_id;
|
public long[] random_id;
|
||||||
public InputPeer to_peer;
|
public InputPeer to_peer;
|
||||||
[IfFlag(9)] public int top_msg_id;
|
[IfFlag(9)] public int top_msg_id;
|
||||||
|
[IfFlag(22)] public InputReplyTo reply_to;
|
||||||
[IfFlag(10)] public DateTime schedule_date;
|
[IfFlag(10)] public DateTime schedule_date;
|
||||||
[IfFlag(13)] public InputPeer send_as;
|
[IfFlag(13)] public InputPeer send_as;
|
||||||
[IfFlag(17)] public InputQuickReplyShortcutBase quick_reply_shortcut;
|
[IfFlag(17)] public InputQuickReplyShortcutBase quick_reply_shortcut;
|
||||||
|
|
@ -9268,6 +9308,7 @@ namespace TL.Methods
|
||||||
allow_paid_floodskip = 0x80000,
|
allow_paid_floodskip = 0x80000,
|
||||||
has_video_timestamp = 0x100000,
|
has_video_timestamp = 0x100000,
|
||||||
has_allow_paid_stars = 0x200000,
|
has_allow_paid_stars = 0x200000,
|
||||||
|
has_reply_to = 0x400000,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -10131,20 +10172,31 @@ namespace TL.Methods
|
||||||
[TLDef(0x1CFF7E08)]
|
[TLDef(0x1CFF7E08)]
|
||||||
public sealed partial class Messages_GetSplitRanges : IMethod<MessageRange[]> { }
|
public sealed partial class Messages_GetSplitRanges : IMethod<MessageRange[]> { }
|
||||||
|
|
||||||
[TLDef(0xC286D98F)]
|
[TLDef(0x8C5006F8)]
|
||||||
public sealed partial class Messages_MarkDialogUnread : IMethod<bool>
|
public sealed partial class Messages_MarkDialogUnread : IMethod<bool>
|
||||||
{
|
{
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
[IfFlag(1)] public InputPeer parent_peer;
|
||||||
public InputDialogPeerBase peer;
|
public InputDialogPeerBase peer;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
unread = 0x1,
|
unread = 0x1,
|
||||||
|
has_parent_peer = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0x22E24E22)]
|
[TLDef(0x21202222)]
|
||||||
public sealed partial class Messages_GetDialogUnreadMarks : IMethod<DialogPeerBase[]> { }
|
public sealed partial class Messages_GetDialogUnreadMarks : IMethod<DialogPeerBase[]>
|
||||||
|
{
|
||||||
|
public Flags flags;
|
||||||
|
[IfFlag(0)] public InputPeer parent_peer;
|
||||||
|
|
||||||
|
[Flags] public enum Flags : uint
|
||||||
|
{
|
||||||
|
has_parent_peer = 0x1,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[TLDef(0x7E58EE9C)]
|
[TLDef(0x7E58EE9C)]
|
||||||
public sealed partial class Messages_ClearAllDrafts : IMethod<bool> { }
|
public sealed partial class Messages_ClearAllDrafts : IMethod<bool> { }
|
||||||
|
|
@ -10400,16 +10452,18 @@ namespace TL.Methods
|
||||||
public int read_max_id;
|
public int read_max_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0xEE22B9A8)]
|
[TLDef(0x062DD747)]
|
||||||
public sealed partial class Messages_UnpinAllMessages : IMethod<Messages_AffectedHistory>
|
public sealed partial class Messages_UnpinAllMessages : IMethod<Messages_AffectedHistory>
|
||||||
{
|
{
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
public InputPeer peer;
|
public InputPeer peer;
|
||||||
[IfFlag(0)] public int top_msg_id;
|
[IfFlag(0)] public int top_msg_id;
|
||||||
|
[IfFlag(1)] public InputPeer saved_peer_id;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
has_top_msg_id = 0x1,
|
has_top_msg_id = 0x1,
|
||||||
|
has_saved_peer_id = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -10729,12 +10783,13 @@ namespace TL.Methods
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0x3223495B)]
|
[TLDef(0xBD7F90AC)]
|
||||||
public sealed partial class Messages_GetUnreadReactions : IMethod<Messages_MessagesBase>
|
public sealed partial class Messages_GetUnreadReactions : IMethod<Messages_MessagesBase>
|
||||||
{
|
{
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
public InputPeer peer;
|
public InputPeer peer;
|
||||||
[IfFlag(0)] public int top_msg_id;
|
[IfFlag(0)] public int top_msg_id;
|
||||||
|
[IfFlag(1)] public InputPeer saved_peer_id;
|
||||||
public int offset_id;
|
public int offset_id;
|
||||||
public int add_offset;
|
public int add_offset;
|
||||||
public int limit;
|
public int limit;
|
||||||
|
|
@ -10744,19 +10799,22 @@ namespace TL.Methods
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
has_top_msg_id = 0x1,
|
has_top_msg_id = 0x1,
|
||||||
|
has_saved_peer_id = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0x54AA7F8E)]
|
[TLDef(0x9EC44F93)]
|
||||||
public sealed partial class Messages_ReadReactions : IMethod<Messages_AffectedHistory>
|
public sealed partial class Messages_ReadReactions : IMethod<Messages_AffectedHistory>
|
||||||
{
|
{
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
public InputPeer peer;
|
public InputPeer peer;
|
||||||
[IfFlag(0)] public int top_msg_id;
|
[IfFlag(0)] public int top_msg_id;
|
||||||
|
[IfFlag(1)] public InputPeer saved_peer_id;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
has_top_msg_id = 0x1,
|
has_top_msg_id = 0x1,
|
||||||
|
has_saved_peer_id = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -11056,10 +11114,11 @@ namespace TL.Methods
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0x5381D21A)]
|
[TLDef(0x1E91FC99)]
|
||||||
public sealed partial class Messages_GetSavedDialogs : IMethod<Messages_SavedDialogsBase>
|
public sealed partial class Messages_GetSavedDialogs : IMethod<Messages_SavedDialogsBase>
|
||||||
{
|
{
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
[IfFlag(1)] public InputPeer parent_peer;
|
||||||
public DateTime offset_date;
|
public DateTime offset_date;
|
||||||
public int offset_id;
|
public int offset_id;
|
||||||
public InputPeer offset_peer;
|
public InputPeer offset_peer;
|
||||||
|
|
@ -11069,12 +11128,15 @@ namespace TL.Methods
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
exclude_pinned = 0x1,
|
exclude_pinned = 0x1,
|
||||||
|
has_parent_peer = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0x3D9A414D)]
|
[TLDef(0x998AB009)]
|
||||||
public sealed partial class Messages_GetSavedHistory : IMethod<Messages_MessagesBase>
|
public sealed partial class Messages_GetSavedHistory : IMethod<Messages_MessagesBase>
|
||||||
{
|
{
|
||||||
|
public Flags flags;
|
||||||
|
[IfFlag(0)] public InputPeer parent_peer;
|
||||||
public InputPeer peer;
|
public InputPeer peer;
|
||||||
public int offset_id;
|
public int offset_id;
|
||||||
public DateTime offset_date;
|
public DateTime offset_date;
|
||||||
|
|
@ -11083,12 +11145,18 @@ namespace TL.Methods
|
||||||
public int max_id;
|
public int max_id;
|
||||||
public int min_id;
|
public int min_id;
|
||||||
public long hash;
|
public long hash;
|
||||||
|
|
||||||
|
[Flags] public enum Flags : uint
|
||||||
|
{
|
||||||
|
has_parent_peer = 0x1,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0x6E98102B)]
|
[TLDef(0x4DC5085F)]
|
||||||
public sealed partial class Messages_DeleteSavedHistory : IMethod<Messages_AffectedHistory>
|
public sealed partial class Messages_DeleteSavedHistory : IMethod<Messages_AffectedHistory>
|
||||||
{
|
{
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
[IfFlag(0)] public InputPeer parent_peer;
|
||||||
public InputPeer peer;
|
public InputPeer peer;
|
||||||
public int max_id;
|
public int max_id;
|
||||||
[IfFlag(2)] public DateTime min_date;
|
[IfFlag(2)] public DateTime min_date;
|
||||||
|
|
@ -11096,6 +11164,7 @@ namespace TL.Methods
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
has_parent_peer = 0x1,
|
||||||
has_min_date = 0x4,
|
has_min_date = 0x4,
|
||||||
has_max_date = 0x8,
|
has_max_date = 0x8,
|
||||||
}
|
}
|
||||||
|
|
@ -11404,6 +11473,27 @@ namespace TL.Methods
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[TLDef(0x6F6F9C96)]
|
||||||
|
public sealed partial class Messages_GetSavedDialogsByID : IMethod<Messages_SavedDialogsBase>
|
||||||
|
{
|
||||||
|
public Flags flags;
|
||||||
|
[IfFlag(1)] public InputPeer parent_peer;
|
||||||
|
public InputPeer[] ids;
|
||||||
|
|
||||||
|
[Flags] public enum Flags : uint
|
||||||
|
{
|
||||||
|
has_parent_peer = 0x2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[TLDef(0xBA4A3B5B)]
|
||||||
|
public sealed partial class Messages_ReadSavedHistory : IMethod<bool>
|
||||||
|
{
|
||||||
|
public InputPeer parent_peer;
|
||||||
|
public InputPeer peer;
|
||||||
|
public int max_id;
|
||||||
|
}
|
||||||
|
|
||||||
[TLDef(0xEDD4882A)]
|
[TLDef(0xEDD4882A)]
|
||||||
public sealed partial class Updates_GetState : IMethod<Updates_State> { }
|
public sealed partial class Updates_GetState : IMethod<Updates_State> { }
|
||||||
|
|
||||||
|
|
@ -12053,11 +12143,12 @@ namespace TL.Methods
|
||||||
public InputChannelBase channel;
|
public InputChannelBase channel;
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0xA4298B29)]
|
[TLDef(0x3FF75734)]
|
||||||
public sealed partial class Channels_ToggleForum : IMethod<UpdatesBase>
|
public sealed partial class Channels_ToggleForum : IMethod<UpdatesBase>
|
||||||
{
|
{
|
||||||
public InputChannelBase channel;
|
public InputChannelBase channel;
|
||||||
public bool enabled;
|
public bool enabled;
|
||||||
|
public bool tabs;
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0xF40C0224)]
|
[TLDef(0xF40C0224)]
|
||||||
|
|
@ -12245,11 +12336,17 @@ namespace TL.Methods
|
||||||
public int limit;
|
public int limit;
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0xFC84653F)]
|
[TLDef(0x4B12327B)]
|
||||||
public sealed partial class Channels_UpdatePaidMessagesPrice : IMethod<UpdatesBase>
|
public sealed partial class Channels_UpdatePaidMessagesPrice : IMethod<UpdatesBase>
|
||||||
{
|
{
|
||||||
|
public Flags flags;
|
||||||
public InputChannelBase channel;
|
public InputChannelBase channel;
|
||||||
public long send_paid_messages_stars;
|
public long send_paid_messages_stars;
|
||||||
|
|
||||||
|
[Flags] public enum Flags : uint
|
||||||
|
{
|
||||||
|
broadcast_messages_allowed = 0x1,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0x167FC0A1)]
|
[TLDef(0x167FC0A1)]
|
||||||
|
|
@ -12259,6 +12356,13 @@ namespace TL.Methods
|
||||||
public bool enabled;
|
public bool enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[TLDef(0xECE2A0E6)]
|
||||||
|
public sealed partial class Channels_GetMessageAuthor : IMethod<UserBase>
|
||||||
|
{
|
||||||
|
public InputChannelBase channel;
|
||||||
|
public int id;
|
||||||
|
}
|
||||||
|
|
||||||
[TLDef(0xAA2769ED)]
|
[TLDef(0xAA2769ED)]
|
||||||
public sealed partial class Bots_SendCustomRequest : IMethod<DataJSON>
|
public sealed partial class Bots_SendCustomRequest : IMethod<DataJSON>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ namespace TL
|
||||||
{
|
{
|
||||||
public static partial class Layer
|
public static partial class Layer
|
||||||
{
|
{
|
||||||
public const int Version = 203; // fetched 14/05/2025 16:07:47
|
public const int Version = 204; // fetched 04/06/2025 15:07:47
|
||||||
internal const int SecretChats = 144;
|
internal const int SecretChats = 144;
|
||||||
internal const int MTProto2 = 73;
|
internal const int MTProto2 = 73;
|
||||||
internal const uint VectorCtor = 0x1CB5C415;
|
internal const uint VectorCtor = 0x1CB5C415;
|
||||||
|
|
@ -136,7 +136,7 @@ namespace TL
|
||||||
[0x29562865] = typeof(ChatEmpty),
|
[0x29562865] = typeof(ChatEmpty),
|
||||||
[0x41CBF256] = typeof(Chat),
|
[0x41CBF256] = typeof(Chat),
|
||||||
[0x6592A1A7] = typeof(ChatForbidden),
|
[0x6592A1A7] = typeof(ChatForbidden),
|
||||||
[0x7482147E] = typeof(Channel),
|
[0xFE685355] = typeof(Channel),
|
||||||
[0x17D493D5] = typeof(ChannelForbidden),
|
[0x17D493D5] = typeof(ChannelForbidden),
|
||||||
[0x2633421B] = typeof(ChatFull),
|
[0x2633421B] = typeof(ChatFull),
|
||||||
[0x52D6806B] = typeof(ChannelFull),
|
[0x52D6806B] = typeof(ChannelFull),
|
||||||
|
|
@ -216,7 +216,7 @@ namespace TL
|
||||||
[0x4717E8A4] = typeof(MessageActionStarGift),
|
[0x4717E8A4] = typeof(MessageActionStarGift),
|
||||||
[0x2E3AE60E] = typeof(MessageActionStarGiftUnique),
|
[0x2E3AE60E] = typeof(MessageActionStarGiftUnique),
|
||||||
[0xAC1F1FCD] = typeof(MessageActionPaidMessagesRefunded),
|
[0xAC1F1FCD] = typeof(MessageActionPaidMessagesRefunded),
|
||||||
[0xBCD71419] = typeof(MessageActionPaidMessagesPrice),
|
[0x84B88578] = typeof(MessageActionPaidMessagesPrice),
|
||||||
[0x2FFE2F7A] = typeof(MessageActionConferenceCall),
|
[0x2FFE2F7A] = typeof(MessageActionConferenceCall),
|
||||||
[0xD58A08C6] = typeof(Dialog),
|
[0xD58A08C6] = typeof(Dialog),
|
||||||
[0x71BD134C] = typeof(DialogFolder),
|
[0x71BD134C] = typeof(DialogFolder),
|
||||||
|
|
@ -325,7 +325,7 @@ namespace TL
|
||||||
[0xE40370A3] = typeof(UpdateEditMessage),
|
[0xE40370A3] = typeof(UpdateEditMessage),
|
||||||
[0x691E9052] = typeof(UpdateInlineBotCallbackQuery),
|
[0x691E9052] = typeof(UpdateInlineBotCallbackQuery),
|
||||||
[0xB75F99A9] = typeof(UpdateReadChannelOutbox),
|
[0xB75F99A9] = typeof(UpdateReadChannelOutbox),
|
||||||
[0x1B49EC6D] = typeof(UpdateDraftMessage),
|
[0xEDFC111E] = typeof(UpdateDraftMessage),
|
||||||
[0x571D2742] = typeof(UpdateReadFeaturedStickers),
|
[0x571D2742] = typeof(UpdateReadFeaturedStickers),
|
||||||
[0x9A422C20] = typeof(UpdateRecentStickers),
|
[0x9A422C20] = typeof(UpdateRecentStickers),
|
||||||
[0xA229DD06] = typeof(UpdateConfig),
|
[0xA229DD06] = typeof(UpdateConfig),
|
||||||
|
|
@ -341,10 +341,10 @@ namespace TL
|
||||||
[0x46560264] = typeof(UpdateLangPackTooLong),
|
[0x46560264] = typeof(UpdateLangPackTooLong),
|
||||||
[0x56022F4D] = typeof(UpdateLangPack),
|
[0x56022F4D] = typeof(UpdateLangPack),
|
||||||
[0xE511996D] = typeof(UpdateFavedStickers),
|
[0xE511996D] = typeof(UpdateFavedStickers),
|
||||||
[0xEA29055D] = typeof(UpdateChannelReadMessagesContents),
|
[0x25F324F7] = typeof(UpdateChannelReadMessagesContents),
|
||||||
[0x7084A7BE] = typeof(UpdateContactsReset),
|
[0x7084A7BE] = typeof(UpdateContactsReset),
|
||||||
[0xB23FC698] = typeof(UpdateChannelAvailableMessages),
|
[0xB23FC698] = typeof(UpdateChannelAvailableMessages),
|
||||||
[0xE16459C3] = typeof(UpdateDialogUnreadMark),
|
[0xB658F23E] = typeof(UpdateDialogUnreadMark),
|
||||||
[0xACA1657B] = typeof(UpdateMessagePoll),
|
[0xACA1657B] = typeof(UpdateMessagePoll),
|
||||||
[0x54C01850] = typeof(UpdateChatDefaultBannedRights),
|
[0x54C01850] = typeof(UpdateChatDefaultBannedRights),
|
||||||
[0x19360DC0] = typeof(UpdateFolderPeers),
|
[0x19360DC0] = typeof(UpdateFolderPeers),
|
||||||
|
|
@ -378,7 +378,7 @@ namespace TL
|
||||||
[0x4D712F2E] = typeof(UpdateBotCommands),
|
[0x4D712F2E] = typeof(UpdateBotCommands),
|
||||||
[0x7063C3DB] = typeof(UpdatePendingJoinRequests),
|
[0x7063C3DB] = typeof(UpdatePendingJoinRequests),
|
||||||
[0x11DFA986] = typeof(UpdateBotChatInviteRequester),
|
[0x11DFA986] = typeof(UpdateBotChatInviteRequester),
|
||||||
[0x5E1B3CB8] = typeof(UpdateMessageReactions),
|
[0x1E297BFA] = typeof(UpdateMessageReactions),
|
||||||
[0x17B7A20B] = typeof(UpdateAttachMenuBots),
|
[0x17B7A20B] = typeof(UpdateAttachMenuBots),
|
||||||
[0x1592B79D] = typeof(UpdateWebViewResultSent),
|
[0x1592B79D] = typeof(UpdateWebViewResultSent),
|
||||||
[0x14B85813] = typeof(UpdateBotMenuButton),
|
[0x14B85813] = typeof(UpdateBotMenuButton),
|
||||||
|
|
@ -426,6 +426,8 @@ namespace TL
|
||||||
[0x8B725FCE] = typeof(UpdatePaidReactionPrivacy),
|
[0x8B725FCE] = typeof(UpdatePaidReactionPrivacy),
|
||||||
[0x504AA18F] = typeof(UpdateSentPhoneCode),
|
[0x504AA18F] = typeof(UpdateSentPhoneCode),
|
||||||
[0xA477288F] = typeof(UpdateGroupCallChainBlocks),
|
[0xA477288F] = typeof(UpdateGroupCallChainBlocks),
|
||||||
|
[0x77B0E372] = typeof(UpdateReadMonoForumInbox),
|
||||||
|
[0xA4A79376] = typeof(UpdateReadMonoForumOutbox),
|
||||||
[0xA56C2A3E] = typeof(Updates_State),
|
[0xA56C2A3E] = typeof(Updates_State),
|
||||||
[0x5D75A138] = typeof(Updates_DifferenceEmpty),
|
[0x5D75A138] = typeof(Updates_DifferenceEmpty),
|
||||||
[0x00F49CA0] = typeof(Updates_Difference),
|
[0x00F49CA0] = typeof(Updates_Difference),
|
||||||
|
|
@ -1211,8 +1213,9 @@ namespace TL
|
||||||
[0xBD74CF49] = typeof(StoryViewPublicRepost),
|
[0xBD74CF49] = typeof(StoryViewPublicRepost),
|
||||||
[0x59D78FC5] = typeof(Stories_StoryViewsList),
|
[0x59D78FC5] = typeof(Stories_StoryViewsList),
|
||||||
[0xDE9EED1D] = typeof(Stories_StoryViews),
|
[0xDE9EED1D] = typeof(Stories_StoryViews),
|
||||||
[0x22C0F6D5] = typeof(InputReplyToMessage),
|
[0xB07038B0] = typeof(InputReplyToMessage),
|
||||||
[0x5881323A] = typeof(InputReplyToStory),
|
[0x5881323A] = typeof(InputReplyToStory),
|
||||||
|
[0x69D66C45] = typeof(InputReplyToMonoForum),
|
||||||
[0x3FC9053B] = typeof(ExportedStoryLink),
|
[0x3FC9053B] = typeof(ExportedStoryLink),
|
||||||
[0x712E27FD] = typeof(StoriesStealthMode),
|
[0x712E27FD] = typeof(StoriesStealthMode),
|
||||||
[0xCFC9E002] = typeof(MediaAreaCoordinates),
|
[0xCFC9E002] = typeof(MediaAreaCoordinates),
|
||||||
|
|
@ -1257,6 +1260,7 @@ namespace TL
|
||||||
[0xCFCD0F13] = typeof(StoryReactionPublicRepost),
|
[0xCFCD0F13] = typeof(StoryReactionPublicRepost),
|
||||||
[0xAA5F789C] = typeof(Stories_StoryReactionsList),
|
[0xAA5F789C] = typeof(Stories_StoryReactionsList),
|
||||||
[0xBD87CB6C] = typeof(SavedDialog),
|
[0xBD87CB6C] = typeof(SavedDialog),
|
||||||
|
[0x64407EA7] = typeof(MonoForumDialog),
|
||||||
[0xF83AE221] = typeof(Messages_SavedDialogs),
|
[0xF83AE221] = typeof(Messages_SavedDialogs),
|
||||||
[0x44BA9DD9] = typeof(Messages_SavedDialogsSlice),
|
[0x44BA9DD9] = typeof(Messages_SavedDialogsSlice),
|
||||||
[0xC01F6FE8] = typeof(Messages_SavedDialogsNotModified),
|
[0xC01F6FE8] = typeof(Messages_SavedDialogsNotModified),
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,10 @@
|
||||||
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||||
<PackageId>WTelegramClient</PackageId>
|
<PackageId>WTelegramClient</PackageId>
|
||||||
<Version>0.0.0</Version>
|
<VersionPrefix>0.0.0</VersionPrefix>
|
||||||
|
<VersionSuffix>layer.204</VersionSuffix>
|
||||||
<Authors>Wizou</Authors>
|
<Authors>Wizou</Authors>
|
||||||
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 203
|
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 204
|
||||||
|
|
||||||
Release Notes:
|
Release Notes:
|
||||||
$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
|
$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue