diff --git a/README.md b/README.md
index 8b3c7e2..a847e48 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-[![API Layer](https://img.shields.io/badge/API_Layer-164-blueviolet)](https://corefork.telegram.org/methods)
+[![API Layer](https://img.shields.io/badge/API_Layer-165-blueviolet)](https://corefork.telegram.org/methods)
[![NuGet version](https://img.shields.io/nuget/v/WTelegramClient?color=00508F)](https://www.nuget.org/packages/WTelegramClient/)
[![NuGet prerelease](https://img.shields.io/nuget/vpre/WTelegramClient?color=C09030&label=dev+nuget)](https://www.nuget.org/packages/WTelegramClient/absoluteLatest)
[![Donate](https://img.shields.io/badge/Help_this_project:-Donate-ff4444)](https://www.buymeacoffee.com/wizou)
diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs
index 2007e87..1a545be 100644
--- a/src/TL.Schema.cs
+++ b/src/TL.Schema.cs
@@ -178,7 +178,7 @@ public partial class InputFileBig : InputFileBase
public override string Name { get => name; set => name = value; }
}
- /// Defines media content of a message. See Derived classes: , , , , , , , , , , , , ,
+ /// Defines media content of a message. See Derived classes: , , , , , , , , , , , , , ,
/// a value means inputMediaEmpty
public abstract class InputMedia : IObject { }
/// Photo See
@@ -1745,7 +1745,7 @@ public partial class MessageService : MessageBase
public override int TtlPeriod => ttl_period;
}
- /// Media See Derived classes: , , , , , , , , , , ,
+ /// Media See Derived classes: , , , , , , , , , , , ,
/// a value means messageMediaEmpty
public abstract partial class MessageMedia : IObject { }
/// Attached photo. See
@@ -1933,6 +1933,7 @@ public partial class MessageMediaDice : MessageMedia
[TLDef(0x68CB6283)]
public class MessageMediaStory : MessageMedia
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public Peer peer;
public int id;
@@ -1940,6 +1941,7 @@ public class MessageMediaStory : MessageMedia
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_story = 0x1,
via_mention = 0x2,
}
@@ -3342,7 +3344,7 @@ public class InputMessagesFilterContacts : MessagesFilter { }
[TLDef(0x1BB00451)]
public class InputMessagesFilterPinned : MessagesFilter { }
- /// Object contains info on events occurred. See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
+ /// Object contains info on events occurred. See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
public abstract class Update : IObject { }
/// New message in a private chat or in a basic group. See
[TLDef(0x1F2B0AFD)]
@@ -3416,14 +3418,19 @@ public class UpdateUserName : UpdateUser
/// Usernames.
public Username[] usernames;
}
- /// See
+ /// Authorized to the current user's account through an unknown device. See
[TLDef(0x8951ABEF)]
public class UpdateNewAuthorization : Update
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
+ /// Hash for pagination, for more info click here
public long hash;
+ /// Authorization date
[IfFlag(0)] public DateTime date;
+ /// Name of device, for example Android
[IfFlag(0)] public string device;
+ /// Location, for example USA, NY (IP=1.2.3.4)
[IfFlag(0)] public string location;
[Flags] public enum Flags : uint
@@ -3599,6 +3606,7 @@ public class UpdateWebPage : Update
[TLDef(0xF8227181)]
public class UpdateReadMessagesContents : Update
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
/// IDs of read messages
public int[] messages;
@@ -4245,6 +4253,7 @@ public class UpdateReadChannelDiscussionOutbox : Update
[TLDef(0xEBE07752)]
public class UpdatePeerBlocked : Update
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
/// The blocked peer
public Peer peer_id;
@@ -5857,7 +5866,7 @@ public enum PrivacyKey : uint
About = 0xA486B761,
}
- /// Privacy rule See Derived classes: , , , , , , ,
+ /// Privacy rule See Derived classes: , , , , , , , ,
public abstract class InputPrivacyRule : IObject { }
/// Allow only contacts See
[TLDef(0x0D09E07B)]
@@ -5903,7 +5912,7 @@ public class InputPrivacyValueDisallowChatParticipants : InputPrivacyRule
[TLDef(0x2F453E49)]
public class InputPrivacyValueAllowCloseFriends : InputPrivacyRule { }
- /// Privacy rule See Derived classes: , , , , , , ,
+ /// Privacy rule See Derived classes: , , , , , , , ,
public abstract class PrivacyRule : IObject { }
/// Allow all contacts See
[TLDef(0xFFFE1BAC)]
@@ -12310,7 +12319,7 @@ public class ThemeSettings : IObject
}
}
- /// Webpage attributes See Derived classes:
+ /// Webpage attributes See Derived classes: ,
public abstract class WebPageAttribute : IObject { }
/// Page theme See
[TLDef(0x54B56617)]
@@ -12335,6 +12344,7 @@ public class WebPageAttributeTheme : WebPageAttribute
[TLDef(0x2E94C3E7)]
public class WebPageAttributeStory : WebPageAttribute
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public Peer peer;
public int id;
@@ -12342,6 +12352,7 @@ public class WebPageAttributeStory : WebPageAttribute
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_story = 0x1,
}
}
@@ -12925,7 +12936,7 @@ public class Messages_DiscussionMessage : IObject, IPeerResolver
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
}
- /// Reply information See Derived classes:
+ /// Reply information See Derived classes: ,
public abstract class MessageReplyHeaderBase : IObject { }
/// Message replies and thread information See
[TLDef(0xA6D57763)]
@@ -13715,9 +13726,9 @@ public class ReactionCount : IObject
public Flags flags;
/// If set, indicates that the current user also sent this reaction.
The integer value indicates when was the reaction added: the bigger the value, the newer the reaction.
[IfFlag(0)] public int chosen_order;
- /// Reaction (a UTF8 emoji)
+ /// The reaction.
public Reaction reaction;
- /// NUmber of users that reacted with this emoji
+ /// Number of users that reacted with this emoji.
public int count;
[Flags] public enum Flags : uint
@@ -14998,7 +15009,7 @@ public class Bots_BotInfo : IObject
public string description;
}
- /// See
+ /// See Derived classes: , ,
public abstract class MessagePeerVoteBase : IObject
{
public virtual Peer Peer { get; }
@@ -15041,6 +15052,7 @@ public class MessagePeerVoteMultiple : MessagePeerVoteBase
[TLDef(0x3DB8EC63)]
public class SponsoredWebPage : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public string url;
public string site_name;
@@ -15048,6 +15060,7 @@ public class SponsoredWebPage : IObject
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_photo = 0x1,
}
}
@@ -15056,6 +15069,7 @@ public class SponsoredWebPage : IObject
[TLDef(0x8D595CD6)]
public class StoryViews : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public int views_count;
[IfFlag(2)] public int forwards_count;
@@ -15065,15 +15079,19 @@ public class StoryViews : IObject
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_recent_viewers = 0x1,
has_viewers = 0x2,
+ /// Field has a value
has_forwards_count = 0x4,
+ /// Field has a value
has_reactions = 0x8,
+ /// Field has a value
has_reactions_count = 0x10,
}
}
- /// See
+ /// See Derived classes: , ,
public abstract class StoryItemBase : IObject
{
public virtual int ID { get; }
@@ -15090,6 +15108,7 @@ public class StoryItemDeleted : StoryItemBase
[TLDef(0xFFADC913)]
public class StoryItemSkipped : StoryItemBase
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public int id;
public DateTime date;
@@ -15106,11 +15125,13 @@ public class StoryItemSkipped : StoryItemBase
[TLDef(0x44C457CE)]
public class StoryItem : StoryItemBase
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public int id;
public DateTime date;
public DateTime expire_date;
[IfFlag(0)] public string caption;
+ /// Message entities for styled text
[IfFlag(1)] public MessageEntity[] entities;
public MessageMedia media;
[IfFlag(14)] public MediaArea[] media_areas;
@@ -15120,9 +15141,13 @@ public class StoryItem : StoryItemBase
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_caption = 0x1,
+ /// Field has a value
has_entities = 0x2,
+ /// Field has a value
has_privacy = 0x4,
+ /// Field has a value
has_views = 0x8,
pinned = 0x20,
public_ = 0x80,
@@ -15132,7 +15157,9 @@ public class StoryItem : StoryItemBase
edited = 0x800,
contacts = 0x1000,
selected_contacts = 0x2000,
+ /// Field has a value
has_media_areas = 0x4000,
+ /// Field has a value
has_sent_reaction = 0x8000,
out_ = 0x10000,
}
@@ -15140,12 +15167,13 @@ public class StoryItem : StoryItemBase
public override int ID => id;
}
- /// See
+ /// See Derived classes: ,
public abstract class Stories_AllStoriesBase : IObject { }
/// See
[TLDef(0x1158FE3E)]
public class Stories_AllStoriesNotModified : Stories_AllStoriesBase
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public string state;
public StoriesStealthMode stealth_mode;
@@ -15158,6 +15186,7 @@ public class Stories_AllStoriesNotModified : Stories_AllStoriesBase
[TLDef(0x6EFC5E81)]
public class Stories_AllStories : Stories_AllStoriesBase, IPeerResolver
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public int count;
public string state;
@@ -15190,6 +15219,7 @@ public class Stories_Stories : IObject, IPeerResolver
[TLDef(0xB0BDEAC5)]
public class StoryView : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public long user_id;
public DateTime date;
@@ -15199,6 +15229,7 @@ public class StoryView : IObject
{
blocked = 0x1,
blocked_my_stories_from = 0x2,
+ /// Field has a value
has_reaction = 0x4,
}
}
@@ -15207,6 +15238,7 @@ public class StoryView : IObject
[TLDef(0x46E9B9EC)]
public class Stories_StoryViewsList : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public int count;
public int reactions_count;
@@ -15216,6 +15248,7 @@ public class Stories_StoryViewsList : IObject
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_next_offset = 0x1,
}
}
@@ -15228,18 +15261,20 @@ public class Stories_StoryViews : IObject
public Dictionary users;
}
- /// See
+ /// See Derived classes: ,
public abstract class InputReplyTo : IObject { }
/// See
[TLDef(0x9C5386E4)]
public class InputReplyToMessage : InputReplyTo
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public int reply_to_msg_id;
[IfFlag(0)] public int top_msg_id;
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_top_msg_id = 0x1,
}
}
@@ -15262,13 +15297,16 @@ public class ExportedStoryLink : IObject
[TLDef(0x712E27FD)]
public class StoriesStealthMode : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
[IfFlag(0)] public DateTime active_until_date;
[IfFlag(1)] public DateTime cooldown_until_date;
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_active_until_date = 0x1,
+ /// Field has a value
has_cooldown_until_date = 0x2,
}
}
@@ -15284,7 +15322,7 @@ public class MediaAreaCoordinates : IObject
public double rotation;
}
- /// See
+ /// See Derived classes: , , ,
public abstract class MediaArea : IObject { }
/// See
[TLDef(0xBE82DB9C)]
@@ -15317,6 +15355,7 @@ public class MediaAreaGeoPoint : MediaArea
[TLDef(0x14455871)]
public class MediaAreaSuggestedReaction : MediaArea
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public MediaAreaCoordinates coordinates;
public Reaction reaction;
@@ -15332,6 +15371,7 @@ public class MediaAreaSuggestedReaction : MediaArea
[TLDef(0x9A35E999)]
public class PeerStories : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public Peer peer;
[IfFlag(0)] public int max_read_id;
@@ -15339,6 +15379,7 @@ public class PeerStories : IObject
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_max_read_id = 0x1,
}
}
@@ -15355,25 +15396,29 @@ public class Stories_PeerStories : IObject, IPeerResolver
}
/// See
- [TLDef(0x66EA1FEF)]
+ [TLDef(0xE5C1AA5C)]
public class Stories_BoostsStatus : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public int level;
public int current_level_boosts;
public int boosts;
[IfFlag(0)] public int next_level_boosts;
[IfFlag(1)] public StatsPercentValue premium_audience;
+ public string boost_url;
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_next_level_boosts = 0x1,
+ /// Field has a value
has_premium_audience = 0x2,
my_boost = 0x4,
}
}
- /// See
+ /// See Derived classes: ,
public abstract class Stories_CanApplyBoostResult : IObject { }
/// See
[TLDef(0xC3173587)]
@@ -15398,6 +15443,7 @@ public class Booster : IObject
[TLDef(0xF3DD3D1D)]
public class Stories_BoostersList : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public int count;
public Booster[] boosters;
@@ -15406,7 +15452,19 @@ public class Stories_BoostersList : IObject
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_next_offset = 0x1,
}
}
+
+ /// See
+ [TLDef(0xFD5E12BD)]
+ public class Messages_WebPage : IObject, IPeerResolver
+ {
+ public WebPageBase webpage;
+ public Dictionary chats;
+ public Dictionary users;
+ /// returns a or for the given Peer
+ public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
+ }
}
diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs
index 9a34753..8074643 100644
--- a/src/TL.SchemaFuncs.cs
+++ b/src/TL.SchemaFuncs.cs
@@ -263,7 +263,7 @@ public static Task Auth_ExportLoginToken(this Client client
except_ids = except_ids,
});
- /// Login using a redirected login token, generated in case of DC mismatch during QR code login. See Possible codes: 400 (details)
+ /// Login using a redirected login token, generated in case of DC mismatch during QR code login. See Possible codes: 400,500 (details)
/// Login token
public static Task Auth_ImportLoginToken(this Client client, byte[] token)
=> client.Invoke(new Auth_ImportLoginToken
@@ -1006,7 +1006,7 @@ public static Task Account_SetAuthorizationTTL(this Client client, int aut
authorization_ttl_days = authorization_ttl_days,
});
- /// Change authorization settings See Possible codes: 400 (details)
+ /// Change settings related to the current session. See Possible codes: 400 (details)
/// Session ID from the , fetchable using Account_GetAuthorizations
/// Whether to enable or disable receiving encrypted chats: if the flag is not set, the previous setting is not changed
/// Whether to enable or disable receiving calls: if the flag is not set, the previous setting is not changed
@@ -1050,7 +1050,7 @@ public static Task Account_UploadRingtone(this Client client, Inpu
mime_type = mime_type,
});
- /// Set an emoji status See
+ /// Set an emoji status See Possible codes: 400 (details)
/// Emoji status to set
public static Task Account_UpdateEmojiStatus(this Client client, EmojiStatus emoji_status)
=> client.Invoke(new Account_UpdateEmojiStatus
@@ -1159,7 +1159,7 @@ public static Task Users_GetUsers(this Client client, params InputUs
id = id,
});
- /// Returns extended user info by ID. See [bots: ✓] Possible codes: 400,500 (details)
+ /// Returns extended user info by ID. See [bots: ✓] Possible codes: 400 (details)
/// User ID
public static Task Users_GetFullUser(this Client client, InputUserBase id)
=> client.Invoke(new Users_GetFullUser
@@ -1401,6 +1401,7 @@ public static Task Contacts_EditCloseFriends(this Client client, params lo
});
/// See
+ /// Maximum number of results to return, see pagination
public static Task Contacts_SetBlocked(this Client client, InputPeer[] id, int limit = int.MaxValue, bool my_stories_from = false)
=> client.Invoke(new Contacts_SetBlocked
{
@@ -1801,7 +1802,7 @@ public static Task Messages_ReadEncryptedHistory(this Client client, Input
max_date = max_date,
});
- /// Sends a text message to a secret chat. See Possible codes: 400,403 (details)
+ /// Sends a text message to a secret chat. See Possible codes: 400,403,500 (details)
/// Send encrypted message without a notification
/// Secret chat ID
/// Unique client message ID, necessary to avoid message resending You can use
@@ -1999,7 +2000,7 @@ public static Task Messages_EditChatAdmin(this Client client, long chat_id
is_admin = is_admin,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Turn a basic group into a supergroup See Possible codes: 400,403 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Turn a basic group into a supergroup See Possible codes: 400,403,500 (details)
/// Basic group to migrate
public static Task Messages_MigrateChat(this Client client, long chat_id)
=> client.Invoke(new Messages_MigrateChat
@@ -2146,7 +2147,7 @@ public static Task Messages_GetMessageEditData(this Cl
id = id,
});
- /// Edit message See [bots: ✓] Possible codes: 400,403,406 (details)
+ /// Edit message See [bots: ✓] Possible codes: 400,403,406,500 (details)
/// Disable webpage preview
/// Where was the message sent
/// ID of the message to edit
@@ -2396,7 +2397,7 @@ public static Task Messages_GetCommonChats(this Client client, I
/// Get instant view page See Possible codes: 400 (details)
/// URL of IV page to fetch
/// Hash for pagination, for more info click here
- public static Task Messages_GetWebPage(this Client client, string url, int hash = default)
+ public static Task Messages_GetWebPage(this Client client, string url, int hash = default)
=> client.Invoke(new Messages_GetWebPage
{
url = url,
@@ -3080,7 +3081,7 @@ public static Task Messages_GetAdminsWithInvites
/// Invite link
/// Search for a user in the pending join requests » list: only available when the requested flag is set, cannot be used together with a specific link.
/// Offsets for pagination, for more info click here
- /// User ID for pagination: if set, offset_date must also be set.
+ /// User ID for pagination: if set, offset_date must also be set.
/// Maximum number of results to return, see pagination
public static Task Messages_GetChatInviteImporters(this Client client, InputPeer peer, DateTime offset_date = default, InputUserBase offset_user = null, int limit = int.MaxValue, string link = null, string q = null, bool requested = false)
=> client.Invoke(new Messages_GetChatInviteImporters
@@ -4620,7 +4621,7 @@ public static Task Channels_ReorderPinnedForumTopics(this Client cl
order = order,
});
- /// Enable or disable the native antispam system. See [bots: ✓]
+ /// Enable or disable the native antispam system. See [bots: ✓] Possible codes: 400 (details)
/// Supergroup ID. The specified supergroup must have at least telegram_antispam_group_size_min members to enable antispam functionality, as specified by the client configuration parameters.
/// Enable or disable the native antispam system.
public static Task Channels_ToggleAntiSpam(this Client client, InputChannelBase channel, bool enabled)
@@ -4650,7 +4651,7 @@ public static Task Channels_ToggleParticipantsHidden(this Client cl
enabled = enabled,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Channels_ClickSponsoredMessage(this Client client, InputChannelBase channel, byte[] random_id)
=> client.Invoke(new Channels_ClickSponsoredMessage
{
@@ -4795,21 +4796,21 @@ public static Task Bots_ToggleUsername(this Client client, InputUserBase b
active = active,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Bots_CanSendMessage(this Client client, InputUserBase bot)
=> client.Invoke(new Bots_CanSendMessage
{
bot = bot,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Bots_AllowSendMessage(this Client client, InputUserBase bot)
=> client.Invoke(new Bots_AllowSendMessage
{
bot = bot,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Bots_InvokeWebViewCustomMethod(this Client client, InputUserBase bot, string custom_method, DataJSON params_)
=> client.Invoke(new Bots_InvokeWebViewCustomMethod
{
@@ -5072,7 +5073,7 @@ public static Task Phone_RequestCall(this Client client, InputU
protocol = protocol,
});
- /// Accept incoming call See Possible codes: 400,500 (details)
+ /// Accept incoming call See Possible codes: 400,406,500 (details)
/// The call to accept
/// Parameter for E2E encryption key exchange »
/// Phone call settings
@@ -5172,7 +5173,7 @@ public static Task Phone_CreateGroupCall(this Client client, InputP
schedule_date = schedule_date.GetValueOrDefault(),
});
- /// Join a group call See Possible codes: 400,403 (details)
+ /// Join a group call See Possible codes: 400,403,500 (details)
/// If set, the user will be muted by default upon joining.
/// If set, the user's video will be disabled by default upon joining.
/// The group call
@@ -5633,14 +5634,19 @@ public static Task Chatlists_LeaveChatlist(this Client client, Inpu
peers = peers,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Stories_CanSendStory(this Client client, InputPeer peer)
=> client.Invoke(new Stories_CanSendStory
{
peer = peer,
});
- /// See
+ /// Uploads a Telegram Story. See Possible codes: 400 (details)
+ /// If set, disables forwards and story download functionality.
+ /// The media file.
+ /// Story caption.
+ /// Message entities for styled text
+ /// Unique client message ID required to prevent message resending. You can use
public static Task Stories_SendStory(this Client client, InputPeer peer, InputMedia media, InputPrivacyRule[] privacy_rules, long random_id, string caption = null, MessageEntity[] entities = null, int? period = null, MediaArea[] media_areas = null, bool pinned = false, bool noforwards = false)
=> client.Invoke(new Stories_SendStory
{
@@ -5655,7 +5661,8 @@ public static Task Stories_SendStory(this Client client, InputPeer
period = period.GetValueOrDefault(),
});
- /// See
+ /// See Possible codes: 400 (details)
+ /// Message entities for styled text
public static Task Stories_EditStory(this Client client, InputPeer peer, int id, InputMedia media = null, string caption = null, MessageEntity[] entities = null, InputPrivacyRule[] privacy_rules = null, MediaArea[] media_areas = null)
=> client.Invoke(new Stories_EditStory
{
@@ -5669,7 +5676,9 @@ public static Task Stories_EditStory(this Client client, InputPeer
privacy_rules = privacy_rules,
});
- /// See
+ /// Deletes some posted stories. See Possible codes: 400 (details)
+ /// Channel/user from where to delete stories.
+ /// IDs of stories to delete.
public static Task Stories_DeleteStories(this Client client, InputPeer peer, params int[] id)
=> client.Invoke(new Stories_DeleteStories
{
@@ -5677,7 +5686,7 @@ public static Task Stories_DeleteStories(this Client client, InputPeer pe
id = id,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Stories_TogglePinned(this Client client, InputPeer peer, int[] id, bool pinned)
=> client.Invoke(new Stories_TogglePinned
{
@@ -5694,7 +5703,9 @@ public static Task Stories_GetAllStories(this Client cli
state = state,
});
- /// See
+ /// See Possible codes: 400 (details)
+ /// Offsets for pagination, for more info click here
+ /// Maximum number of results to return, see pagination
public static Task Stories_GetPinnedStories(this Client client, InputPeer peer, int offset_id = default, int limit = int.MaxValue)
=> client.Invoke(new Stories_GetPinnedStories
{
@@ -5703,7 +5714,9 @@ public static Task Stories_GetPinnedStories(this Client client,
limit = limit,
});
- /// See
+ /// See Possible codes: 400 (details)
+ /// Offsets for pagination, for more info click here
+ /// Maximum number of results to return, see pagination
public static Task Stories_GetStoriesArchive(this Client client, InputPeer peer, int offset_id = default, int limit = int.MaxValue)
=> client.Invoke(new Stories_GetStoriesArchive
{
@@ -5712,7 +5725,7 @@ public static Task Stories_GetStoriesArchive(this Client client
limit = limit,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Stories_GetStoriesByID(this Client client, InputPeer peer, params int[] id)
=> client.Invoke(new Stories_GetStoriesByID
{
@@ -5727,7 +5740,8 @@ public static Task Stories_ToggleAllStoriesHidden(this Client client, bool
hidden = hidden,
});
- /// See
+ /// See Possible codes: 400 (details)
+ /// The peer whose stories should be marked as read.
public static Task Stories_ReadStories(this Client client, InputPeer peer, int max_id = default)
=> client.Invoke(new Stories_ReadStories
{
@@ -5735,7 +5749,9 @@ public static Task Stories_ReadStories(this Client client, InputPeer peer
max_id = max_id,
});
- /// See
+ /// Increment the view counter of one or more stories. See Possible codes: 400 (details)
+ /// Peer where the stories were posted.
+ /// IDs of the stories.
public static Task Stories_IncrementStoryViews(this Client client, InputPeer peer, params int[] id)
=> client.Invoke(new Stories_IncrementStoryViews
{
@@ -5743,7 +5759,8 @@ public static Task Stories_IncrementStoryViews(this Client client, InputPe
id = id,
});
- /// See
+ /// See Possible codes: 400 (details)
+ /// Maximum number of results to return, see pagination
public static Task Stories_GetStoryViewsList(this Client client, InputPeer peer, int id, string offset, int limit = int.MaxValue, string q = null, bool just_contacts = false, bool reactions_first = false)
=> client.Invoke(new Stories_GetStoryViewsList
{
@@ -5755,7 +5772,7 @@ public static Task Stories_GetStoryViewsList(this Client
limit = limit,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Stories_GetStoriesViews(this Client client, InputPeer peer, params int[] id)
=> client.Invoke(new Stories_GetStoriesViews
{
@@ -5763,7 +5780,7 @@ public static Task Stories_GetStoriesViews(this Client clien
id = id,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Stories_ExportStoryLink(this Client client, InputPeer peer, int id)
=> client.Invoke(new Stories_ExportStoryLink
{
@@ -5771,7 +5788,11 @@ public static Task Stories_ExportStoryLink(this Client client
id = id,
});
- /// See
+ /// Report a story. See Possible codes: 400 (details)
+ /// The peer that uploaded the story.
+ /// IDs of the stories to report.
+ /// Why are these storeis being reported.
+ /// Comment for report moderation
public static Task Stories_Report(this Client client, InputPeer peer, int[] id, ReportReason reason, string message)
=> client.Invoke(new Stories_Report
{
@@ -5788,7 +5809,7 @@ public static Task Stories_ActivateStealthMode(this Client client,
flags = (Stories_ActivateStealthMode.Flags)((past ? 0x1 : 0) | (future ? 0x2 : 0)),
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Stories_SendReaction(this Client client, InputPeer peer, int story_id, Reaction reaction, bool add_to_recent = false)
=> client.Invoke(new Stories_SendReaction
{
@@ -5798,7 +5819,7 @@ public static Task Stories_SendReaction(this Client client, InputPe
reaction = reaction,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Stories_GetPeerStories(this Client client, InputPeer peer)
=> client.Invoke(new Stories_GetPeerStories
{
@@ -5824,7 +5845,7 @@ public static Task Stories_GetChatsToSend(this Client client)
{
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Stories_TogglePeerStoriesHidden(this Client client, InputPeer peer, bool hidden)
=> client.Invoke(new Stories_TogglePeerStoriesHidden
{
@@ -5832,14 +5853,15 @@ public static Task Stories_TogglePeerStoriesHidden(this Client client, Inp
hidden = hidden,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Stories_GetBoostsStatus(this Client client, InputPeer peer)
=> client.Invoke(new Stories_GetBoostsStatus
{
peer = peer,
});
- /// See
+ /// See Possible codes: 400 (details)
+ /// Maximum number of results to return, see pagination
public static Task Stories_GetBoostersList(this Client client, InputPeer peer, string offset, int limit = int.MaxValue)
=> client.Invoke(new Stories_GetBoostersList
{
@@ -5848,14 +5870,14 @@ public static Task Stories_GetBoostersList(this Client cli
limit = limit,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Stories_CanApplyBoost(this Client client, InputPeer peer)
=> client.Invoke(new Stories_CanApplyBoost
{
peer = peer,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Stories_ApplyBoost(this Client client, InputPeer peer)
=> client.Invoke(new Stories_ApplyBoost
{
@@ -7821,8 +7843,8 @@ public class Messages_GetCommonChats : IMethod
public int limit;
}
- [TLDef(0x32CA8F91)]
- public class Messages_GetWebPage : IMethod
+ [TLDef(0x8D9692A3)]
+ public class Messages_GetWebPage : IMethod
{
public string url;
public int hash;
diff --git a/src/TL.Table.cs b/src/TL.Table.cs
index 3acd017..2534795 100644
--- a/src/TL.Table.cs
+++ b/src/TL.Table.cs
@@ -6,7 +6,7 @@ namespace TL
{
public static class Layer
{
- public const int Version = 164; // fetched 22/09/2023 19:03:28
+ public const int Version = 165; // fetched 04/10/2023 17:10:52
internal const int SecretChats = 144;
internal const int MTProto2 = 73;
internal const uint VectorCtor = 0x1CB5C415;
@@ -1127,11 +1127,12 @@ public static class Layer
[0x14455871] = typeof(MediaAreaSuggestedReaction),
[0x9A35E999] = typeof(PeerStories),
[0xCAE68768] = typeof(Stories_PeerStories),
- [0x66EA1FEF] = typeof(Stories_BoostsStatus),
+ [0xE5C1AA5C] = typeof(Stories_BoostsStatus),
[0xC3173587] = typeof(Stories_CanApplyBoostOk),
[0x712C4655] = typeof(Stories_CanApplyBoostReplace),
[0x0E9E6380] = typeof(Booster),
[0xF3DD3D1D] = typeof(Stories_BoostersList),
+ [0xFD5E12BD] = typeof(Messages_WebPage),
// from TL.Secret:
[0x6ABD9782] = typeof(Layer143.DecryptedMessageMediaDocument),
[0x91CC4674] = typeof(Layer73.DecryptedMessage),
diff --git a/src/WTelegramClient.csproj b/src/WTelegramClient.csproj
index 21b9a32..d734d90 100644
--- a/src/WTelegramClient.csproj
+++ b/src/WTelegramClient.csproj
@@ -13,7 +13,7 @@
WTelegramClient
0.0.0
Wizou
- Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 164
Release Notes:
$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))
+ Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 165
Release Notes:
$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))
Copyright © Olivier Marcoux 2021-2023
MIT
https://github.com/wiz0u/WTelegramClient