diff --git a/README.md b/README.md
index 0829baa..a715c3e 100644
--- a/README.md
+++ b/README.md
@@ -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)
diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs
index 6afd8fb..130f26f 100644
--- a/src/TL.Schema.cs
+++ b/src/TL.Schema.cs
@@ -739,7 +739,7 @@ namespace TL
public long id;
}
/// Indicates info about a certain user See
- [TLDef(0xEB602F25)]
+ [TLDef(0x215C4438)]
public partial class User : UserBase
{
/// Extra bits of information, use flags.HasFlag(...) to test for those
@@ -775,8 +775,8 @@ namespace TL
/// Additional usernames
[IfFlag(32)] public Username[] usernames;
[IfFlag(37)] public int stories_max_id;
- [IfFlag(39)] public int color;
- [IfFlag(38)] public long background_emoji_id;
+ [IfFlag(40)] public PeerColor color;
+ [IfFlag(41)] public PeerColor profile_color;
[Flags] public enum Flags : uint
{
@@ -850,10 +850,10 @@ namespace TL
stories_unavailable = 0x10,
/// Field has a value
has_stories_max_id = 0x20,
- /// Field has a value
- has_background_emoji_id = 0x40,
/// Field has a value
- has_color = 0x80,
+ has_color = 0x100,
+ /// Field has a value
+ has_profile_color = 0x200,
}
}
@@ -994,7 +994,7 @@ namespace TL
public override string Title => title;
}
/// Channel/supergroup info See
- [TLDef(0x1981EA7E)]
+ [TLDef(0x8E87CCD8)]
public partial class Channel : ChatBase
{
/// Extra bits of information, use flags.HasFlag(...) to test for those
@@ -1026,8 +1026,7 @@ namespace TL
/// Additional usernames
[IfFlag(32)] public Username[] usernames;
[IfFlag(36)] public int stories_max_id;
- [IfFlag(38)] public int color;
- [IfFlag(37)] public long background_emoji_id;
+ [IfFlag(39)] public PeerColor color;
[Flags] public enum Flags : uint
{
@@ -1094,10 +1093,8 @@ namespace TL
stories_unavailable = 0x8,
/// Field has a value
has_stories_max_id = 0x10,
- /// Field has a value
- has_background_emoji_id = 0x20,
/// Field has a value
- has_color = 0x40,
+ has_color = 0x80,
}
/// ID of the channel
@@ -1432,6 +1429,7 @@ namespace TL
/// Field has a value
has_stories = 0x10,
stories_pinned_available = 0x20,
+ view_forum_as_messages = 0x40,
}
/// ID of the channel
@@ -2394,15 +2392,19 @@ namespace TL
public Peer peer;
}
/// The wallpaper » of the current chat was changed. See
- [TLDef(0xBC44A927)]
+ [TLDef(0x5060A3F4)]
public class MessageActionSetChatWallPaper : MessageAction
{
+ public Flags flags;
/// New wallpaper
public WallPaperBase wallpaper;
+
+ [Flags] public enum Flags : uint
+ {
+ same = 0x1,
+ for_both = 0x2,
+ }
}
- /// The user applied a wallpaper » previously sent by the other user in a message. See
- [TLDef(0xC0787D6D)]
- public class MessageActionSetSameChatWallPaper : MessageActionSetChatWallPaper { }
/// See
[TLDef(0xD2CFDB0E)]
public class MessageActionGiftCode : MessageAction
@@ -2422,6 +2424,13 @@ namespace TL
/// See
[TLDef(0x332BA9ED)]
public class MessageActionGiveawayLaunch : MessageAction { }
+ /// See
+ [TLDef(0x2A9FADC5)]
+ public class MessageActionGiveawayResults : MessageAction
+ {
+ public int winners_count;
+ public int unclaimed_count;
+ }
/// Chat info. See Derived classes: ,
public abstract class DialogBase : IObject
@@ -2476,6 +2485,7 @@ namespace TL
has_folder_id = 0x10,
/// Field has a value
has_ttl_period = 0x20,
+ view_forum_as_messages = 0x40,
}
/// The chat
@@ -3107,6 +3117,7 @@ namespace TL
has_stories = 0x2000000,
stories_pinned_available = 0x4000000,
blocked_my_stories_from = 0x8000000,
+ wallpaper_overridden = 0x10000000,
}
}
@@ -4808,6 +4819,26 @@ namespace TL
public Boost boost;
public int qts;
}
+ /// See
+ [TLDef(0x07B68920, inheritBefore = true)]
+ public class UpdateChannelViewForumAsMessages : UpdateChannel
+ {
+ public bool enabled;
+ }
+ /// See
+ [TLDef(0xAE3F101D)]
+ public class UpdatePeerWallpaper : Update
+ {
+ public Flags flags;
+ public Peer peer;
+ [IfFlag(0)] public WallPaperBase wallpaper;
+
+ [Flags] public enum Flags : uint
+ {
+ has_wallpaper = 0x1,
+ wallpaper_overridden = 0x2,
+ }
+ }
/// Updates state. See
[TLDef(0xA56C2A3E)]
@@ -12785,20 +12816,8 @@ namespace TL
}
}
- /// Message interaction counters See
- [TLDef(0xAD4FC9BD)]
- public class MessageInteractionCounters : IObject
- {
- /// Message ID
- public int msg_id;
- /// Views
- public int views;
- /// Number of times this message was forwarded
- public int forwards;
- }
-
/// Channel statistics. See
- [TLDef(0xBDF78394)]
+ [TLDef(0x396CA5FC)]
public class Stats_BroadcastStats : IObject
{
/// Period in consideration
@@ -12809,6 +12828,10 @@ namespace TL
public StatsAbsValueAndPrev views_per_post;
/// total_viewcount/postcount, for posts posted during the period in consideration (views_per_post).
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)
public StatsAbsValueAndPrev shares_per_post;
+ public StatsAbsValueAndPrev reactions_per_post;
+ public StatsAbsValueAndPrev views_per_story;
+ public StatsAbsValueAndPrev shares_per_story;
+ public StatsAbsValueAndPrev reactions_per_story;
/// Percentage of subscribers with enabled notifications
public StatsPercentValue enabled_notifications;
/// Channel growth graph (absolute subscriber count)
@@ -12829,8 +12852,10 @@ namespace TL
public StatsGraphBase new_followers_by_source_graph;
/// Subscriber language graph (pie chart)
public StatsGraphBase languages_graph;
- /// Recent message interactions
- public MessageInteractionCounters[] recent_message_interactions;
+ public StatsGraphBase reactions_by_emotion_graph;
+ public StatsGraphBase story_interactions_graph;
+ public StatsGraphBase story_reactions_by_emotion_graph;
+ public PostInteractionCounters[] recent_posts_interactions;
}
/// Info about pinned MTProxy or Public Service Announcement peers. See Derived classes: ,
@@ -13146,7 +13171,7 @@ namespace TL
/// Reply information See Derived classes: ,
public abstract class MessageReplyHeaderBase : IObject { }
/// Message replies and thread information See
- [TLDef(0x6EEBCABD)]
+ [TLDef(0xAFBC09DB)]
public class MessageReplyHeader : MessageReplyHeaderBase
{
/// Extra bits of information, use flags.HasFlag(...) to test for those
@@ -13161,6 +13186,7 @@ namespace TL
[IfFlag(1)] public int reply_to_top_id;
[IfFlag(6)] public string quote_text;
[IfFlag(7)] public MessageEntity[] quote_entities;
+ [IfFlag(10)] public int quote_offset;
[Flags] public enum Flags : uint
{
@@ -13183,6 +13209,8 @@ namespace TL
/// Field has a value
has_reply_media = 0x100,
quote = 0x200,
+ /// Field has a value
+ has_quote_offset = 0x400,
}
}
/// Represents a reply to a story See
@@ -13238,11 +13266,12 @@ namespace TL
}
/// Message statistics See
- [TLDef(0x8999F295)]
+ [TLDef(0x7FE91C14)]
public class Stats_MessageStats : IObject
{
/// Message view graph
public StatsGraphBase views_graph;
+ public StatsGraphBase reactions_by_emotion_graph;
}
/// A group call See Derived classes: ,
@@ -13735,7 +13764,7 @@ namespace TL
public class Account_ResetPasswordOk : Account_ResetPasswordResult { }
/// A sponsored message. See
- [TLDef(0xDAAFFF6B)]
+ [TLDef(0xED5383F7)]
public class SponsoredMessage : IObject
{
/// Extra bits of information, use flags.HasFlag(...) to test for those
@@ -13754,10 +13783,12 @@ namespace TL
[IfFlag(0)] public string start_param;
/// Sponsored website
[IfFlag(9)] public SponsoredWebPage webpage;
+ [IfFlag(10)] public BotApp app;
/// Sponsored message
public string message;
/// Message entities for styled text
[IfFlag(1)] public MessageEntity[] entities;
+ [IfFlag(11)] public string button_text;
/// If set, contains additional information about the sponsor to be shown along with the message.
[IfFlag(7)] public string sponsor_info;
/// If set, contains additional information about the sponsored message to be shown along with the message.
@@ -13785,6 +13816,10 @@ namespace TL
has_additional_info = 0x100,
/// Field has a value
has_webpage = 0x200,
+ /// Field has a value
+ has_app = 0x400,
+ /// Field has a value
+ has_button_text = 0x800,
}
}
@@ -14346,7 +14381,7 @@ namespace TL
}
/// Transcribed text from a voice message » See
- [TLDef(0x93752C52)]
+ [TLDef(0xCFB9D957)]
public class Messages_TranscribedAudio : IObject
{
/// Extra bits of information, use flags.HasFlag(...) to test for those
@@ -14355,11 +14390,15 @@ namespace TL
public long transcription_id;
/// Transcripted text
public string text;
+ [IfFlag(1)] public int trial_remains_num;
+ [IfFlag(1)] public DateTime trial_remains_until_date;
[Flags] public enum Flags : uint
{
/// Whether the transcription is partial because audio transcription is still in progress, if set the user may receive further updates with the updated transcription.
pending = 0x1,
+ /// Fields and have a value
+ has_trial_remains_num = 0x2,
}
}
@@ -15422,7 +15461,7 @@ namespace TL
public override int ID => id;
}
/// Represents a story. See
- [TLDef(0x44C457CE)]
+ [TLDef(0xAF6365A1)]
public class StoryItem : StoryItemBase
{
/// Extra bits of information, use flags.HasFlag(...) to test for those
@@ -15431,6 +15470,7 @@ namespace TL
public int id;
/// When was the story posted.
public DateTime date;
+ [IfFlag(17)] public StoryFwdHeader fwd_from;
/// When does the story expire.
public DateTime expire_date;
/// Story caption.
@@ -15476,6 +15516,8 @@ namespace TL
has_sent_reaction = 0x8000,
/// indicates whether we sent this story.
out_ = 0x10000,
+ /// Field has a value
+ has_fwd_from = 0x20000,
}
/// ID of the story.
@@ -15601,7 +15643,7 @@ namespace TL
/// Contains info about a message or story to reply to. See Derived classes: ,
public abstract class InputReplyTo : IObject { }
/// Reply to a message. See
- [TLDef(0x073EC805)]
+ [TLDef(0x22C0F6D5)]
public class InputReplyToMessage : InputReplyTo
{
/// Extra bits of information, use flags.HasFlag(...) to test for those
@@ -15613,6 +15655,7 @@ namespace TL
[IfFlag(1)] public InputPeer reply_to_peer_id;
[IfFlag(2)] public string quote_text;
[IfFlag(3)] public MessageEntity[] quote_entities;
+ [IfFlag(4)] public int quote_offset;
[Flags] public enum Flags : uint
{
@@ -15624,6 +15667,8 @@ namespace TL
has_quote_text = 0x4,
/// Field has a value
has_quote_entities = 0x8,
+ /// Field has a value
+ has_quote_offset = 0x10,
}
}
/// Reply to a story. See
@@ -15979,4 +16024,143 @@ namespace TL
has_gift_boosts = 0x10,
}
}
+
+ /// See
+ [TLDef(0xB826E150)]
+ public class StoryFwdHeader : IObject
+ {
+ public Flags flags;
+ [IfFlag(0)] public Peer from;
+ [IfFlag(1)] public string from_name;
+ [IfFlag(2)] public int story_id;
+
+ [Flags] public enum Flags : uint
+ {
+ has_from = 0x1,
+ has_from_name = 0x2,
+ has_story_id = 0x4,
+ modified = 0x8,
+ }
+ }
+
+ /// See
+ public abstract class PostInteractionCounters : IObject
+ {
+ public int views;
+ public int forwards;
+ public int reactions;
+ }
+ /// See
+ [TLDef(0xE7058E7F)]
+ public class PostInteractionCountersMessage : PostInteractionCounters
+ {
+ public int msg_id;
+ }
+ /// See
+ [TLDef(0x8A480E27)]
+ public class PostInteractionCountersStory : PostInteractionCounters
+ {
+ public int story_id;
+ }
+
+ /// See
+ [TLDef(0x50CD067C)]
+ public class Stats_StoryStats : IObject
+ {
+ public StatsGraphBase views_graph;
+ public StatsGraphBase reactions_by_emotion_graph;
+ }
+
+ /// See
+ public abstract class PublicForward : IObject { }
+ /// See
+ [TLDef(0x01F2BF4A)]
+ public class PublicForwardMessage : PublicForward
+ {
+ public MessageBase message;
+ }
+ /// See
+ [TLDef(0xEDF3ADD0)]
+ public class PublicForwardStory : PublicForward
+ {
+ public Peer peer;
+ public StoryItemBase story;
+ }
+
+ /// See
+ [TLDef(0x93037E20)]
+ public class Stats_PublicForwards : IObject, IPeerResolver
+ {
+ public Flags flags;
+ public int count;
+ public PublicForward[] forwards;
+ [IfFlag(0)] public string next_offset;
+ public Dictionary chats;
+ public Dictionary users;
+
+ [Flags] public enum Flags : uint
+ {
+ has_next_offset = 0x1,
+ }
+ /// returns a or for the given Peer
+ public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
+ }
+
+ /// See
+ [TLDef(0xB54B5ACF)]
+ public class PeerColor : IObject
+ {
+ public Flags flags;
+ [IfFlag(0)] public int color;
+ [IfFlag(1)] public long background_emoji_id;
+
+ [Flags] public enum Flags : uint
+ {
+ has_color = 0x1,
+ has_background_emoji_id = 0x2,
+ }
+ }
+
+ /// See
+ public abstract class Help_PeerColorSetBase : IObject { }
+ /// See
+ [TLDef(0x26219A58)]
+ public class Help_PeerColorSet : Help_PeerColorSetBase
+ {
+ public int[] colors;
+ }
+ /// See
+ [TLDef(0x767D61EB)]
+ public class Help_PeerColorProfileSet : Help_PeerColorSetBase
+ {
+ public int[] palette_colors;
+ public int[] bg_colors;
+ public int[] story_colors;
+ }
+
+ /// See
+ [TLDef(0x135BD42F)]
+ public class Help_PeerColorOption : IObject
+ {
+ public Flags flags;
+ public int color_id;
+ [IfFlag(1)] public Help_PeerColorSetBase colors;
+ [IfFlag(2)] public Help_PeerColorSetBase dark_colors;
+
+ [Flags] public enum Flags : uint
+ {
+ hidden = 0x1,
+ has_colors = 0x2,
+ has_dark_colors = 0x4,
+ }
+ }
+
+ /// See
+ /// a value means help.peerColorsNotModified
+ [TLDef(0x00F8ED08)]
+ public class Help_PeerColors : IObject
+ {
+ public int hash;
+ public Help_PeerColorOption[] colors;
+ }
}
diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs
index 9c77ed5..db99dd6 100644
--- a/src/TL.SchemaFuncs.cs
+++ b/src/TL.SchemaFuncs.cs
@@ -1155,11 +1155,11 @@ namespace TL
});
/// See
- public static Task Account_UpdateColor(this Client client, int color, long? background_emoji_id = null)
+ public static Task Account_UpdateColor(this Client client, long? background_emoji_id = null, int? color = null, bool for_profile = false)
=> client.Invoke(new Account_UpdateColor
{
- flags = (Account_UpdateColor.Flags)(background_emoji_id != null ? 0x1 : 0),
- color = color,
+ flags = (Account_UpdateColor.Flags)((background_emoji_id != null ? 0x1 : 0) | (color != null ? 0x4 : 0) | (for_profile ? 0x2 : 0)),
+ color = color.GetValueOrDefault(),
background_emoji_id = background_emoji_id.GetValueOrDefault(),
});
@@ -3685,16 +3685,26 @@ namespace TL
/// The wallpaper », obtained as described in the wallpaper documentation »; must not be provided when installing a wallpaper obtained from a service message (id must be provided, instead).
/// Wallpaper settings, obtained as described in the wallpaper documentation » or from .wallpaper.settings.
/// If the wallpaper was obtained from a service message, must contain the ID of that message.
- public static Task Messages_SetChatWallPaper(this Client client, InputPeer peer, InputWallPaperBase wallpaper = null, int? id = null, WallPaperSettings settings = null)
+ public static Task Messages_SetChatWallPaper(this Client client, InputPeer peer, InputWallPaperBase wallpaper = null, int? id = null, WallPaperSettings settings = null, bool for_both = false, bool revert = false)
=> client.Invoke(new Messages_SetChatWallPaper
{
- flags = (Messages_SetChatWallPaper.Flags)((wallpaper != null ? 0x1 : 0) | (id != null ? 0x2 : 0) | (settings != null ? 0x4 : 0)),
+ flags = (Messages_SetChatWallPaper.Flags)((wallpaper != null ? 0x1 : 0) | (id != null ? 0x2 : 0) | (settings != null ? 0x4 : 0) | (for_both ? 0x8 : 0) | (revert ? 0x10 : 0)),
peer = peer,
wallpaper = wallpaper,
settings = settings,
id = id.GetValueOrDefault(),
});
+ /// See
+ /// a null value means messages.foundStickerSetsNotModified
+ public static Task Messages_SearchEmojiStickerSets(this Client client, string q, long hash = default, bool exclude_featured = false)
+ => client.Invoke(new Messages_SearchEmojiStickerSets
+ {
+ flags = (Messages_SearchEmojiStickerSets.Flags)(exclude_featured ? 0x1 : 0),
+ q = q,
+ hash = hash,
+ });
+
/// Returns a current state of updates. See [bots: ✓]
public static Task Updates_GetState(this Client client)
=> client.Invoke(new Updates_GetState
@@ -4083,6 +4093,22 @@ namespace TL
{
});
+ /// See
+ /// a null value means help.peerColorsNotModified
+ public static Task Help_GetPeerColors(this Client client, int hash = default)
+ => client.Invoke(new Help_GetPeerColors
+ {
+ hash = hash,
+ });
+
+ /// See
+ /// a null value means help.peerColorsNotModified
+ public static Task Help_GetPeerProfileColors(this Client client, int hash = default)
+ => client.Invoke(new Help_GetPeerProfileColors
+ {
+ hash = hash,
+ });
+
/// Mark channel/supergroup history as read See Possible codes: 400,406 (details)
/// Channel/supergroup
/// ID of message up to which messages should be marked as read
@@ -4704,6 +4730,21 @@ namespace TL
background_emoji_id = background_emoji_id.GetValueOrDefault(),
});
+ /// See
+ public static Task Channels_ToggleViewForumAsMessages(this Client client, InputChannelBase channel, bool enabled)
+ => client.Invoke(new Channels_ToggleViewForumAsMessages
+ {
+ channel = channel,
+ enabled = enabled,
+ });
+
+ /// See
+ public static Task Channels_GetChannelRecommendations(this Client client, InputChannelBase channel)
+ => client.Invoke(new Channels_GetChannelRecommendations
+ {
+ channel = channel,
+ });
+
/// Sends a custom request; for bots only See [bots: ✓] Possible codes: 400,403 (details)
/// The method name
/// JSON-serialized method parameters
@@ -5616,6 +5657,25 @@ namespace TL
msg_id = msg_id,
});
+ /// See
+ public static Task Stats_GetStoryStats(this Client client, InputPeer peer, int id, bool dark = false)
+ => client.Invoke(new Stats_GetStoryStats
+ {
+ flags = (Stats_GetStoryStats.Flags)(dark ? 0x1 : 0),
+ peer = peer,
+ id = id,
+ });
+
+ /// See
+ public static Task Stats_GetStoryPublicForwards(this Client client, InputPeer peer, int id, string offset, int limit = int.MaxValue)
+ => client.Invoke(new Stats_GetStoryPublicForwards
+ {
+ peer = peer,
+ id = id,
+ offset = offset,
+ limit = limit,
+ });
+
/// Export a folder », creating a chat folder deep link ». See Possible codes: 400 (details)
/// The folder to export
/// An optional name for the link
@@ -5742,10 +5802,10 @@ namespace TL
/// Privacy rules for the story, indicating who can or can't view the story.
/// Unique client message ID required to prevent message resending. You can use
/// Period after which the story is moved to archive (and to the profile if pinned is set), in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise.
- 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)
+ 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, InputPeer fwd_from_id = null, int? fwd_from_story = null, bool pinned = false, bool noforwards = false, bool fwd_modified = false)
=> client.Invoke(new Stories_SendStory
{
- flags = (Stories_SendStory.Flags)((caption != null ? 0x1 : 0) | (entities != null ? 0x2 : 0) | (period != null ? 0x8 : 0) | (media_areas != null ? 0x20 : 0) | (pinned ? 0x4 : 0) | (noforwards ? 0x10 : 0)),
+ flags = (Stories_SendStory.Flags)((caption != null ? 0x1 : 0) | (entities != null ? 0x2 : 0) | (period != null ? 0x8 : 0) | (media_areas != null ? 0x20 : 0) | (fwd_from_id != null ? 0x40 : 0) | (fwd_from_story != null ? 0x40 : 0) | (pinned ? 0x4 : 0) | (noforwards ? 0x10 : 0) | (fwd_modified ? 0x80 : 0)),
peer = peer,
media = media,
media_areas = media_areas,
@@ -5754,6 +5814,8 @@ namespace TL
privacy_rules = privacy_rules,
random_id = random_id,
period = period.GetValueOrDefault(),
+ fwd_from_id = fwd_from_id,
+ fwd_from_story = fwd_from_story.GetValueOrDefault(),
});
/// Edit an uploaded story See Possible codes: 400 (details)
@@ -6906,16 +6968,18 @@ namespace TL.Methods
public string[] codes;
}
- [TLDef(0xA001CC43)]
+ [TLDef(0x7CEFA15D)]
public class Account_UpdateColor : IMethod
{
public Flags flags;
- public int color;
+ [IfFlag(2)] public int color;
[IfFlag(0)] public long background_emoji_id;
[Flags] public enum Flags : uint
{
has_background_emoji_id = 0x1,
+ for_profile = 0x2,
+ has_color = 0x4,
}
}
@@ -9063,6 +9127,21 @@ namespace TL.Methods
has_wallpaper = 0x1,
has_id = 0x2,
has_settings = 0x4,
+ for_both = 0x8,
+ revert = 0x10,
+ }
+ }
+
+ [TLDef(0x92B4494C)]
+ public class Messages_SearchEmojiStickerSets : IMethod
+ {
+ public Flags flags;
+ public string q;
+ public long hash;
+
+ [Flags] public enum Flags : uint
+ {
+ exclude_featured = 0x1,
}
}
@@ -9359,6 +9438,18 @@ namespace TL.Methods
[TLDef(0xB81B93D4)]
public class Help_GetPremiumPromo : IMethod { }
+ [TLDef(0xDA80F42F)]
+ public class Help_GetPeerColors : IMethod
+ {
+ public int hash;
+ }
+
+ [TLDef(0xABCFA9FD)]
+ public class Help_GetPeerProfileColors : IMethod
+ {
+ public int hash;
+ }
+
[TLDef(0xCC104937)]
public class Channels_ReadHistory : IMethod
{
@@ -9843,6 +9934,19 @@ namespace TL.Methods
}
}
+ [TLDef(0x9738BB15)]
+ public class Channels_ToggleViewForumAsMessages : IMethod
+ {
+ public InputChannelBase channel;
+ public bool enabled;
+ }
+
+ [TLDef(0x83B70D97)]
+ public class Channels_GetChannelRecommendations : IMethod
+ {
+ public InputChannelBase channel;
+ }
+
[TLDef(0xAA2769ED)]
public class Bots_SendCustomRequest : IMethod
{
@@ -10606,6 +10710,28 @@ namespace TL.Methods
}
}
+ [TLDef(0x374FEF40)]
+ public class Stats_GetStoryStats : IMethod
+ {
+ public Flags flags;
+ public InputPeer peer;
+ public int id;
+
+ [Flags] public enum Flags : uint
+ {
+ dark = 0x1,
+ }
+ }
+
+ [TLDef(0xA6437EF6)]
+ public class Stats_GetStoryPublicForwards : IMethod
+ {
+ public InputPeer peer;
+ public int id;
+ public string offset;
+ public int limit;
+ }
+
[TLDef(0x8472478E)]
public class Chatlists_ExportChatlistInvite : IMethod
{
@@ -10694,7 +10820,7 @@ namespace TL.Methods
public InputPeer peer;
}
- [TLDef(0xBCB73644)]
+ [TLDef(0xE4E6694B)]
public class Stories_SendStory : IMethod
{
public Flags flags;
@@ -10706,6 +10832,8 @@ namespace TL.Methods
public InputPrivacyRule[] privacy_rules;
public long random_id;
[IfFlag(3)] public int period;
+ [IfFlag(6)] public InputPeer fwd_from_id;
+ [IfFlag(6)] public int fwd_from_story;
[Flags] public enum Flags : uint
{
@@ -10715,6 +10843,8 @@ namespace TL.Methods
has_period = 0x8,
noforwards = 0x10,
has_media_areas = 0x20,
+ has_fwd_from_id = 0x40,
+ fwd_modified = 0x80,
}
}
diff --git a/src/TL.Table.cs b/src/TL.Table.cs
index 1fc5e29..3142dd1 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 = 166; // fetched 06/11/2023 22:51:44
+ public const int Version = 167; // fetched 30/11/2023 15:07:08
internal const int SecretChats = 144;
internal const int MTProto2 = 73;
internal const uint VectorCtor = 0x1CB5C415;
@@ -121,7 +121,7 @@ namespace TL
[0x36C6019A] = typeof(PeerChat),
[0xA2A5371E] = typeof(PeerChannel),
[0xD3BC4B7A] = typeof(UserEmpty),
- [0xEB602F25] = typeof(User),
+ [0x215C4438] = typeof(User),
[0x4F11BAE1] = null,//UserProfilePhotoEmpty
[0x82D1F706] = typeof(UserProfilePhoto),
[0x09D05049] = null,//UserStatusEmpty
@@ -133,7 +133,7 @@ namespace TL
[0x29562865] = typeof(ChatEmpty),
[0x41CBF256] = typeof(Chat),
[0x6592A1A7] = typeof(ChatForbidden),
- [0x1981EA7E] = typeof(Channel),
+ [0x8E87CCD8] = typeof(Channel),
[0x17D493D5] = typeof(ChannelForbidden),
[0xC9D31138] = typeof(ChatFull),
[0x723027BD] = typeof(ChannelFull),
@@ -199,10 +199,10 @@ namespace TL
[0xC0944820] = typeof(MessageActionTopicEdit),
[0x57DE635E] = typeof(MessageActionSuggestProfilePhoto),
[0xFE77345D] = typeof(MessageActionRequestedPeer),
- [0xBC44A927] = typeof(MessageActionSetChatWallPaper),
- [0xC0787D6D] = typeof(MessageActionSetSameChatWallPaper),
+ [0x5060A3F4] = typeof(MessageActionSetChatWallPaper),
[0xD2CFDB0E] = typeof(MessageActionGiftCode),
[0x332BA9ED] = typeof(MessageActionGiveawayLaunch),
+ [0x2A9FADC5] = typeof(MessageActionGiveawayResults),
[0xD58A08C6] = typeof(Dialog),
[0x71BD134C] = typeof(DialogFolder),
[0x2331B22D] = typeof(PhotoEmpty),
@@ -385,6 +385,8 @@ namespace TL
[0x2C084DC1] = typeof(UpdateStoriesStealthMode),
[0x7D627683] = typeof(UpdateSentStoryReaction),
[0x904DD49C] = typeof(UpdateBotChatBoost),
+ [0x07B68920] = typeof(UpdateChannelViewForumAsMessages),
+ [0xAE3F101D] = typeof(UpdatePeerWallpaper),
[0xA56C2A3E] = typeof(Updates_State),
[0x5D75A138] = typeof(Updates_DifferenceEmpty),
[0x00F49CA0] = typeof(Updates_Difference),
@@ -942,8 +944,7 @@ namespace TL
[0x4A27EB2D] = typeof(StatsGraphAsync),
[0xBEDC9822] = typeof(StatsGraphError),
[0x8EA464B6] = typeof(StatsGraph),
- [0xAD4FC9BD] = typeof(MessageInteractionCounters),
- [0xBDF78394] = typeof(Stats_BroadcastStats),
+ [0x396CA5FC] = typeof(Stats_BroadcastStats),
[0x98F6AC75] = typeof(Help_PromoDataEmpty),
[0x8C39793F] = typeof(Help_PromoData),
[0xDE33B094] = typeof(VideoSize),
@@ -961,11 +962,11 @@ namespace TL
[0x455B853D] = typeof(MessageViews),
[0xB6C4F543] = typeof(Messages_MessageViews),
[0xA6341782] = typeof(Messages_DiscussionMessage),
- [0x6EEBCABD] = typeof(MessageReplyHeader),
+ [0xAFBC09DB] = typeof(MessageReplyHeader),
[0x9C98BFC1] = typeof(MessageReplyStoryHeader),
[0x83D60FC2] = typeof(MessageReplies),
[0xE8FD8014] = typeof(PeerBlocked),
- [0x8999F295] = typeof(Stats_MessageStats),
+ [0x7FE91C14] = typeof(Stats_MessageStats),
[0x7780BCB4] = typeof(GroupCallDiscarded),
[0xD597650C] = typeof(GroupCall),
[0xD8AA840F] = typeof(InputGroupCall),
@@ -998,7 +999,7 @@ namespace TL
[0xE3779861] = typeof(Account_ResetPasswordFailedWait),
[0xE9EFFC7D] = typeof(Account_ResetPasswordRequestedWait),
[0xE926D63E] = typeof(Account_ResetPasswordOk),
- [0xDAAFFF6B] = typeof(SponsoredMessage),
+ [0xED5383F7] = typeof(SponsoredMessage),
[0xC9EE1D87] = typeof(Messages_SponsoredMessages),
[0x1839490F] = null,//Messages_SponsoredMessagesEmpty
[0xC9B0539F] = typeof(SearchResultsCalendarPeriod),
@@ -1043,7 +1044,7 @@ namespace TL
[0xC326CAEF] = typeof(InputInvoiceSlug),
[0x98986C0D] = typeof(InputInvoicePremiumGiftCode),
[0xAED0CBD9] = typeof(Payments_ExportedInvoice),
- [0x93752C52] = typeof(Messages_TranscribedAudio),
+ [0xCFB9D957] = typeof(Messages_TranscribedAudio),
[0x5334759C] = typeof(Help_PremiumPromo),
[0xA6751E66] = typeof(InputStorePaymentPremiumSubscription),
[0x616F7FE8] = typeof(InputStorePaymentGiftPremium),
@@ -1121,14 +1122,14 @@ namespace TL
[0x8D595CD6] = typeof(StoryViews),
[0x51E6EE4F] = typeof(StoryItemDeleted),
[0xFFADC913] = typeof(StoryItemSkipped),
- [0x44C457CE] = typeof(StoryItem),
+ [0xAF6365A1] = typeof(StoryItem),
[0x1158FE3E] = typeof(Stories_AllStoriesNotModified),
[0x6EFC5E81] = typeof(Stories_AllStories),
[0x5DD8C3C8] = typeof(Stories_Stories),
[0xB0BDEAC5] = typeof(StoryView),
[0x46E9B9EC] = typeof(Stories_StoryViewsList),
[0xDE9EED1D] = typeof(Stories_StoryViews),
- [0x073EC805] = typeof(InputReplyToMessage),
+ [0x22C0F6D5] = typeof(InputReplyToMessage),
[0x15B0F283] = typeof(InputReplyToStory),
[0x3FC9053B] = typeof(ExportedStoryLink),
[0x712E27FD] = typeof(StoriesStealthMode),
@@ -1150,6 +1151,19 @@ namespace TL
[0xC448415C] = typeof(MyBoost),
[0x9AE228E2] = typeof(Premium_MyBoosts),
[0x4959427A] = typeof(Premium_BoostsStatus),
+ [0xB826E150] = typeof(StoryFwdHeader),
+ [0xE7058E7F] = typeof(PostInteractionCountersMessage),
+ [0x8A480E27] = typeof(PostInteractionCountersStory),
+ [0x50CD067C] = typeof(Stats_StoryStats),
+ [0x01F2BF4A] = typeof(PublicForwardMessage),
+ [0xEDF3ADD0] = typeof(PublicForwardStory),
+ [0x93037E20] = typeof(Stats_PublicForwards),
+ [0xB54B5ACF] = typeof(PeerColor),
+ [0x26219A58] = typeof(Help_PeerColorSet),
+ [0x767D61EB] = typeof(Help_PeerColorProfileSet),
+ [0x135BD42F] = typeof(Help_PeerColorOption),
+ [0x2BA1F5CE] = null,//Help_PeerColorsNotModified
+ [0x00F8ED08] = typeof(Help_PeerColors),
// from TL.Secret:
[0x6ABD9782] = typeof(Layer143.DecryptedMessageMediaDocument),
[0x91CC4674] = typeof(Layer73.DecryptedMessage),
@@ -1272,6 +1286,7 @@ namespace TL
[typeof(Messages_EmojiGroups)] = 0x6FB4AD87, //messages.emojiGroupsNotModified
[typeof(Help_AppConfig)] = 0x7CDE641D, //help.appConfigNotModified
[typeof(BotApp)] = 0x5DA674B7, //botAppNotModified
+ [typeof(Help_PeerColors)] = 0x2BA1F5CE, //help.peerColorsNotModified
[typeof(DecryptedMessageMedia)] = 0x089F5C4A, //decryptedMessageMediaEmpty
};
}
diff --git a/src/WTelegramClient.csproj b/src/WTelegramClient.csproj
index a7397e8..a0081dd 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: 166
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: 167
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