diff --git a/README.md b/README.md
index 089b923..4da3f32 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://buymeacoffee.com/wizou)
diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs
index d7f3678..281d067 100644
--- a/src/TL.Schema.cs
+++ b/src/TL.Schema.cs
@@ -163,7 +163,7 @@ namespace TL
public InputDocument id;
}
- /// Defines media content of a message. See Derived classes: , , , , , , , , , , , , , , , ,
+ /// Defines media content of a message. See Derived classes: , , , , , , , , , , , , , , , , ,
/// a value means inputMediaEmpty
public abstract partial class InputMedia : IObject { }
/// Photo See
@@ -257,7 +257,7 @@ namespace TL
has_ttl_seconds = 0x2,
/// Field has a value
has_thumb = 0x4,
- /// Whether to send the file as a video even if it doesn't have an audio track (i.e. if set, the attribute will not be set even for videos without audio)
+ /// Whether to send the file as a video even if it doesn't have an audio track (i.e. if set, the attribute will not be set even for videos without audio)
nosound_video = 0x8,
/// Force the media file to be uploaded as document
force_file = 0x10,
@@ -2012,7 +2012,7 @@ namespace TL
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
@@ -2337,17 +2337,19 @@ namespace TL
[TLDef(0x8A53B014)]
public sealed partial class MessageMediaToDo : MessageMedia
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public TodoList todo;
[IfFlag(0)] public TodoCompletion[] completions;
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_completions = 0x1,
}
}
- /// Object describing actions connected to a service message. See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
+ /// Object describing actions connected to a service message. See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
/// a value means messageActionEmpty
public abstract partial class MessageAction : IObject { }
/// Group created See
@@ -2968,6 +2970,7 @@ namespace TL
[TLDef(0x2E3AE60E)]
public sealed partial class MessageActionStarGiftUnique : MessageAction
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public StarGiftBase gift;
[IfFlag(3)] public DateTime can_export_at;
@@ -2984,13 +2987,20 @@ namespace TL
upgrade = 0x1,
transferred = 0x2,
saved = 0x4,
+ /// Field has a value
has_can_export_at = 0x8,
+ /// Field has a value
has_transfer_stars = 0x10,
refunded = 0x20,
+ /// Field has a value
has_from_id = 0x40,
+ /// Fields and have a value
has_peer = 0x80,
+ /// Field has a value
has_resale_stars = 0x100,
+ /// Field has a value
has_can_transfer_at = 0x200,
+ /// Field has a value
has_can_resell_at = 0x400,
}
}
@@ -3005,6 +3015,7 @@ namespace TL
[TLDef(0x84B88578)]
public sealed partial class MessageActionPaidMessagesPrice : MessageAction
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public long stars;
@@ -3017,6 +3028,7 @@ namespace TL
[TLDef(0x2FFE2F7A)]
public sealed partial class MessageActionConferenceCall : MessageAction
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public long call_id;
[IfFlag(2)] public int duration;
@@ -3026,7 +3038,9 @@ namespace TL
{
missed = 0x1,
active = 0x2,
+ /// Field has a value
has_duration = 0x4,
+ /// Field has a value
has_other_participants = 0x8,
video = 0x10,
}
@@ -3048,6 +3062,7 @@ namespace TL
[TLDef(0xEE7A1596)]
public sealed partial class MessageActionSuggestedPostApproval : MessageAction
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
[IfFlag(2)] public string reject_comment;
[IfFlag(3)] public DateTime schedule_date;
@@ -3057,8 +3072,11 @@ namespace TL
{
rejected = 0x1,
balance_too_low = 0x2,
+ /// Field has a value
has_reject_comment = 0x4,
+ /// Field has a value
has_schedule_date = 0x8,
+ /// Field has a value
has_price = 0x10,
}
}
@@ -3072,6 +3090,7 @@ namespace TL
[TLDef(0x69F916F8)]
public sealed partial class MessageActionSuggestedPostRefund : MessageAction
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
[Flags] public enum Flags : uint
@@ -3083,6 +3102,7 @@ namespace TL
[TLDef(0xA8A3C699)]
public sealed partial class MessageActionGiftTon : MessageAction
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public string currency;
public long amount;
@@ -3092,6 +3112,7 @@ namespace TL
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_transaction_id = 0x1,
}
}
@@ -3342,7 +3363,7 @@ namespace TL
}
}
- /// Contains info on a confirmation code message sent via SMS, phone call or Telegram. See Derived classes: ,
+ /// Contains info on a confirmation code message sent via SMS, phone call or Telegram. See Derived classes: , ,
public abstract partial class Auth_SentCodeBase : IObject { }
/// Contains info about a sent verification code. See
[TLDef(0x5E002502)]
@@ -4197,7 +4218,7 @@ namespace TL
[TLDef(0x1BB00451)]
public sealed partial class InputMessagesFilterPinned : MessagesFilter { }
- /// Object contains info on events occurred. See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
+ /// Object contains info on events occurred. See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
public abstract partial class Update : IObject
{
public virtual (long mbox_id, int pts, int pts_count) GetMBox() => default;
@@ -5279,6 +5300,7 @@ namespace TL
[TLDef(0x97D64341)]
public sealed partial class UpdateGroupCall : Update
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
/// The channel/supergroup where this group call or livestream takes place
[IfFlag(0)] public long chat_id;
@@ -5986,6 +6008,7 @@ namespace TL
[TLDef(0x9F812B08)]
public sealed partial class UpdateMonoForumNoPaidException : Update
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public long channel_id;
public Peer saved_peer_id;
@@ -7355,7 +7378,7 @@ namespace TL
[IfFlag(2)] public int preload_prefix_size;
/// Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview and thumbnail.
[IfFlag(4)] public double video_start_ts;
- /// Codec used for the video, i.e. “h264”, “h265”, or “av1”
+ /// Codec used for the video, i.e. "h264", "h265", or "av1"
[IfFlag(5)] public string video_codec;
[Flags] public enum Flags : uint
@@ -7541,7 +7564,7 @@ namespace TL
public string display_url;
/// Hash used for caching, for more info click here
public int hash;
- /// Type of the web page. One of the following:
- video
- gif
- photo
- document
- profile
- telegram_background
- telegram_theme
- telegram_story
- telegram_channel
- telegram_channel_request
- telegram_megagroup
- telegram_chat
- telegram_megagroup_request
- telegram_chat_request
- telegram_album
- telegram_message
- telegram_bot
- telegram_voicechat
- telegram_livestream
- telegram_user
- telegram_botapp
- telegram_channel_boost
- telegram_group_boost
- telegram_giftcode
- telegram_stickerset
+ /// Type of the web page. One of the following:
- video
- gif
- photo
- document
- profile
- telegram_background
- telegram_theme
- telegram_story
- telegram_channel
- telegram_channel_request
- telegram_megagroup
- telegram_chat
- telegram_megagroup_request
- telegram_chat_request
- telegram_album
- telegram_message
- telegram_bot
- telegram_voicechat
- telegram_livestream
- telegram_call
- telegram_user
- telegram_botapp
- telegram_channel_boost
- telegram_group_boost
- telegram_giftcode
- telegram_stickerset
[IfFlag(0)] public string type;
/// Short name of the site (e.g., Google Docs, App Store)
[IfFlag(1)] public string site_name;
@@ -7928,7 +7951,7 @@ namespace TL
public DateTime expires;
}
- /// Represents a stickerset See Derived classes: , , , , , , , , ,
+ /// Represents a stickerset See Derived classes: , , , , , , , , , ,
/// a value means inputStickerSetEmpty
public abstract partial class InputStickerSet : IObject { }
/// Stickerset by ID See
@@ -10698,7 +10721,7 @@ namespace TL
public PageCaption caption;
}
- /// Why was the phone call discarded? See Derived classes: , , ,
+ /// Why was the phone call discarded? See Derived classes: , , , ,
public abstract partial class PhoneCallDiscardReason : IObject { }
/// The phone call was missed See
[TLDef(0x85E42301)]
@@ -11897,7 +11920,7 @@ namespace TL
}
}
- /// Channel admin log event See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
+ /// Channel admin log event See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
public abstract partial class ChannelAdminLogEventAction : IObject { }
/// Channel/supergroup title was changed See
[TLDef(0xE6DFB825)]
@@ -14166,7 +14189,7 @@ namespace TL
}
}
- /// Webpage attributes See Derived classes: , ,
+ /// Webpage attributes See Derived classes: , , ,
public abstract partial class WebPageAttribute : IObject { }
/// Page theme See
[TLDef(0x54B56617)]
@@ -14851,7 +14874,7 @@ namespace TL
/// Reply information See Derived classes: ,
public abstract partial class MessageReplyHeaderBase : IObject { }
/// Message replies and thread information See
- [TLDef(0xAFBC09DB)]
+ [TLDef(0x6917560B)]
public sealed partial class MessageReplyHeader : MessageReplyHeaderBase
{
/// Extra bits of information, use flags.HasFlag(...) to test for those
@@ -14872,6 +14895,7 @@ namespace TL
[IfFlag(7)] public MessageEntity[] quote_entities;
/// Offset of the message quote_text within the original message (in UTF-16 code units).
[IfFlag(10)] public int quote_offset;
+ [IfFlag(11)] public int todo_item_id;
[Flags] public enum Flags : uint
{
@@ -14897,6 +14921,8 @@ namespace TL
quote = 0x200,
/// Field has a value
has_quote_offset = 0x400,
+ /// Field has a value
+ has_todo_item_id = 0x800,
}
}
/// Represents a reply to a story See
@@ -15053,7 +15079,7 @@ namespace TL
public override long AccessHash => access_hash;
}
- /// Indicates a group call See Derived classes:
+ /// Indicates a group call See Derived classes: , ,
public abstract partial class InputGroupCallBase : IObject { }
/// Points to a specific group call See
[TLDef(0xD8AA840F)]
@@ -16054,7 +16080,7 @@ namespace TL
Broadcast = 0x7BFBDEFC,
}
- /// An invoice See Derived classes: , , , , ,
+ /// An invoice See Derived classes: , , , , , , , , , ,
public abstract partial class InputInvoice : IObject { }
/// An invoice contained in a message or paid media ». See
[TLDef(0xC5B56859)]
@@ -16120,6 +16146,7 @@ namespace TL
[TLDef(0x4D818D5D)]
public sealed partial class InputInvoiceStarGiftUpgrade : InputInvoice
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public InputSavedStarGift stargift;
@@ -16139,6 +16166,7 @@ namespace TL
[TLDef(0xDABAB2EF)]
public sealed partial class InputInvoicePremiumGiftStars : InputInvoice
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public InputUserBase user_id;
public int months;
@@ -16146,6 +16174,7 @@ namespace TL
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_message = 0x1,
}
}
@@ -16214,7 +16243,7 @@ namespace TL
public Dictionary users;
}
- /// Info about a Telegram Premium purchase See Derived classes: , , , , , ,
+ /// Info about a Telegram Premium purchase See Derived classes: , , , , , , ,
public abstract partial class InputStorePaymentPurpose : IObject { }
/// Info about a Telegram Premium purchase See
[TLDef(0xA6751E66)]
@@ -16373,6 +16402,7 @@ namespace TL
[TLDef(0x9BB2636D)]
public sealed partial class InputStorePaymentAuthCode : InputStorePaymentPurpose
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public string phone_number;
public string phone_code_hash;
@@ -16395,7 +16425,7 @@ namespace TL
public string title;
}
- /// Emoji status See Derived classes: ,
+ /// Emoji status See Derived classes: , ,
/// a value means emojiStatusEmpty
public abstract partial class EmojiStatusBase : IObject
{
@@ -16405,6 +16435,7 @@ namespace TL
[TLDef(0xE7FF068A)]
public sealed partial class EmojiStatus : EmojiStatusBase
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
/// Custom emoji document ID
public long document_id;
@@ -16422,6 +16453,7 @@ namespace TL
[TLDef(0x7184603B)]
public sealed partial class EmojiStatusCollectible : EmojiStatusBase
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public long collectible_id;
public long document_id;
@@ -16436,6 +16468,7 @@ namespace TL
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_until = 0x1,
}
@@ -16445,12 +16478,14 @@ namespace TL
[TLDef(0x07141DBF)]
public sealed partial class InputEmojiStatusCollectible : EmojiStatusBase
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public long collectible_id;
[IfFlag(0)] public DateTime until;
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_until = 0x1,
}
@@ -17641,10 +17676,10 @@ namespace TL
public Dictionary users;
}
- /// Contains info about a message or story to reply to. See Derived classes: ,
+ /// Contains info about a message or story to reply to. See Derived classes: , ,
public abstract partial class InputReplyTo : IObject { }
/// Reply to a message. See
- [TLDef(0xB07038B0)]
+ [TLDef(0x869FBE10)]
public sealed partial class InputReplyToMessage : InputReplyTo
{
/// Extra bits of information, use flags.HasFlag(...) to test for those
@@ -17662,6 +17697,7 @@ namespace TL
/// Offset of the message quote_text within the original message (in UTF-16 code units).
[IfFlag(4)] public int quote_offset;
[IfFlag(5)] public InputPeer monoforum_peer_id;
+ [IfFlag(6)] public int todo_item_id;
[Flags] public enum Flags : uint
{
@@ -17677,6 +17713,8 @@ namespace TL
has_quote_offset = 0x10,
/// Field has a value
has_monoforum_peer_id = 0x20,
+ /// Field has a value
+ has_todo_item_id = 0x40,
}
}
/// Reply to a story. See
@@ -17749,7 +17787,7 @@ namespace TL
}
}
- /// Represents a story media area » See Derived classes: , , , , , , ,
+ /// Represents a story media area » See Derived classes: , , , , , , , ,
public abstract partial class MediaArea : IObject { }
/// Represents a location tag attached to a story, with additional venue information. See
[TLDef(0xBE82DB9C)]
@@ -18505,7 +18543,7 @@ namespace TL
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
}
- /// Represents a saved message dialog ». See Derived classes:
+ /// Represents a saved message dialog ». See Derived classes: ,
public abstract partial class SavedDialogBase : IObject
{
/// The dialog
@@ -18539,6 +18577,7 @@ namespace TL
[TLDef(0x64407EA7)]
public sealed partial class MonoForumDialog : SavedDialogBase
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public Peer peer;
public int top_message;
@@ -18550,6 +18589,7 @@ namespace TL
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_draft = 0x2,
unread_mark = 0x8,
nopaid_messages_exception = 0x10,
@@ -19806,6 +19846,7 @@ namespace TL
[TLDef(0x6C207376)]
public sealed partial class Payments_StarsRevenueStats : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
[IfFlag(0)] public StatsGraphBase top_hours_graph;
/// Star revenue graph (number of earned stars)
@@ -20042,7 +20083,7 @@ namespace TL
}
}
- /// Represents a star gift, see here » for more info. See Derived classes:
+ /// Represents a star gift, see here » for more info. See Derived classes: ,
public abstract partial class StarGiftBase : IObject
{
/// Identifier of the gift
@@ -20109,6 +20150,7 @@ namespace TL
[TLDef(0xF63778AE)]
public sealed partial class StarGiftUnique : StarGiftBase
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public long id;
public string title;
@@ -20126,11 +20168,17 @@ namespace TL
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_owner_id = 0x1,
+ /// Field has a value
has_owner_name = 0x2,
+ /// Field has a value
has_owner_address = 0x4,
+ /// Field has a value
has_gift_address = 0x8,
+ /// Field has a value
has_resell_stars = 0x10,
+ /// Field has a value
has_released_by = 0x20,
}
@@ -20345,7 +20393,7 @@ namespace TL
}
}
- /// Describes a real (i.e. possibly decimal) amount of Telegram Stars. See Derived classes:
+ /// Describes a real (i.e. possibly decimal) amount of Telegram Stars. See Derived classes: ,
public abstract partial class StarsAmountBase : IObject
{
/// The integer amount of Telegram Stars.
@@ -20413,6 +20461,7 @@ namespace TL
[TLDef(0xB0CD6617)]
public sealed partial class BotVerifierSettings : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public long icon;
public string company;
@@ -20420,6 +20469,7 @@ namespace TL
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_custom_description = 0x1,
can_modify_custom_description = 0x2,
}
@@ -20434,7 +20484,7 @@ namespace TL
public string description;
}
- /// See
+ /// See Derived classes: , , ,
public abstract partial class StarGiftAttribute : IObject { }
/// See
[TLDef(0x39D99013)]
@@ -20468,6 +20518,7 @@ namespace TL
[TLDef(0xE0BFF26C)]
public sealed partial class StarGiftAttributeOriginalDetails : StarGiftAttribute
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
[IfFlag(0)] public Peer sender_id;
public Peer recipient_id;
@@ -20476,7 +20527,9 @@ namespace TL
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_sender_id = 0x1,
+ /// Field has a value
has_message = 0x2,
}
}
@@ -20521,6 +20574,7 @@ namespace TL
[TLDef(0xDFDA0499)]
public sealed partial class SavedStarGift : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
[IfFlag(1)] public Peer from_id;
public DateTime date;
@@ -20538,19 +20592,29 @@ namespace TL
[Flags] public enum Flags : uint
{
name_hidden = 0x1,
+ /// Field has a value
has_from_id = 0x2,
+ /// Field has a value
has_message = 0x4,
+ /// Field has a value
has_msg_id = 0x8,
+ /// Field has a value
has_convert_stars = 0x10,
unsaved = 0x20,
+ /// Field has a value
has_upgrade_stars = 0x40,
+ /// Field has a value
has_can_export_at = 0x80,
+ /// Field has a value
has_transfer_stars = 0x100,
refunded = 0x200,
can_upgrade = 0x400,
+ /// Field has a value
has_saved_id = 0x800,
pinned_to_top = 0x1000,
+ /// Field has a value
has_can_transfer_at = 0x2000,
+ /// Field has a value
has_can_resell_at = 0x4000,
}
}
@@ -20559,6 +20623,7 @@ namespace TL
[TLDef(0x95F389B1)]
public sealed partial class Payments_SavedStarGifts : IObject, IPeerResolver
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public int count;
[IfFlag(1)] public bool chat_notifications_enabled;
@@ -20569,14 +20634,16 @@ namespace TL
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_next_offset = 0x1,
+ /// Field has a value
has_chat_notifications_enabled = 0x2,
}
/// returns a or for the given Peer
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
}
- /// See
+ /// See Derived classes: , ,
public abstract partial class InputSavedStarGift : IObject { }
/// See
[TLDef(0x69279795)]
@@ -20605,7 +20672,7 @@ namespace TL
public string url;
}
- /// See
+ /// See Derived classes: ,
/// a value means paidReactionPrivacyDefault
public abstract partial class PaidReactionPrivacy : IObject { }
/// See
@@ -20625,7 +20692,7 @@ namespace TL
public long stars_amount;
}
- /// See
+ /// See Derived classes: ,
/// a value means requirementToContactEmpty
public abstract partial class RequirementToContact : IObject { }
/// See
@@ -20642,6 +20709,7 @@ namespace TL
[TLDef(0xA0624CF7)]
public sealed partial class BusinessBotRights : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
[Flags] public enum Flags : uint
@@ -20667,6 +20735,7 @@ namespace TL
[TLDef(0x71F276C4)]
public sealed partial class DisallowedGiftsSettings : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
[Flags] public enum Flags : uint
@@ -20682,6 +20751,7 @@ namespace TL
[TLDef(0xC69708D3)]
public sealed partial class SponsoredPeer : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public byte[] random_id;
public Peer peer;
@@ -20690,7 +20760,9 @@ namespace TL
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_sponsor_info = 0x1,
+ /// Field has a value
has_additional_info = 0x2,
}
}
@@ -20707,7 +20779,7 @@ namespace TL
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
}
- /// See
+ /// See Derived classes: , ,
public abstract partial class StarGiftAttributeId : IObject { }
/// See
[TLDef(0x48AAAE3C)]
@@ -20740,6 +20812,7 @@ namespace TL
[TLDef(0x947A12DF)]
public sealed partial class Payments_ResaleStarGifts : IObject, IPeerResolver
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public int count;
public StarGiftBase[] gifts;
@@ -20752,8 +20825,11 @@ namespace TL
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_next_offset = 0x1,
+ /// Fields and have a value
has_attributes = 0x2,
+ /// Field has a value
has_counters = 0x4,
}
/// returns a or for the given Peer
@@ -20789,6 +20865,7 @@ namespace TL
[TLDef(0x49B92A26)]
public sealed partial class TodoList : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
public TextWithEntities title;
public TodoItem[] list;
@@ -20813,15 +20890,18 @@ namespace TL
[TLDef(0x0E8E37E5)]
public sealed partial class SuggestedPost : IObject
{
+ /// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
[IfFlag(3)] public StarsAmountBase price;
[IfFlag(0)] public DateTime schedule_date;
[Flags] public enum Flags : uint
{
+ /// Field has a value
has_schedule_date = 0x1,
accepted = 0x2,
rejected = 0x4,
+ /// Field has a value
has_price = 0x8,
}
}
diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs
index 0845d54..6c1c3b5 100644
--- a/src/TL.SchemaFuncs.cs
+++ b/src/TL.SchemaFuncs.cs
@@ -1425,7 +1425,7 @@ namespace TL
settings = settings,
});
- /// See
+ /// See [bots: ✓]
/// a null value means account.emojiStatusesNotModified
public static Task Account_GetCollectibleEmojiStatuses(this Client client, long hash = default)
=> client.Invoke(new Account_GetCollectibleEmojiStatuses
@@ -1433,7 +1433,7 @@ namespace TL
hash = hash,
});
- /// See
+ /// See [bots: ✓]
public static Task Account_GetPaidMessagesRevenue(this Client client, InputUserBase user_id, InputPeer parent_peer = null)
=> client.Invoke(new Account_GetPaidMessagesRevenue
{
@@ -1442,7 +1442,7 @@ namespace TL
user_id = user_id,
});
- /// See
+ /// See [bots: ✓]
public static Task Account_ToggleNoPaidMessagesException(this Client client, InputUserBase user_id, InputPeer parent_peer = null, bool refund_charged = false, bool require_payment = false)
=> client.Invoke(new Account_ToggleNoPaidMessagesException
{
@@ -1477,7 +1477,7 @@ namespace TL
errors = errors,
});
- /// See
+ /// See [bots: ✓]
public static Task Users_GetRequirementsToContact(this Client client, params InputUserBase[] id)
=> client.Invoke(new Users_GetRequirementsToContact
{
@@ -1733,7 +1733,7 @@ namespace TL
{
});
- /// See
+ /// See [bots: ✓]
/// a null value means contacts.sponsoredPeersEmpty
public static Task Contacts_GetSponsoredPeers(this Client client, string q)
=> client.Invoke(new Contacts_GetSponsoredPeers
@@ -4389,12 +4389,12 @@ namespace TL
platform = platform,
});
- /// Sends one or more paid Telegram Star reactions », transferring Telegram Stars » to a channel's balance. See Possible codes: 400 (details)
+ /// Sends one or more paid Telegram Star reactions », transferring Telegram Stars » to a channel's balance. See Possible codes: 400 (details)
/// The channel
/// The message to react to
/// The number of stars to send (each will increment the reaction counter by one).
/// Unique client message ID required to prevent message resending You can use
- /// Each post with star reactions has a leaderboard with the top senders, but users can opt out of appearing there if they prefer more privacy.
If the user explicitly chose to make their paid reaction(s) private, pass to Messages_SendPaidReaction.private.
If the user explicitly chose to make their paid reaction(s) not private, pass to Messages_SendPaidReaction.private.
If the user did not make any explicit choice about the privacy of their paid reaction(s) (i.e. when reacting by clicking on an existing star reaction on a message), do not populate the Messages_SendPaidReaction.private flag.
+ /// Each post with star reactions has a leaderboard with the top senders, but users can opt out of appearing there if they prefer more privacy.
If the user explicitly chose to make their paid reaction(s) private, pass to Messages_SendPaidReaction.private.
If the user explicitly chose to make their paid reaction(s) not private, pass to Messages_SendPaidReaction.private.
If the user did not make any explicit choice about the privacy of their paid reaction(s) (i.e. when reacting by clicking on an existing star reaction on a message), do not populate the Messages_SendPaidReaction.private flag.
public static Task Messages_SendPaidReaction(this Client client, InputPeer peer, int msg_id, int count, long random_id, PaidReactionPrivacy private_ = null)
=> client.Invoke(new Messages_SendPaidReaction
{
@@ -4507,7 +4507,7 @@ namespace TL
hash = hash,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Messages_ReportMessagesDelivery(this Client client, InputPeer peer, int[] id, bool push = false)
=> client.Invoke(new Messages_ReportMessagesDelivery
{
@@ -4516,7 +4516,7 @@ namespace TL
id = id,
});
- /// See
+ /// See [bots: ✓]
public static Task Messages_GetSavedDialogsByID(this Client client, InputPeer[] ids, InputPeer parent_peer = null)
=> client.Invoke(new Messages_GetSavedDialogsByID
{
@@ -4525,7 +4525,7 @@ namespace TL
ids = ids,
});
- /// See
+ /// See [bots: ✓]
public static Task Messages_ReadSavedHistory(this Client client, InputPeer parent_peer, InputPeer peer, int max_id = default)
=> client.Invoke(new Messages_ReadSavedHistory
{
@@ -4534,7 +4534,7 @@ namespace TL
max_id = max_id,
});
- /// See
+ /// See [bots: ✓]
public static Task Messages_ToggleTodoCompleted(this Client client, InputPeer peer, int msg_id, int[] completed, params int[] incompleted)
=> client.Invoke(new Messages_ToggleTodoCompleted
{
@@ -4544,7 +4544,7 @@ namespace TL
incompleted = incompleted,
});
- /// See
+ /// See [bots: ✓]
public static Task Messages_AppendTodoList(this Client client, InputPeer peer, int msg_id, params TodoItem[] list)
=> client.Invoke(new Messages_AppendTodoList
{
@@ -4553,7 +4553,7 @@ namespace TL
list = list,
});
- /// See
+ /// See [bots: ✓]
public static Task Messages_ToggleSuggestedPostApproval(this Client client, InputPeer peer, int msg_id, DateTime? schedule_date = null, string reject_comment = null, bool reject = false)
=> client.Invoke(new Messages_ToggleSuggestedPostApproval
{
@@ -5648,7 +5648,7 @@ namespace TL
limit = limit,
});
- /// See
+ /// See [bots: ✓]
public static Task Channels_UpdatePaidMessagesPrice(this Client client, InputChannelBase channel, long send_paid_messages_stars, bool broadcast_messages_allowed = false)
=> client.Invoke(new Channels_UpdatePaidMessagesPrice
{
@@ -5657,7 +5657,7 @@ namespace TL
send_paid_messages_stars = send_paid_messages_stars,
});
- /// See
+ /// See [bots: ✓]
public static Task Channels_ToggleAutotranslation(this Client client, InputChannelBase channel, bool enabled)
=> client.Invoke(new Channels_ToggleAutotranslation
{
@@ -5665,7 +5665,7 @@ namespace TL
enabled = enabled,
});
- /// See
+ /// See [bots: ✓]
public static Task Channels_GetMessageAuthor(this Client client, InputChannelBase channel, int id)
=> client.Invoke(new Channels_GetMessageAuthor
{
@@ -5967,7 +5967,7 @@ namespace TL
duration_months = duration_months ?? default,
});
- /// See
+ /// See [bots: ✓] Possible codes: 400 (details)
public static Task Bots_SetCustomVerification(this Client client, InputPeer peer, InputUserBase bot = null, string custom_description = null, bool enabled = false)
=> client.Invoke(new Bots_SetCustomVerification
{
@@ -5977,7 +5977,7 @@ namespace TL
custom_description = custom_description,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Bots_GetBotRecommendations(this Client client, InputUserBase bot)
=> client.Invoke(new Bots_GetBotRecommendations
{
@@ -6384,7 +6384,7 @@ namespace TL
gift_id = gift_id,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Payments_UpgradeStarGift(this Client client, InputSavedStarGift stargift, bool keep_original_details = false)
=> client.Invoke(new Payments_UpgradeStarGift
{
@@ -6392,7 +6392,7 @@ namespace TL
stargift = stargift,
});
- /// See
+ /// See Possible codes: 400 (details)
public static Task Payments_TransferStarGift(this Client client, InputSavedStarGift stargift, InputPeer to_id)
=> client.Invoke(new Payments_TransferStarGift
{
@@ -6400,14 +6400,15 @@ namespace TL
to_id = to_id,
});
- /// See
+ /// See [bots: ✓]
public static Task Payments_GetUniqueStarGift(this Client client, string slug)
=> client.Invoke(new Payments_GetUniqueStarGift
{
slug = slug,
});
- /// See
+ /// See [bots: ✓]
+ /// Maximum number of results to return, see pagination
public static Task Payments_GetSavedStarGifts(this Client client, InputPeer peer, string offset, int limit = int.MaxValue, bool exclude_unsaved = false, bool exclude_saved = false, bool exclude_unlimited = false, bool exclude_limited = false, bool exclude_unique = false, bool sort_by_value = false)
=> client.Invoke(new Payments_GetSavedStarGifts
{
@@ -6417,14 +6418,14 @@ namespace TL
limit = limit,
});
- /// See
+ /// See [bots: ✓]
public static Task Payments_GetSavedStarGift(this Client client, params InputSavedStarGift[] stargift)
=> client.Invoke(new Payments_GetSavedStarGift
{
stargift = stargift,
});
- /// See
+ /// See [bots: ✓]
public static Task Payments_GetStarGiftWithdrawalUrl(this Client client, InputSavedStarGift stargift, InputCheckPasswordSRP password)
=> client.Invoke(new Payments_GetStarGiftWithdrawalUrl
{
@@ -6432,7 +6433,7 @@ namespace TL
password = password,
});
- /// See
+ /// See [bots: ✓]
public static Task Payments_ToggleChatStarGiftNotifications(this Client client, InputPeer peer, bool enabled = false)
=> client.Invoke(new Payments_ToggleChatStarGiftNotifications
{
@@ -6440,7 +6441,7 @@ namespace TL
peer = peer,
});
- /// See
+ /// See [bots: ✓]
public static Task Payments_ToggleStarGiftsPinnedToTop(this Client client, InputPeer peer, params InputSavedStarGift[] stargift)
=> client.Invoke(new Payments_ToggleStarGiftsPinnedToTop
{
@@ -6448,14 +6449,15 @@ namespace TL
stargift = stargift,
});
- /// See
+ /// See [bots: ✓]
public static Task Payments_CanPurchaseStore(this Client client, InputStorePaymentPurpose purpose)
=> client.Invoke(new Payments_CanPurchaseStore
{
purpose = purpose,
});
- /// See
+ /// See [bots: ✓]
+ /// Maximum number of results to return, see pagination
public static Task Payments_GetResaleStarGifts(this Client client, long gift_id, string offset, int limit = int.MaxValue, long? attributes_hash = null, StarGiftAttributeId[] attributes = null, bool sort_by_price = false, bool sort_by_num = false)
=> client.Invoke(new Payments_GetResaleStarGifts
{
@@ -6467,7 +6469,7 @@ namespace TL
limit = limit,
});
- /// See
+ /// See [bots: ✓]
public static Task Payments_UpdateStarGiftPrice(this Client client, InputSavedStarGift stargift, long resell_stars)
=> client.Invoke(new Payments_UpdateStarGiftPrice
{
@@ -6962,7 +6964,7 @@ namespace TL
file = file,
});
- /// See
+ /// See [bots: ✓]
public static Task Phone_CreateConferenceCall(this Client client, int random_id, Int256? public_key = null, byte[] block = null, DataJSON params_ = null, bool muted = false, bool video_stopped = false, bool join = false)
=> client.Invoke(new Phone_CreateConferenceCall
{
@@ -6973,7 +6975,7 @@ namespace TL
params_ = params_,
});
- /// See
+ /// See [bots: ✓]
public static Task Phone_DeleteConferenceCallParticipants(this Client client, InputGroupCallBase call, long[] ids, byte[] block, bool only_left = false, bool kick = false)
=> client.Invoke(new Phone_DeleteConferenceCallParticipants
{
@@ -6983,7 +6985,7 @@ namespace TL
block = block,
});
- /// See
+ /// See [bots: ✓]
public static Task Phone_SendConferenceCallBroadcast(this Client client, InputGroupCallBase call, byte[] block)
=> client.Invoke(new Phone_SendConferenceCallBroadcast
{
@@ -6991,7 +6993,7 @@ namespace TL
block = block,
});
- /// See
+ /// See [bots: ✓]
public static Task Phone_InviteConferenceCallParticipant(this Client client, InputGroupCallBase call, InputUserBase user_id, bool video = false)
=> client.Invoke(new Phone_InviteConferenceCallParticipant
{
@@ -7000,14 +7002,15 @@ namespace TL
user_id = user_id,
});
- /// See
+ /// See [bots: ✓]
public static Task Phone_DeclineConferenceCallInvite(this Client client, int msg_id)
=> client.Invoke(new Phone_DeclineConferenceCallInvite
{
msg_id = msg_id,
});
- /// See
+ /// See [bots: ✓]
+ /// Maximum number of results to return, see pagination
public static Task Phone_GetGroupCallChainBlocks(this Client client, InputGroupCallBase call, int sub_chain_id, int offset = default, int limit = int.MaxValue)
=> client.Invoke(new Phone_GetGroupCallChainBlocks
{
diff --git a/src/TL.Table.cs b/src/TL.Table.cs
index bbb604f..cf405eb 100644
--- a/src/TL.Table.cs
+++ b/src/TL.Table.cs
@@ -6,7 +6,7 @@ namespace TL
{
public static partial class Layer
{
- public const int Version = 207; // fetched 08/07/2025 17:40:58
+ public const int Version = 209; // fetched 14/07/2025 20:10:02
internal const int SecretChats = 144;
internal const int MTProto2 = 73;
internal const uint VectorCtor = 0x1CB5C415;
@@ -1039,7 +1039,7 @@ namespace TL
[0x455B853D] = typeof(MessageViews),
[0xB6C4F543] = typeof(Messages_MessageViews),
[0xA6341782] = typeof(Messages_DiscussionMessage),
- [0xAFBC09DB] = typeof(MessageReplyHeader),
+ [0x6917560B] = typeof(MessageReplyHeader),
[0x0E5AF939] = typeof(MessageReplyStoryHeader),
[0x83D60FC2] = typeof(MessageReplies),
[0xE8FD8014] = typeof(PeerBlocked),
@@ -1222,7 +1222,7 @@ namespace TL
[0xBD74CF49] = typeof(StoryViewPublicRepost),
[0x59D78FC5] = typeof(Stories_StoryViewsList),
[0xDE9EED1D] = typeof(Stories_StoryViews),
- [0xB07038B0] = typeof(InputReplyToMessage),
+ [0x869FBE10] = typeof(InputReplyToMessage),
[0x5881323A] = typeof(InputReplyToStory),
[0x69D66C45] = typeof(InputReplyToMonoForum),
[0x3FC9053B] = typeof(ExportedStoryLink),
diff --git a/src/WTelegramClient.csproj b/src/WTelegramClient.csproj
index 3d55ae8..8ab7179 100644
--- a/src/WTelegramClient.csproj
+++ b/src/WTelegramClient.csproj
@@ -13,8 +13,8 @@
WTelegramClient
Wizou
0.0.0
- layer.207
- Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 207
+ layer.209
+ Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 209
Release Notes:
$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))