mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
API Layer 173: no_joined_notifications, SavedReactionTags in peers
This commit is contained in:
parent
0ad7d696a5
commit
a424219cb6
|
|
@ -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/absoluteLatest)
|
||||
[](https://www.buymeacoffee.com/wizou)
|
||||
|
|
|
|||
|
|
@ -1672,6 +1672,7 @@ namespace TL
|
|||
[IfFlag(8)] public Peer from_id;
|
||||
/// <summary>Peer ID, the chat where this message was sent</summary>
|
||||
public Peer peer_id;
|
||||
/// <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>
|
||||
[IfFlag(28)] public Peer saved_peer_id;
|
||||
/// <summary>Info about forwarded messages</summary>
|
||||
[IfFlag(2)] public MessageFwdHeader fwd_from;
|
||||
|
|
@ -1910,8 +1911,11 @@ namespace TL
|
|||
spoiler = 0x10,
|
||||
/// <summary>Field <see cref="alt_document"/> has a value</summary>
|
||||
has_alt_document = 0x20,
|
||||
/// <summary>Whether this is a video.</summary>
|
||||
video = 0x40,
|
||||
/// <summary>Whether this is a round video.</summary>
|
||||
round = 0x80,
|
||||
/// <summary>Whether this is a voice message.</summary>
|
||||
voice = 0x100,
|
||||
}
|
||||
}
|
||||
|
|
@ -3269,7 +3273,7 @@ namespace TL
|
|||
stories_pinned_available = 0x4000000,
|
||||
/// <summary>Whether we've <a href="https://corefork.telegram.org/api/block">blocked this user, preventing them from seeing our stories »</a>.</summary>
|
||||
blocked_my_stories_from = 0x8000000,
|
||||
/// <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>
|
||||
/// <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>
|
||||
wallpaper_overridden = 0x10000000,
|
||||
contact_require_premium = 0x20000000,
|
||||
read_dates_private = 0x40000000,
|
||||
|
|
@ -5094,25 +5098,28 @@ namespace TL
|
|||
|
||||
public override (long, int, int) GetMBox() => (-1, qts, 1);
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateSavedDialogPinned"/></para></summary>
|
||||
/// <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>
|
||||
[TLDef(0xAEAF9E74)]
|
||||
public class UpdateSavedDialogPinned : Update
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
public Flags flags;
|
||||
/// <summary>The dialog</summary>
|
||||
public DialogPeerBase peer;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Whether the dialog was pinned</summary>
|
||||
pinned = 0x1,
|
||||
}
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updatePinnedSavedDialogs"/></para></summary>
|
||||
/// <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>
|
||||
[TLDef(0x686C85A6)]
|
||||
public class UpdatePinnedSavedDialogs : Update
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
public Flags flags;
|
||||
/// <summary>New order of pinned saved dialogs</summary>
|
||||
[IfFlag(0)] public DialogPeerBase[] order;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
|
|
@ -8600,12 +8607,15 @@ namespace TL
|
|||
[IfFlag(2)] public int channel_post;
|
||||
/// <summary>For channels and if signatures are enabled, author of the channel message</summary>
|
||||
[IfFlag(3)] public string post_author;
|
||||
/// <summary>Only for messages forwarded to the current user (inputPeerSelf), full info about the user/channel that originally sent the message</summary>
|
||||
/// <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>
|
||||
[IfFlag(4)] public Peer saved_from_peer;
|
||||
/// <summary>Only for messages forwarded to the current user (inputPeerSelf), ID of the message that was forwarded from the original user/channel</summary>
|
||||
/// <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>
|
||||
[IfFlag(4)] public int saved_from_msg_id;
|
||||
/// <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>
|
||||
[IfFlag(8)] public Peer saved_from_id;
|
||||
/// <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>
|
||||
[IfFlag(9)] public string saved_from_name;
|
||||
/// <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>
|
||||
[IfFlag(10)] public DateTime saved_date;
|
||||
/// <summary>PSA type</summary>
|
||||
[IfFlag(6)] public string psa_type;
|
||||
|
|
@ -8632,6 +8642,7 @@ namespace TL
|
|||
has_saved_from_name = 0x200,
|
||||
/// <summary>Field <see cref="saved_date"/> has a value</summary>
|
||||
has_saved_date = 0x400,
|
||||
/// <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>
|
||||
saved_out = 0x800,
|
||||
}
|
||||
}
|
||||
|
|
@ -16863,55 +16874,72 @@ namespace TL
|
|||
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
|
||||
}
|
||||
|
||||
/// <summary><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)]
|
||||
public class SavedDialog : IObject
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
public Flags flags;
|
||||
/// <summary>The dialog</summary>
|
||||
public Peer peer;
|
||||
/// <summary>The latest message ID</summary>
|
||||
public int top_message;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Is the dialog pinned</summary>
|
||||
pinned = 0x4,
|
||||
}
|
||||
}
|
||||
|
||||
/// <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>
|
||||
/// <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 class Messages_SavedDialogsBase : IObject
|
||||
{
|
||||
/// <summary><a href="https://corefork.telegram.org/api/saved-messages">Saved message dialogs »</a>.</summary>
|
||||
public virtual SavedDialog[] Dialogs { get; }
|
||||
/// <summary>List of last messages from each saved dialog</summary>
|
||||
public virtual MessageBase[] Messages { get; }
|
||||
/// <summary>Mentioned chats</summary>
|
||||
public virtual Dictionary<long, ChatBase> Chats { get; }
|
||||
/// <summary>Mentioned users</summary>
|
||||
public virtual Dictionary<long, User> Users { get; }
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messages.savedDialogs"/></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/constructor/messages.savedDialogs"/></para></summary>
|
||||
[TLDef(0xF83AE221)]
|
||||
public class Messages_SavedDialogs : Messages_SavedDialogsBase, IPeerResolver
|
||||
{
|
||||
/// <summary><a href="https://corefork.telegram.org/api/saved-messages">Saved message dialogs »</a>.</summary>
|
||||
public SavedDialog[] dialogs;
|
||||
/// <summary>List of last messages from each saved dialog</summary>
|
||||
public MessageBase[] messages;
|
||||
/// <summary>Mentioned chats</summary>
|
||||
public Dictionary<long, ChatBase> chats;
|
||||
/// <summary>Mentioned users</summary>
|
||||
public Dictionary<long, User> users;
|
||||
|
||||
/// <summary><a href="https://corefork.telegram.org/api/saved-messages">Saved message dialogs »</a>.</summary>
|
||||
public override SavedDialog[] Dialogs => dialogs;
|
||||
/// <summary>List of last messages from each saved dialog</summary>
|
||||
public override MessageBase[] Messages => messages;
|
||||
/// <summary>Mentioned chats</summary>
|
||||
public override Dictionary<long, ChatBase> Chats => chats;
|
||||
/// <summary>Mentioned users</summary>
|
||||
public override Dictionary<long, User> Users => users;
|
||||
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
|
||||
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messages.savedDialogsSlice"/></para></summary>
|
||||
/// <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>
|
||||
[TLDef(0x44BA9DD9)]
|
||||
public class Messages_SavedDialogsSlice : Messages_SavedDialogs
|
||||
{
|
||||
/// <summary>Total number of saved message dialogs</summary>
|
||||
public int count;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messages.savedDialogsNotModified"/></para></summary>
|
||||
/// <summary>The saved dialogs haven't changed <para>See <a href="https://corefork.telegram.org/constructor/messages.savedDialogsNotModified"/></para></summary>
|
||||
[TLDef(0xC01F6FE8)]
|
||||
public class Messages_SavedDialogsNotModified : Messages_SavedDialogsBase
|
||||
{
|
||||
/// <summary>Number of <a href="https://corefork.telegram.org/api/saved-messages">saved dialogs</a> found server-side by the query</summary>
|
||||
public int count;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -113,9 +113,10 @@ namespace TL
|
|||
/// <param name="first_name">New user first name</param>
|
||||
/// <param name="last_name">New user last name</param>
|
||||
[Obsolete("Use LoginUserIfNeeded instead of this method. See https://wiz0u.github.io/WTelegramClient/FAQ#tlsharp")]
|
||||
public static Task<Auth_AuthorizationBase> Auth_SignUp(this Client client, string phone_number, string phone_code_hash, string first_name, string last_name)
|
||||
public static Task<Auth_AuthorizationBase> Auth_SignUp(this Client client, string phone_number, string phone_code_hash, string first_name, string last_name, bool no_joined_notifications = false)
|
||||
=> client.Invoke(new Auth_SignUp
|
||||
{
|
||||
flags = (Auth_SignUp.Flags)(no_joined_notifications ? 0x1 : 0),
|
||||
phone_number = phone_number,
|
||||
phone_code_hash = phone_code_hash,
|
||||
first_name = first_name,
|
||||
|
|
@ -263,7 +264,7 @@ namespace TL
|
|||
except_ids = except_ids,
|
||||
});
|
||||
|
||||
/// <summary>Login using a redirected login token, generated in case of DC mismatch during <a href="https://corefork.telegram.org/api/qr-login">QR code login</a>. <para>See <a href="https://corefork.telegram.org/method/auth.importLoginToken"/></para> <para>Possible <see cref="RpcException"/> codes: 400,500 (<a href="https://corefork.telegram.org/method/auth.importLoginToken#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Login using a redirected login token, generated in case of DC mismatch during <a href="https://corefork.telegram.org/api/qr-login">QR code login</a>. <para>See <a href="https://corefork.telegram.org/method/auth.importLoginToken"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/auth.importLoginToken#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="token">Login token</param>
|
||||
public static Task<Auth_LoginTokenBase> Auth_ImportLoginToken(this Client client, byte[] token)
|
||||
=> client.Invoke(new Auth_ImportLoginToken
|
||||
|
|
@ -1175,7 +1176,7 @@ namespace TL
|
|||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary>Get a list of default suggested <a href="https://corefork.telegram.org/api/emoji-status">channel emoji statuses</a>. <para>See <a href="https://corefork.telegram.org/method/account.getChannelDefaultEmojiStatuses"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Get a list of default suggested <a href="https://corefork.telegram.org/api/emoji-status">channel emoji statuses</a>. <para>See <a href="https://corefork.telegram.org/method/account.getChannelDefaultEmojiStatuses"/></para></summary>
|
||||
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/account.emojiStatusesNotModified">account.emojiStatusesNotModified</a></returns>
|
||||
public static Task<Account_EmojiStatuses> Account_GetChannelDefaultEmojiStatuses(this Client client, long hash = default)
|
||||
|
|
@ -1184,7 +1185,7 @@ namespace TL
|
|||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary>Returns fetch the full list of <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji IDs »</a> that cannot be used in <a href="https://corefork.telegram.org/api/emoji-status">channel emoji statuses »</a>. <para>See <a href="https://corefork.telegram.org/method/account.getChannelRestrictedStatusEmojis"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Returns fetch the full list of <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji IDs »</a> that cannot be used in <a href="https://corefork.telegram.org/api/emoji-status">channel emoji statuses »</a>. <para>See <a href="https://corefork.telegram.org/method/account.getChannelRestrictedStatusEmojis"/></para></summary>
|
||||
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/emojiListNotModified">emojiListNotModified</a></returns>
|
||||
public static Task<EmojiList> Account_GetChannelRestrictedStatusEmojis(this Client client, long hash = default)
|
||||
|
|
@ -1411,7 +1412,7 @@ namespace TL
|
|||
self_expires = self_expires.GetValueOrDefault(),
|
||||
});
|
||||
|
||||
/// <summary>Stop getting notifications about <a href="https://corefork.telegram.org/api/discussion">discussion replies</a> of a certain user in <c>@replies</c> <para>See <a href="https://corefork.telegram.org/method/contacts.blockFromReplies"/></para></summary>
|
||||
/// <summary>Stop getting notifications about <a href="https://corefork.telegram.org/api/discussion">discussion replies</a> of a certain user in <c>@replies</c> <para>See <a href="https://corefork.telegram.org/method/contacts.blockFromReplies"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/contacts.blockFromReplies#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="delete_message">Whether to delete the specified message as well</param>
|
||||
/// <param name="delete_history">Whether to delete all <c>@replies</c> messages from this user as well</param>
|
||||
/// <param name="report_spam">Whether to also report this user for spam</param>
|
||||
|
|
@ -1519,6 +1520,7 @@ namespace TL
|
|||
/// <param name="peer">User or chat, histories with which are searched, or <see langword="null"/> to search in all private chats and <a href="https://corefork.telegram.org/api/channel">normal groups (not channels) »</a>. Use <see cref="Messages_SearchGlobal">Messages_SearchGlobal</see> to search globally in all chats, groups, supergroups and channels.</param>
|
||||
/// <param name="q">Text search request</param>
|
||||
/// <param name="from_id">Only return messages sent by the specified user ID</param>
|
||||
/// <param name="saved_peer_id">Search within the <a href="https://corefork.telegram.org/api/saved-messages">saved message dialog »</a> with this ID.</param>
|
||||
/// <param name="top_msg_id"><a href="https://corefork.telegram.org/api/threads">Thread ID</a></param>
|
||||
/// <param name="filter">Filter to return only specified message types</param>
|
||||
/// <param name="min_date">If a positive value was transferred, only messages with a sending date bigger than the transferred one will be returned</param>
|
||||
|
|
@ -2785,6 +2787,7 @@ namespace TL
|
|||
|
||||
/// <summary>Get the number of results that would be found by a <see cref="Messages_Search">Messages_Search</see> call with the same parameters <para>See <a href="https://corefork.telegram.org/method/messages.getSearchCounters"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getSearchCounters#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Peer where to search</param>
|
||||
/// <param name="saved_peer_id">Search within the <a href="https://corefork.telegram.org/api/saved-messages">saved message dialog »</a> with this ID.</param>
|
||||
/// <param name="top_msg_id">If set, consider only messages within the specified <a href="https://corefork.telegram.org/api/forum#forum-topics">forum topic</a></param>
|
||||
/// <param name="filters">Search filters</param>
|
||||
public static Task<Messages_SearchCounter[]> Messages_GetSearchCounters(this Client client, InputPeer peer, MessagesFilter[] filters, int? top_msg_id = null, InputPeer saved_peer_id = null)
|
||||
|
|
@ -2868,7 +2871,7 @@ namespace TL
|
|||
id = id,
|
||||
});
|
||||
|
||||
/// <summary>Delete scheduled messages <para>See <a href="https://corefork.telegram.org/method/messages.deleteScheduledMessages"/></para></summary>
|
||||
/// <summary>Delete scheduled messages <para>See <a href="https://corefork.telegram.org/method/messages.deleteScheduledMessages"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.deleteScheduledMessages#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Peer</param>
|
||||
/// <param name="id">Scheduled message IDs</param>
|
||||
public static Task<UpdatesBase> Messages_DeleteScheduledMessages(this Client client, InputPeer peer, params int[] id)
|
||||
|
|
@ -3204,6 +3207,7 @@ namespace TL
|
|||
|
||||
/// <summary>Returns information about the next messages of the specified type in the chat split by days. <para>See <a href="https://corefork.telegram.org/method/messages.getSearchResultsCalendar"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getSearchResultsCalendar#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Peer where to search</param>
|
||||
/// <param name="saved_peer_id">Search within the <a href="https://corefork.telegram.org/api/saved-messages">saved message dialog »</a> with this ID.</param>
|
||||
/// <param name="filter">Message filter, <see langword="null"/>, <see cref="InputMessagesFilterMyMentions"/> filters are not supported by this method.</param>
|
||||
/// <param name="offset_id"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param>
|
||||
/// <param name="offset_date"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param>
|
||||
|
|
@ -3220,6 +3224,7 @@ namespace TL
|
|||
|
||||
/// <summary>Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. <para>See <a href="https://corefork.telegram.org/method/messages.getSearchResultsPositions"/></para></summary>
|
||||
/// <param name="peer">Peer where to search</param>
|
||||
/// <param name="saved_peer_id">Search within the <a href="https://corefork.telegram.org/api/saved-messages">saved message dialog »</a> with this ID.</param>
|
||||
/// <param name="filter">Message filter, <see langword="null"/>, <see cref="InputMessagesFilterMyMentions"/> filters are not supported by this method.</param>
|
||||
/// <param name="offset_id"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param>
|
||||
/// <param name="limit">Maximum number of results to return, <a href="https://corefork.telegram.org/api/offsets">see pagination</a></param>
|
||||
|
|
@ -3634,7 +3639,7 @@ namespace TL
|
|||
{
|
||||
});
|
||||
|
||||
/// <summary>Send one or more chosen peers, as requested by a <see cref="KeyboardButtonRequestPeer"/> button. <para>See <a href="https://corefork.telegram.org/method/messages.sendBotRequestedPeer"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Send one or more chosen peers, as requested by a <see cref="KeyboardButtonRequestPeer"/> button. <para>See <a href="https://corefork.telegram.org/method/messages.sendBotRequestedPeer"/></para></summary>
|
||||
/// <param name="peer">The bot that sent the <see cref="KeyboardButtonRequestPeer"/> button.</param>
|
||||
/// <param name="msg_id">ID of the message that contained the reply keyboard with the <see cref="KeyboardButtonRequestPeer"/> button.</param>
|
||||
/// <param name="button_id">The <c>button_id</c> field from the <see cref="KeyboardButtonRequestPeer"/>.</param>
|
||||
|
|
@ -3706,7 +3711,7 @@ namespace TL
|
|||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary>Open a <a href="https://corefork.telegram.org/bots/webapps">bot mini app</a> from a <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named Mini App deep link</a>, sending over user information after user confirmation. <para>See <a href="https://corefork.telegram.org/method/messages.requestAppWebView"/></para></summary>
|
||||
/// <summary>Open a <a href="https://corefork.telegram.org/bots/webapps">bot mini app</a> from a <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named Mini App deep link</a>, sending over user information after user confirmation. <para>See <a href="https://corefork.telegram.org/method/messages.requestAppWebView"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.requestAppWebView#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="write_allowed">Set this flag if the bot is asking permission to send messages to the user as specified in the <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named Mini App deep link</a> docs, and the user agreed.</param>
|
||||
/// <param name="peer">If the client has clicked on the link in a Telegram chat, pass the chat's peer information; otherwise pass the bot's peer information, instead.</param>
|
||||
/// <param name="app">The app obtained by invoking <see cref="Messages_GetBotApp">Messages_GetBotApp</see> as specified in the <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named Mini App deep link</a> docs.</param>
|
||||
|
|
@ -3754,10 +3759,12 @@ namespace TL
|
|||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getSavedDialogs"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Returns the current saved dialog list, see <a href="https://corefork.telegram.org/api/saved-messages">here »</a> for more info. <para>See <a href="https://corefork.telegram.org/method/messages.getSavedDialogs"/></para></summary>
|
||||
/// <param name="exclude_pinned">Exclude pinned dialogs</param>
|
||||
/// <param name="offset_date"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param>
|
||||
/// <param name="offset_id"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</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="offset_id"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a> (<c>top_message</c> ID used for pagination)</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="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, 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)
|
||||
=> client.Invoke(new Messages_GetSavedDialogs
|
||||
|
|
@ -3770,12 +3777,15 @@ namespace TL
|
|||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getSavedHistory"/> [bots: ✓]</para></summary>
|
||||
/// <param name="offset_id"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param>
|
||||
/// <param name="offset_date"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param>
|
||||
/// <param name="add_offset"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</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="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
||||
/// <summary>Returns <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a> forwarded from a specific peer <para>See <a href="https://corefork.telegram.org/method/messages.getSavedHistory"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getSavedHistory#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Target peer</param>
|
||||
/// <param name="offset_id">Only return messages starting from the specified message ID</param>
|
||||
/// <param name="offset_date">Only return messages sent before the specified date</param>
|
||||
/// <param name="add_offset">Number of list elements to be skipped, negative values are also accepted.</param>
|
||||
/// <param name="limit">Number of results to return</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="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)
|
||||
=> client.Invoke(new Messages_GetSavedHistory
|
||||
{
|
||||
|
|
@ -3789,7 +3799,11 @@ namespace TL
|
|||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.deleteSavedHistory"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Deletes messages forwarded from a specific peer to <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a>. <para>See <a href="https://corefork.telegram.org/method/messages.deleteSavedHistory"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.deleteSavedHistory#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Peer, whose messages will be deleted from <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a></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="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)
|
||||
=> client.Invoke(new Messages_DeleteSavedHistory
|
||||
{
|
||||
|
|
@ -3800,13 +3814,15 @@ namespace TL
|
|||
max_date = max_date.GetValueOrDefault(),
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getPinnedSavedDialogs"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Get pinned <a href="https://corefork.telegram.org/api/saved-messages">saved dialogs, see here »</a> for more info. <para>See <a href="https://corefork.telegram.org/method/messages.getPinnedSavedDialogs"/></para></summary>
|
||||
public static Task<Messages_SavedDialogsBase> Messages_GetPinnedSavedDialogs(this Client client)
|
||||
=> client.Invoke(new Messages_GetPinnedSavedDialogs
|
||||
{
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.toggleSavedDialogPin"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Pin or unpin a <a href="https://corefork.telegram.org/api/saved-messages">saved message dialog »</a>. <para>See <a href="https://corefork.telegram.org/method/messages.toggleSavedDialogPin"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.toggleSavedDialogPin#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="pinned">Whether to pin or unpin the dialog</param>
|
||||
/// <param name="peer">The dialog to pin</param>
|
||||
public static Task<bool> Messages_ToggleSavedDialogPin(this Client client, InputDialogPeerBase peer, bool pinned = false)
|
||||
=> client.Invoke(new Messages_ToggleSavedDialogPin
|
||||
{
|
||||
|
|
@ -3814,7 +3830,9 @@ namespace TL
|
|||
peer = peer,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.reorderPinnedSavedDialogs"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Reorder pinned <a href="https://corefork.telegram.org/api/saved-messages">saved message dialogs »</a>. <para>See <a href="https://corefork.telegram.org/method/messages.reorderPinnedSavedDialogs"/></para></summary>
|
||||
/// <param name="force">If set, dialogs pinned server-side but not present in the <c>order</c> field will be unpinned.</param>
|
||||
/// <param name="order">New dialog order</param>
|
||||
public static Task<bool> Messages_ReorderPinnedSavedDialogs(this Client client, InputDialogPeerBase[] order, bool force = false)
|
||||
=> client.Invoke(new Messages_ReorderPinnedSavedDialogs
|
||||
{
|
||||
|
|
@ -3824,9 +3842,11 @@ namespace TL
|
|||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getSavedReactionTags"/></para></summary>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.savedReactionTagsNotModified">messages.savedReactionTagsNotModified</a></returns>
|
||||
public static Task<Messages_SavedReactionTags> Messages_GetSavedReactionTags(this Client client, long hash = default)
|
||||
public static Task<Messages_SavedReactionTags> Messages_GetSavedReactionTags(this Client client, long hash = default, InputPeer peer = null)
|
||||
=> client.Invoke(new Messages_GetSavedReactionTags
|
||||
{
|
||||
flags = (Messages_GetSavedReactionTags.Flags)(peer != null ? 0x1 : 0),
|
||||
peer = peer,
|
||||
hash = hash,
|
||||
});
|
||||
|
||||
|
|
@ -4869,7 +4889,7 @@ namespace TL
|
|||
/// <summary>Update the <a href="https://corefork.telegram.org/api/colors">accent color and background custom emoji »</a> of a channel. <para>See <a href="https://corefork.telegram.org/method/channels.updateColor"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.updateColor#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="for_profile">Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed.</param>
|
||||
/// <param name="channel">Channel whose accent color should be changed.</param>
|
||||
/// <param name="color"><a href="https://corefork.telegram.org/api/colors">ID of the accent color palette »</a> to use (not RGB24, see <a href="https://corefork.telegram.org/api/colors">here »</a> for more info).</param>
|
||||
/// <param name="color"><a href="https://corefork.telegram.org/api/colors">ID of the accent color palette »</a> to use (not RGB24, see <a href="https://corefork.telegram.org/api/colors">here »</a> for more info); if not set, the default palette is used.</param>
|
||||
/// <param name="background_emoji_id">Custom emoji ID used in the accent color pattern.</param>
|
||||
public static Task<UpdatesBase> Channels_UpdateColor(this Client client, InputChannelBase channel, long? background_emoji_id = null, int? color = null, bool for_profile = false)
|
||||
=> client.Invoke(new Channels_UpdateColor
|
||||
|
|
@ -4898,7 +4918,7 @@ namespace TL
|
|||
channel = channel,
|
||||
});
|
||||
|
||||
/// <summary>Set an <a href="https://corefork.telegram.org/api/emoji-status">emoji status</a> for a channel. <para>See <a href="https://corefork.telegram.org/method/channels.updateEmojiStatus"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Set an <a href="https://corefork.telegram.org/api/emoji-status">emoji status</a> for a channel. <para>See <a href="https://corefork.telegram.org/method/channels.updateEmojiStatus"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.updateEmojiStatus#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel">The channel, must have at least <a href="https://corefork.telegram.org/api/config#channel-emoji-status-level-min"><c>channel_emoji_status_level_min</c> boosts</a>.</param>
|
||||
/// <param name="emoji_status"><a href="https://corefork.telegram.org/api/emoji-status">Emoji status</a> to set</param>
|
||||
public static Task<UpdatesBase> Channels_UpdateEmojiStatus(this Client client, InputChannelBase channel, EmojiStatus emoji_status)
|
||||
|
|
@ -5201,7 +5221,7 @@ namespace TL
|
|||
slug = slug,
|
||||
});
|
||||
|
||||
/// <summary>Apply a <a href="https://corefork.telegram.org/api/giveaways">Telegram Premium giftcode »</a> <para>See <a href="https://corefork.telegram.org/method/payments.applyGiftCode"/></para> <para>Possible <see cref="RpcException"/> codes: 406 (<a href="https://corefork.telegram.org/method/payments.applyGiftCode#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Apply a <a href="https://corefork.telegram.org/api/giveaways">Telegram Premium giftcode »</a> <para>See <a href="https://corefork.telegram.org/method/payments.applyGiftCode"/></para> <para>Possible <see cref="RpcException"/> codes: 400,420 (<a href="https://corefork.telegram.org/method/payments.applyGiftCode#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="slug">The code to apply</param>
|
||||
public static Task<UpdatesBase> Payments_ApplyGiftCode(this Client client, string slug)
|
||||
=> client.Invoke(new Payments_ApplyGiftCode
|
||||
|
|
@ -5474,7 +5494,7 @@ namespace TL
|
|||
schedule_date = schedule_date.GetValueOrDefault(),
|
||||
});
|
||||
|
||||
/// <summary>Join a group call <para>See <a href="https://corefork.telegram.org/method/phone.joinGroupCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403,500 (<a href="https://corefork.telegram.org/method/phone.joinGroupCall#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Join a group call <para>See <a href="https://corefork.telegram.org/method/phone.joinGroupCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/phone.joinGroupCall#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="muted">If set, the user will be muted by default upon joining.</param>
|
||||
/// <param name="video_stopped">If set, the user's video will be disabled by default upon joining.</param>
|
||||
/// <param name="call">The group call</param>
|
||||
|
|
@ -6226,7 +6246,7 @@ namespace TL
|
|||
hidden = hidden,
|
||||
});
|
||||
|
||||
/// <summary>Get the <a href="https://corefork.telegram.org/api/reactions">reaction</a> and interaction list of a <a href="https://corefork.telegram.org/api/stories">story</a> posted to a channel, along with the sender of each reaction. <para>See <a href="https://corefork.telegram.org/method/stories.getStoryReactionsList"/> [bots: ✓]</para></summary>
|
||||
/// <summary>Get the <a href="https://corefork.telegram.org/api/reactions">reaction</a> and interaction list of a <a href="https://corefork.telegram.org/api/stories">story</a> posted to a channel, along with the sender of each reaction. <para>See <a href="https://corefork.telegram.org/method/stories.getStoryReactionsList"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.getStoryReactionsList#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="forwards_first">If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date.</param>
|
||||
/// <param name="peer">Channel</param>
|
||||
/// <param name="id"><a href="https://corefork.telegram.org/api/stories">Story</a> ID</param>
|
||||
|
|
@ -6370,13 +6390,19 @@ namespace TL.Methods
|
|||
public CodeSettings settings;
|
||||
}
|
||||
|
||||
[TLDef(0x80EEE427)]
|
||||
[TLDef(0xAAC7B717)]
|
||||
public class Auth_SignUp : IMethod<Auth_AuthorizationBase>
|
||||
{
|
||||
public Flags flags;
|
||||
public string phone_number;
|
||||
public string phone_code_hash;
|
||||
public string first_name;
|
||||
public string last_name;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
no_joined_notifications = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
[TLDef(0x8D52A951)]
|
||||
|
|
@ -9462,10 +9488,17 @@ namespace TL.Methods
|
|||
}
|
||||
}
|
||||
|
||||
[TLDef(0x761DDACF)]
|
||||
[TLDef(0x3637E05B)]
|
||||
public class Messages_GetSavedReactionTags : IMethod<Messages_SavedReactionTags>
|
||||
{
|
||||
public Flags flags;
|
||||
[IfFlag(0)] public InputPeer peer;
|
||||
public long hash;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_peer = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
[TLDef(0x60297DEC)]
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace TL
|
|||
{
|
||||
public static class Layer
|
||||
{
|
||||
public const int Version = 172; // fetched 18/01/2024 14:49:18
|
||||
public const int Version = 173; // fetched 01/02/2024 20:25:01
|
||||
internal const int SecretChats = 144;
|
||||
internal const int MTProto2 = 73;
|
||||
internal const uint VectorCtor = 0x1CB5C415;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<PackageId>WTelegramClient</PackageId>
|
||||
<Version>0.0.0</Version>
|
||||
<Authors>Wizou</Authors>
|
||||
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 172 Release Notes: $(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
|
||||
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 173 Release Notes: $(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
|
||||
<Copyright>Copyright © Olivier Marcoux 2021-2024</Copyright>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<PackageProjectUrl>https://github.com/wiz0u/WTelegramClient</PackageProjectUrl>
|
||||
|
|
|
|||
Loading…
Reference in a new issue