From f7b3a56ce3d028a5d2e7dfeb04c1105b4ec4e9d4 Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Sat, 20 Jul 2024 02:10:39 +0200 Subject: [PATCH] api doc --- src/TL.Schema.cs | 422 ++++++++++++++++++++++++++++++------------ src/TL.SchemaFuncs.cs | 221 +++++++++++++--------- src/TL.Table.cs | 2 +- 3 files changed, 445 insertions(+), 200 deletions(-) diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs index bb5144e..9eb400e 100644 --- a/src/TL.Schema.cs +++ b/src/TL.Schema.cs @@ -694,7 +694,7 @@ namespace TL } } - /// Chat partner or group. See Derived classes: , , + /// Identifier of a private chat, basic group, group or channel (see here » for more info). See Derived classes: , , public abstract partial class Peer : IObject { } /// Chat partner See [TLDef(0x59511722)] @@ -873,7 +873,9 @@ namespace TL has_color = 0x100, /// Field has a value has_profile_color = 0x200, + /// If set, we can only write to this user if they have already sent some messages to us, if we are subscribed to Telegram Premium, or if they're a mutual contact (.mutual_contact).
All the secondary conditions listed above must be checked separately to verify whether we can still write to the user, even if this flag is set (i.e. a mutual contact will have this flag set even if we can still write to them, and so on...); to avoid doing these extra checks if we haven't yet cached all the required information (for example while displaying the chat list in the sharing UI) the Users_GetIsPremiumRequiredToContact method may be invoked instead, passing the list of users currently visible in the UI, returning a list of booleans that directly specify whether we can or cannot write to each user.
To set this flag for ourselves invoke Account_SetGlobalPrivacySettings, setting the settings.new_noncontact_peers_require_premium flag.
contact_require_premium = 0x400, + /// Whether this bot can be connected to a user as specified here ». bot_business = 0x800, } } @@ -1231,6 +1233,7 @@ namespace TL public virtual long[] RecentRequesters => default; /// Allowed message reactions » public virtual ChatReactions AvailableReactions => default; + /// This flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of appConfig.reactions_uniq_max). public virtual int ReactionsLimit => default; } /// Full info about a basic group. See @@ -1271,6 +1274,7 @@ namespace TL [IfFlag(17)] public long[] recent_requesters; /// Allowed message reactions » [IfFlag(18)] public ChatReactions available_reactions; + /// This flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of appConfig.reactions_uniq_max). [IfFlag(20)] public int reactions_limit; [Flags] public enum Flags : uint @@ -1337,6 +1341,7 @@ namespace TL public override long[] RecentRequesters => recent_requesters; /// Allowed message reactions » public override ChatReactions AvailableReactions => available_reactions; + /// This flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of appConfig.reactions_uniq_max). public override int ReactionsLimit => reactions_limit; } /// Full info about a channel, supergroup or gigagroup. See @@ -1417,6 +1422,7 @@ namespace TL [IfFlag(29)] public Peer default_send_as; /// Allowed message reactions » [IfFlag(30)] public ChatReactions available_reactions; + /// This flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of appConfig.reactions_uniq_max). [IfFlag(45)] public int reactions_limit; /// Channel stories [IfFlag(36)] public PeerStories stories; @@ -1424,6 +1430,7 @@ namespace TL [IfFlag(39)] public WallPaperBase wallpaper; /// The number of boosts the current user has applied to the current supergroup. [IfFlag(40)] public int boosts_applied; + /// The number of boosts this supergroup requires to bypass slowmode and other restrictions, see here » for more info. [IfFlag(41)] public int boosts_unrestrict; /// Custom emoji stickerset associated to the current supergroup, set using Channels_SetEmojiStickers after reaching the appropriate boost level, see here » for more info. [IfFlag(42)] public StickerSet emojiset; @@ -1518,7 +1525,9 @@ namespace TL has_boosts_unrestrict = 0x200, /// Field has a value has_emojiset = 0x400, + /// Whether ads on this channel were disabled as specified here » (this flag is only visible to the owner of the channel). restricted_sponsored = 0x800, + /// If set, this user can view ad revenue statistics » for this channel. can_view_revenue = 0x1000, /// Field has a value has_reactions_limit = 0x2000, @@ -1556,6 +1565,7 @@ namespace TL public override long[] RecentRequesters => recent_requesters; /// Allowed message reactions » public override ChatReactions AvailableReactions => available_reactions; + /// This flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of appConfig.reactions_uniq_max). public override int ReactionsLimit => reactions_limit; } @@ -1751,9 +1761,11 @@ namespace TL [IfFlag(22)] public RestrictionReason[] restriction_reason; /// Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. [IfFlag(25)] public int ttl_period; - /// If set, this message is a quick reply shortcut message » (note that quick reply shortcut messages sent to a private chat will not have this field set). + /// If set, this message is a quick reply shortcut message » (note that quick reply shortcut messages sent to a private chat will not have this field set). [IfFlag(30)] public int quick_reply_shortcut_id; + /// A message effect that should be played as specified here ». [IfFlag(34)] public long effect; + /// Represents a fact-check ». [IfFlag(35)] public FactCheck factcheck; [Flags] public enum Flags : uint @@ -1822,6 +1834,7 @@ namespace TL { /// Field has a value has_via_business_bot_id = 0x1, + /// If set, the message was sent because of a scheduled action by the message sender, for example, as away, or a greeting service message. offline = 0x2, /// Field has a value has_effect = 0x4, @@ -2581,7 +2594,7 @@ namespace TL /// The photo that the user suggested we set as profile picture. public PhotoBase photo; } - /// Contains info about one or more peers that the user shared with the bot after clicking on a button. See + /// Contains info about one or more peers that the we (the user) shared with the bot after clicking on a button (service message sent by the user). See [TLDef(0x31518E9B)] public sealed partial class MessageActionRequestedPeer : MessageAction { @@ -2659,11 +2672,13 @@ namespace TL /// Number of applied boosts. public int boosts; } - /// See + /// Contains info about one or more peers that the a user shared with the me (the bot) after clicking on a button (service message received by the bot). See [TLDef(0x93B31848)] public sealed partial class MessageActionRequestedPeerSentMe : MessageAction { + /// button_id contained in the public int button_id; + /// Info about the shared peers. public RequestedPeer[] peers; } /// See @@ -3180,9 +3195,9 @@ namespace TL has_request_chat_title = 0x200, /// This flag is set if request_chat_title and request_chat_date fields are set and the join request » is related to a channel (otherwise if only the request fields are set, the join request » is related to a chat). request_chat_broadcast = 0x400, - /// This flag is set if both business_bot_id and business_bot_manage_url are set and all connected business bots » were paused in this chat using Account_ToggleConnectedBotPaused. + /// This flag is set if both business_bot_id and business_bot_manage_url are set and all connected business bots » were paused in this chat using Account_ToggleConnectedBotPaused. business_bot_paused = 0x800, - /// This flag is set if both business_bot_id and business_bot_manage_url are set and connected business bots » can reply to messages in this chat, as specified by the settings during initial configuration. + /// This flag is set if both business_bot_id and business_bot_manage_url are set and connected business bots » can reply to messages in this chat, as specified by the settings during initial configuration. business_bot_can_reply = 0x1000, /// Fields and have a value has_business_bot_id = 0x2000, @@ -3331,11 +3346,17 @@ namespace TL [IfFlag(24)] public WallPaperBase wallpaper; /// Active stories » [IfFlag(25)] public PeerStories stories; + /// Telegram Business working hours ». [IfFlag(32)] public BusinessWorkHours business_work_hours; + /// Telegram Business location ». [IfFlag(33)] public BusinessLocation business_location; + /// Telegram Business greeting message ». [IfFlag(34)] public BusinessGreetingMessage business_greeting_message; + /// Telegram Business away message ». [IfFlag(35)] public BusinessAwayMessage business_away_message; + /// Specifies a custom Telegram Business profile introduction ». [IfFlag(36)] public BusinessIntro business_intro; + /// Contains info about the user's birthday ». [IfFlag(37)] public Birthday birthday; /// ID of the associated personal channel », that should be shown in the profile page. [IfFlag(38)] public long personal_channel_id; @@ -3398,7 +3419,7 @@ namespace TL wallpaper_overridden = 0x10000000, /// If set, we can only write to this user if they have already sent some messages to us, if we are subscribed to Telegram Premium, or if they're a mutual contact (.mutual_contact).
All the secondary conditions listed above must be checked separately to verify whether we can still write to the user, even if this flag is set (i.e. a mutual contact will have this flag set even if we can still write to them, and so on...); to avoid doing these extra checks if we haven't yet cached all the required information (for example while displaying the chat list in the sharing UI) the Users_GetIsPremiumRequiredToContact method may be invoked instead, passing the list of users currently visible in the UI, returning a list of booleans that directly specify whether we can or cannot write to each user.
To set this flag for ourselves invoke Account_SetGlobalPrivacySettings, setting the settings.new_noncontact_peers_require_premium flag.
contact_require_premium = 0x20000000, - /// If set, we cannot fetch the exact read date of messages we send to this user using Messages_GetOutboxReadDate.
The exact read date of messages might still be unavailable for other reasons, see here » for more info.
To set this flag for ourselves invoke Account_SetGlobalPrivacySettings, setting the settings.hide_read_marks flag.
+ /// If set, we cannot fetch the exact read date of messages we send to this user using Messages_GetOutboxReadDate.
The exact read date of messages might still be unavailable for other reasons, see Messages_GetOutboxReadDate for more info.
To set this flag for ourselves invoke Account_SetGlobalPrivacySettings, setting the settings.hide_read_marks flag.
read_dates_private = 0x40000000, } @@ -3418,6 +3439,7 @@ namespace TL has_birthday = 0x20, /// Fields and have a value has_personal_channel_id = 0x40, + /// Whether ads were re-enabled for the current account (only accessible to the currently logged-in user), see here » for more info. sponsored_enabled = 0x80, } } @@ -3824,7 +3846,7 @@ namespace TL { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// Authorization date [IfFlag(0)] public DateTime date; @@ -4325,7 +4347,7 @@ namespace TL /// The recent sticker list was updated See [TLDef(0x9A422C20)] public sealed partial class UpdateRecentStickers : Update { } - /// The server-side configuration has changed; the client should re-fetch the config using Help_GetConfig See + /// The server-side configuration has changed; the client should re-fetch the config using Help_GetConfig and Help_GetAppConfig. See [TLDef(0xA229DD06)] public sealed partial class UpdateConfig : Update { } /// Common message box sequence PTS has changed, state has to be refetched using updates.getState See @@ -5272,10 +5294,11 @@ namespace TL /// The list of reaction tag » names assigned by the user has changed and should be refetched using Messages_GetSavedReactionTags. See [TLDef(0x39C67432)] public sealed partial class UpdateSavedReactionTags : Update { } - /// See + /// A new SMS job was received See [TLDef(0xF16269D4)] public sealed partial class UpdateSmsJob : Update { + /// SMS job ID public string job_id; } /// Info about or the order of quick reply shortcuts » was changed. See @@ -5313,24 +5336,30 @@ namespace TL /// IDs of the deleted messages. public int[] messages; } - /// See + /// Connecting or disconnecting a business bot or changing the connection settings will emit an update to the bot, with the new settings and a connection_id that will be used by the bot to handle updates from and send messages as the user. See [TLDef(0x8AE5C97A)] public sealed partial class UpdateBotBusinessConnect : Update { + /// Business connection settings public BotBusinessConnection connection; + /// New qts value, see updates » for more info. public int qts; public override (long, int, int) GetMBox() => (-1, qts, 1); } - /// See + /// A message was received via a connected business chat ». See [TLDef(0x9DDB347C)] public sealed partial class UpdateBotNewBusinessMessage : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Connection ID. public string connection_id; + /// New message. public MessageBase message; + /// The message that message is replying to. [IfFlag(0)] public MessageBase reply_to_message; + /// New qts value, see updates » for more info. public int qts; [Flags] public enum Flags : uint @@ -5341,15 +5370,19 @@ namespace TL public override (long, int, int) GetMBox() => (-1, qts, 1); } - /// See + /// A message was edited in a connected business chat ». See [TLDef(0x07DF587C)] public sealed partial class UpdateBotEditBusinessMessage : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Business connection ID public string connection_id; + /// New message. public MessageBase message; + /// The message that message is replying to. [IfFlag(0)] public MessageBase reply_to_message; + /// New qts value, see updates » for more info. public int qts; [Flags] public enum Flags : uint @@ -5360,36 +5393,45 @@ namespace TL public override (long, int, int) GetMBox() => (-1, qts, 1); } - /// See + /// A message was deleted in a connected business chat ». See [TLDef(0xA02A982E)] public sealed partial class UpdateBotDeleteBusinessMessage : Update { + /// Business connection ID. public string connection_id; + /// Peer where the messages were deleted. public Peer peer; + /// IDs of the messages that were deleted. public int[] messages; + /// New qts value, see updates » for more info. public int qts; public override (long, int, int) GetMBox() => (-1, qts, 1); } - /// See + /// Represents a new reaction to a story. See [TLDef(0x1824E40B)] public sealed partial class UpdateNewStoryReaction : Update { + /// Story ID. public int story_id; public Peer peer; + /// The reaction. public Reaction reaction; } - /// See + /// A new channel ad revenue transaction was made, see here » for more info. See [TLDef(0xDFD961F5)] public sealed partial class UpdateBroadcastRevenueTransactions : Update { + /// Channel public Peer peer; + /// New ad revenue balance. public BroadcastRevenueBalances balances; } - /// See + /// The current account's Telegram Stars balance » has changed. See [TLDef(0x0FB85198)] public sealed partial class UpdateStarsBalance : Update { + /// New balance. public long balance; } /// See @@ -6632,7 +6674,7 @@ namespace TL /// Allow only close friends » See [TLDef(0x2F453E49)] public sealed partial class InputPrivacyValueAllowCloseFriends : InputPrivacyRule { } - /// See + /// Allow only users with a Premium subscription », currently only usable for . See [TLDef(0x77CDC9F1)] public sealed partial class InputPrivacyValueAllowPremium : InputPrivacyRule { } @@ -6681,7 +6723,7 @@ namespace TL /// Allow only close friends » See [TLDef(0xF7E8D89B)] public sealed partial class PrivacyValueAllowCloseFriends : PrivacyRule { } - /// See + /// Allow only users with a Premium subscription », currently only usable for . See [TLDef(0xECE9814B)] public sealed partial class PrivacyValueAllowPremium : PrivacyRule { } @@ -6831,7 +6873,7 @@ namespace TL [TLDef(0x30A6EC7E)] public sealed partial class Messages_Stickers : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// Stickers public DocumentBase[] stickers; @@ -6852,7 +6894,7 @@ namespace TL [TLDef(0xCDBBCEBB)] public sealed partial class Messages_AllStickers : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// All stickersets public StickerSet[] sets; @@ -6934,9 +6976,9 @@ namespace TL public string url; /// Webpage URL to be displayed to the user public string display_url; - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public int hash; - /// Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else + /// Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else, see here » for a full list. [IfFlag(0)] public string type; /// Short name of the site (e.g., Google Docs, App Store) [IfFlag(1)] public string site_name; @@ -7655,27 +7697,35 @@ namespace TL public int button_id; /// Filtering criteria to use for the peer selection list shown to the user.
The list should display all existing peers of the specified type, and should also offer an option for the user to create and immediately use one or more (up to max_quantity) peers of the specified type, if needed.
public RequestPeerType peer_type; - /// Maximum number of peers that can be chosne. + /// Maximum number of peers that can be chosen. public int max_quantity; } - /// See + /// Prompts the user to select and share one or more peers with the bot using Messages_SendBotRequestedPeer. See [TLDef(0xC9662D05)] public sealed partial class InputKeyboardButtonRequestPeer : KeyboardButtonBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Button text public string text; + /// Button ID, to be passed to Messages_SendBotRequestedPeer. public int button_id; + /// Filtering criteria to use for the peer selection list shown to the user.
The list should display all existing peers of the specified type, and should also offer an option for the user to create and immediately use one or more (up to max_quantity) peers of the specified type, if needed.
public RequestPeerType peer_type; + /// Maximum number of peers that can be chosen. public int max_quantity; [Flags] public enum Flags : uint { + /// Set this flag to request the peer's name. name_requested = 0x1, + /// Set this flag to request the peer's @username (if any). username_requested = 0x2, + /// Set this flag to request the peer's photo (if any). photo_requested = 0x4, } + /// Button text public override string Text => text; } @@ -8241,7 +8291,7 @@ namespace TL [TLDef(0x84A02A0D)] public sealed partial class Messages_SavedGifs : IObject { - ///
Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// List of saved gifs public DocumentBase[] gifs; @@ -9082,6 +9132,7 @@ namespace TL /// On Android, the nonce to be used as described in the auth documentation » [IfFlag(0)] public byte[] nonce; [IfFlag(2)] public long play_integrity_project_id; + /// Play Integrity API nonce [IfFlag(2)] public byte[] play_integrity_nonce; /// On iOS, must be compared with the receipt extracted from the received push notification. [IfFlag(1)] public string receipt; @@ -9104,7 +9155,7 @@ namespace TL { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; - /// The secret word in the sent SMS (which may contain multiple words) starts with this letter. + /// If set, the secret word in the sent SMS (which may contain multiple words) starts with this letter. [IfFlag(0)] public string beginning; [Flags] public enum Flags : uint @@ -9113,13 +9164,13 @@ namespace TL has_beginning = 0x1, } } - /// The code was sent via SMS as a secret phrase starting with the word specified in beginning, See + /// The code was sent via SMS as a secret phrase starting with the word specified in beginning See [TLDef(0xB37794AF)] public sealed partial class Auth_SentCodeTypeSmsPhrase : Auth_SentCodeType { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; - /// The secret phrase (and the SMS) starts with this word. + /// If set, the secret phrase (and the SMS) starts with this word. [IfFlag(0)] public string beginning; [Flags] public enum Flags : uint @@ -9372,7 +9423,7 @@ namespace TL { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// Total number of featured stickers public int count; @@ -9393,7 +9444,7 @@ namespace TL [TLDef(0x88D37C56)] public sealed partial class Messages_RecentStickers : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// Emojis associated to stickers public StickerPack[] packs; @@ -10388,18 +10439,25 @@ namespace TL /// Users public override Dictionary Users => users; } - /// See + /// Represents a payment form, for payments to be using Telegram Stars, see here » for more info. See [TLDef(0x7BF6B15C)] public sealed partial class Payments_PaymentFormStars : Payments_PaymentFormBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Form ID. public long form_id; + /// Bot ID. public long bot_id; + /// Form title public string title; + /// Description public string description; + /// Product photo [IfFlag(5)] public WebDocumentBase photo; + /// Invoice public Invoice invoice; + /// Info about users mentioned in the other fields. public Dictionary users; [Flags] public enum Flags : uint @@ -10408,12 +10466,19 @@ namespace TL has_photo = 0x20, } + /// Form ID. public override long FormId => form_id; + /// Bot ID. public override long BotId => bot_id; + /// Form title public override string Title => title; + /// Description public override string Description => description; + /// Product photo public override WebDocumentBase Photo => photo; + /// Invoice public override Invoice Invoice => invoice; + /// Info about users mentioned in the other fields. public override Dictionary Users => users; } @@ -10542,21 +10607,29 @@ namespace TL /// Users public override Dictionary Users => users; } - /// See + /// Receipt for payment made using Telegram Stars. See [TLDef(0xDABBF83A)] public sealed partial class Payments_PaymentReceiptStars : Payments_PaymentReceiptBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Date of generation public DateTime date; + /// Bot ID public long bot_id; + /// Title public string title; + /// Description public string description; + /// Product photo [IfFlag(2)] public WebDocumentBase photo; + /// Invoice public Invoice invoice; public string currency; public long total_amount; + /// Transaction ID public string transaction_id; + /// Info about users mentioned in the other fields. public Dictionary users; [Flags] public enum Flags : uint @@ -10565,14 +10638,21 @@ namespace TL has_photo = 0x4, } + /// Date of generation public override DateTime Date => date; + /// Bot ID public override long BotId => bot_id; + /// Title public override string Title => title; + /// Description public override string Description => description; + /// Product photo public override WebDocumentBase Photo => photo; + /// Invoice public override Invoice Invoice => invoice; public override string Currency => currency; public override long TotalAmount => total_amount; + /// Info about users mentioned in the other fields. public override Dictionary Users => users; } @@ -10865,6 +10945,7 @@ namespace TL public PhoneConnectionBase[] connections; /// When was the call actually started public DateTime start_date; + /// Custom JSON-encoded call parameters to be passed to tgcalls. [IfFlag(7)] public DataJSON custom_parameters; [Flags] public enum Flags : uint @@ -11662,7 +11743,7 @@ namespace TL [TLDef(0x2CB51097)] public sealed partial class Messages_FavedStickers : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// Emojis associated to stickers public StickerPack[] packs; @@ -11846,7 +11927,7 @@ namespace TL [TLDef(0x8AF09DD2)] public sealed partial class Messages_FoundStickerSets : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// Found stickersets public StickerSetCoveredBase[] sets; @@ -12421,7 +12502,7 @@ namespace TL [TLDef(0xA098D6AF)] public sealed partial class Help_PassportConfig : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public int hash; /// Localization public DataJSON countries_langs; @@ -12675,7 +12756,7 @@ namespace TL [TLDef(0xFF16E2CA)] public sealed partial class PollAnswer : IObject { - /// Textual representation of the answer + /// Textual representation of the answer (Premium users only, only custom emoji entities are supported). public TextWithEntities text; /// The param that has to be passed to Messages_SendVote. public byte[] option; @@ -12689,7 +12770,7 @@ namespace TL public long id; /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; - /// The question of the poll + /// The question of the poll (Premium users only, only custom emoji entities are supported). public TextWithEntities question; /// The possible answers, vote using Messages_SendVote. public PollAnswer[] answers; @@ -12910,7 +12991,7 @@ namespace TL [TLDef(0xCDC3858C)] public sealed partial class Account_WallPapers : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// Wallpapers public WallPaperBase[] wallpapers; @@ -12945,6 +13026,7 @@ namespace TL allow_firebase = 0x80, /// Fields and have a value has_token = 0x100, + /// Set this flag if there is a SIM card in the current device, but it is not possible to check whether the specified phone number matches the SIM's phone number. unknown_number = 0x200, } } @@ -13292,7 +13374,7 @@ namespace TL [TLDef(0x9A3D8C6D)] public sealed partial class Account_Themes : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// Themes public Theme[] themes; @@ -13473,17 +13555,20 @@ namespace TL has_story = 0x1, } } - /// See + /// Contains info about a stickerset », for a preview of a stickerset deep link » (the will have a type of telegram_stickerset). See [TLDef(0x50CC03D3)] public sealed partial class WebPageAttributeStickerSet : WebPageAttribute { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// A subset of the stickerset in the stickerset. public DocumentBase[] stickers; [Flags] public enum Flags : uint { + /// Whether this i s a custom emoji stickerset. emojis = 0x1, + /// Whether the color of this TGS custom emoji stickerset should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context. text_color = 0x2, } } @@ -13544,6 +13629,7 @@ namespace TL public virtual string Title => default; /// Emoji to use as icon for the folder. public virtual string Emoticon => default; + /// A color ID for the folder tag associated to this folder, see here » for more info. public virtual int Color => default; /// Pinned chats, folders can have unlimited pinned chats public virtual InputPeer[] PinnedPeers => default; @@ -13562,6 +13648,7 @@ namespace TL public string title; /// Emoji to use as icon for the folder. [IfFlag(25)] public string emoticon; + /// A color ID for the folder tag associated to this folder, see here » for more info. [IfFlag(27)] public int color; /// Pinned chats, folders can have unlimited pinned chats public InputPeer[] pinned_peers; @@ -13600,6 +13687,7 @@ namespace TL public override string Title => title; /// Emoji to use as icon for the folder. public override string Emoticon => emoticon; + /// A color ID for the folder tag associated to this folder, see here » for more info. public override int Color => color; /// Pinned chats, folders can have unlimited pinned chats public override InputPeer[] PinnedPeers => pinned_peers; @@ -13618,6 +13706,7 @@ namespace TL public string title; /// Emoji to use as icon for the folder. [IfFlag(25)] public string emoticon; + /// A color ID for the folder tag associated to this folder, see here » for more info. [IfFlag(27)] public int color; /// Pinned chats, folders can have unlimited pinned chats public InputPeer[] pinned_peers; @@ -13640,6 +13729,7 @@ namespace TL public override string Title => title; /// Emoji to use as icon for the folder. public override string Emoticon => emoticon; + /// A color ID for the folder tag associated to this folder, see here » for more info. public override int Color => color; /// Pinned chats, folders can have unlimited pinned chats public override InputPeer[] PinnedPeers => pinned_peers; @@ -13949,7 +14039,7 @@ namespace TL keep_archived_unmuted = 0x2, /// Whether unmuted chats that are always included or pinned in a folder, will be kept in the Archive chat list when they get a new message. Ignored if keep_archived_unmuted is set. keep_archived_folders = 0x4, - /// If set, (only) users that cannot see our exact last online date due to the current value of the key will receive a 403 USER_PRIVACY_RESTRICTED error when invoking Messages_GetOutboxReadDate to fetch the exact read date of one of their messages.
The .read_dates_private flag will be set for users that have this flag enabled.
+ /// If this flag is set, the key will also apply to the ability to use Messages_GetOutboxReadDate on messages sent to us.
Meaning, users that cannot see our exact last online date due to the current value of the key will receive a 403 USER_PRIVACY_RESTRICTED error when invoking Messages_GetOutboxReadDate to fetch the exact read date of a message they sent to us.
The .read_dates_private flag will be set for users that have this flag enabled.
hide_read_marks = 0x8, /// If set, only users that have a premium account, are in our contact list, or already have a private chat with us can write to us; a 403 PRIVACY_PREMIUM_REQUIRED error will be emitted otherwise.
The .contact_require_premium flag will be set for users that have this flag enabled.
To check whether we can write to a user with this flag enabled, if we haven't yet cached all the required information (for example we don't have the or history of all users while displaying the chat list in the sharing UI) the Users_GetIsPremiumRequiredToContact method may be invoked, passing the list of users currently visible in the UI, returning a list of booleans that directly specify whether we can or cannot write to each user.
Premium users only, non-Premium users will receive a PREMIUM_ACCOUNT_REQUIRED error when trying to enable this flag.
new_noncontact_peers_require_premium = 0x10, @@ -14009,7 +14099,7 @@ namespace TL { /// Name, ISO code, localized name and phone codes/patterns of all available countries public Help_Country[] countries; - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public int hash; } @@ -14689,13 +14779,17 @@ namespace TL public Flags flags; /// Message ID public byte[] random_id; + /// If set, contains a URL to open when the user clicks on the sponsored message. public string url; + /// If set, contains a custom sender name should be displayed for the sponsored message, like for messages sent in groups. public string title; /// Sponsored message public string message; /// Message entities for styled text [IfFlag(1)] public MessageEntity[] entities; + /// If set, contains a custom profile photo bubble that should be displayed for the sponsored message, like for messages sent in groups. [IfFlag(6)] public PhotoBase photo; + /// If set, the sponsored message should use the message accent color » specified in color. [IfFlag(13)] public PeerColor color; /// Text of the sponsored message button. public string button_text; @@ -14716,6 +14810,7 @@ namespace TL has_sponsor_info = 0x80, /// Field has a value has_additional_info = 0x100, + /// Whether this message can be reported as specified here ». can_report = 0x1000, /// Field has a value has_color = 0x2000, @@ -14988,7 +15083,7 @@ namespace TL [TLDef(0x768E3AAD)] public sealed partial class Messages_AvailableReactions : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public int hash; /// Animations and metadata associated with message reactions » public AvailableReaction[] reactions; @@ -15115,7 +15210,7 @@ namespace TL [TLDef(0x3C4301C0)] public sealed partial class AttachMenuBots : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// List of bot mini apps that can be launched from the attachment menu » public AttachMenuBot[] bots; @@ -15190,7 +15285,7 @@ namespace TL [TLDef(0xC1E92CC5)] public sealed partial class Account_SavedRingtones : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// Saved notification sounds public DocumentBase[] ringtones; @@ -15272,10 +15367,11 @@ namespace TL /// Should be populated with one of the giveaway options returned by Payments_GetPremiumGiftCodeOptions, see the giveaways » documentation for more info. public PremiumGiftCodeOption option; } - /// See + /// Used to top up the current account's Telegram Stars balance. See [TLDef(0x1DA33AD8)] public sealed partial class InputInvoiceStars : InputInvoice { + /// Top up option, obtained as described here ». public StarsTopupOption option; } @@ -15415,14 +15511,17 @@ namespace TL has_prize_description = 0x10, } } - /// See + /// Used to top up the Telegram Stars balance using the Play Store/App Store flow (official apps only). See [TLDef(0x4F0EE8DF)] public sealed partial class InputStorePaymentStars : InputStorePaymentPurpose { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Amount of stars to topup public long stars; + /// Three-letter ISO 4217 currency code public string currency; + /// Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). public long amount; [Flags] public enum Flags : uint @@ -15485,7 +15584,7 @@ namespace TL [TLDef(0x90C467D1)] public sealed partial class Account_EmojiStatuses : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// Emoji statuses public EmojiStatus[] statuses; @@ -15538,7 +15637,7 @@ namespace TL [TLDef(0xEAFDF716)] public sealed partial class Messages_Reactions : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// Reactions public Reaction[] reactions; @@ -15914,13 +16013,13 @@ namespace TL [TLDef(0x7A1E11D1)] public sealed partial class EmojiList : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; /// Custom emoji IDs public long[] document_id; } - /// Represents an emoji category. See Derived classes: , , + /// Represents an emoji category. See Derived classes: , , public abstract partial class EmojiGroupBase : IObject { /// Category name, i.e. "Animals", "Flags", "Faces" and so on... @@ -15928,7 +16027,7 @@ namespace TL /// A single custom emoji used as preview for the category. public virtual long IconEmojiId => default; } - /// Represents an emoji category. See + /// Represents an emoji category. See [TLDef(0x7A9ABDA9)] public partial class EmojiGroup : EmojiGroupBase { @@ -15944,30 +16043,34 @@ namespace TL /// A single custom emoji used as preview for the category. public override long IconEmojiId => icon_emoji_id; } - /// See + /// Represents an emoji category, that should be moved to the top of the list when choosing a sticker for a business introduction See [TLDef(0x80D26CC7)] public sealed partial class EmojiGroupGreeting : EmojiGroup { } - /// See + /// An emoji category, used to select all Premium-only stickers (i.e. those with a Premium effect »)/Premium-only custom emojis (i.e. those where the .free flag is not set) See [TLDef(0x093BCF34)] public sealed partial class EmojiGroupPremium : EmojiGroupBase { + /// Category name, i.e. "Animals", "Flags", "Faces" and so on... public string title; + /// A single custom emoji used as preview for the category. public long icon_emoji_id; + /// Category name, i.e. "Animals", "Flags", "Faces" and so on... public override string Title => title; + /// A single custom emoji used as preview for the category. public override long IconEmojiId => icon_emoji_id; } - /// Represents a list of emoji categories. See + /// Represents a list of emoji categories. See /// a value means messages.emojiGroupsNotModified [TLDef(0x881FB94B)] public sealed partial class Messages_EmojiGroups : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public int hash; - /// A list of emoji categories. + /// A list of emoji categories. public EmojiGroupBase[] groups; } @@ -16046,7 +16149,7 @@ namespace TL [TLDef(0xDD18782E)] public sealed partial class Help_AppConfig : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public int hash; /// Client configuration parameters public JsonObject config; @@ -17343,7 +17446,7 @@ namespace TL public Flags flags; /// Palette ID. public int color_id; - /// Light mode palette.
Will be empty for IDs 0 to 6 inclusive, in which case a palette containing a single color from the following colors should be used: red, orange, violet, green, cyan, blue, pink for indexes 0 to 6.
+ /// Light mode palette.
Will be empty for IDs 0 to 6 inclusive, in which case a palette containing a single color from the following colors should be used: red, orange, violet, green, cyan, blue, pink for indexes 0 to 6 (i.e. the same colors used for randomized fallback message accent colors).
[IfFlag(1)] public Help_PeerColorSetBase colors; /// Dark mode palette. Optional, defaults to the palette in colors (or the autogenerated palette for IDs 0 to 6) if absent. [IfFlag(2)] public Help_PeerColorSetBase dark_colors; @@ -17372,7 +17475,7 @@ namespace TL [TLDef(0x00F8ED08)] public sealed partial class Help_PeerColors : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public int hash; /// Usable color palettes. public Help_PeerColorOption[] colors; @@ -17530,18 +17633,19 @@ namespace TL { /// Saved reaction tags. public SavedReactionTag[] tags; - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; } - /// See + /// Exact read date of a private message we sent to another user. See [TLDef(0x3BB842AC)] public sealed partial class OutboxReadDate : IObject { + /// UNIX timestamp with the read date. public DateTime date; } - /// See Derived classes: + /// SMS jobs eligibility See Derived classes: public abstract partial class Smsjobs_EligibilityToJoin : IObject { } /// SMS jobs eligibility See [TLDef(0xDC8B44CF)] @@ -17641,7 +17745,7 @@ namespace TL } } - /// Specifies the chats that can receive Telegram Business away » and greeting » messages. See + /// Specifies the chats that can receive Telegram Business away » and greeting » messages. See [TLDef(0x6F8B32AA)] public sealed partial class InputBusinessRecipients : IObject { @@ -17667,7 +17771,7 @@ namespace TL } } - /// Specifies the chats that can receive Telegram Business away » and greeting » messages. See + /// Specifies the chats that can receive Telegram Business away » and greeting » messages. See [TLDef(0x21108FF7)] public sealed partial class BusinessRecipients : IObject { @@ -17693,7 +17797,7 @@ namespace TL } } - /// See Derived classes: , , + /// Specifies when should the Telegram Business away messages be sent. See Derived classes: , , public abstract partial class BusinessAwayMessageSchedule : IObject { } /// Always send Telegram Business away messages to users writing to us in private. See [TLDef(0xC9B9E2B9)] @@ -17794,7 +17898,7 @@ namespace TL { /// Timezones public Timezone[] timezones; - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public int hash; } @@ -17812,16 +17916,16 @@ namespace TL public int count; } - /// See Derived classes: , + /// Represents a quick reply shortcut ». See Derived classes: , public abstract partial class InputQuickReplyShortcutBase : IObject { } - /// Selects a quick reply shortcut by name. See + /// Selects a quick reply shortcut by name. See [TLDef(0x24596D41)] public sealed partial class InputQuickReplyShortcut : InputQuickReplyShortcutBase { /// Shortcut name. public string shortcut; } - /// Selects a quick reply shortcut by its numeric ID. See + /// Selects a quick reply shortcut by its numeric ID. See [TLDef(0x01190CF1)] public sealed partial class InputQuickReplyShortcutId : InputQuickReplyShortcutBase { @@ -17874,16 +17978,18 @@ namespace TL public Dictionary users; } - /// See + /// Folder and folder tags information See [TLDef(0x2AD93719)] public sealed partial class Messages_DialogFilters : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Folders. public DialogFilterBase[] filters; [Flags] public enum Flags : uint { + /// Whether folder tags are enabled. tags_enabled = 0x1, } } @@ -17932,14 +18038,17 @@ namespace TL } } - /// See + /// Telegram Business introduction ». See [TLDef(0x09C469CD)] public sealed partial class InputBusinessIntro : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Title of the introduction message public string title; + /// Profile introduction public string description; + /// Optional introduction sticker. [IfFlag(0)] public InputDocument sticker; [Flags] public enum Flags : uint @@ -17949,14 +18058,17 @@ namespace TL } } - /// See + /// Telegram Business introduction ». See [TLDef(0x5A0A066D)] public sealed partial class BusinessIntro : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Title of the introduction message public string title; + /// Profile introduction public string description; + /// Optional introduction sticker. [IfFlag(0)] public DocumentBase sticker; [Flags] public enum Flags : uint @@ -17966,38 +18078,48 @@ namespace TL } } - /// See + /// The list of stickersets owned by the current account ». See [TLDef(0xFAFF629D)] public sealed partial class Messages_MyStickers : IObject { + /// Total number of owned stickersets. public int count; + /// Stickersets public StickerSetCoveredBase[] sets; } - /// See Derived classes: , + /// Represents a Fragment collectible ». See Derived classes: , public abstract partial class InputCollectible : IObject { } - /// See + /// Represents a username fragment collectible See [TLDef(0xE39460A9)] public sealed partial class InputCollectibleUsername : InputCollectible { + /// Username public string username; } - /// See + /// Represents a phone number fragment collectible See [TLDef(0xA2E214A4)] public sealed partial class InputCollectiblePhone : InputCollectible { + /// Phone number public string phone; } - /// See + /// Info about a fragment collectible. See [TLDef(0x6EBDFF91)] public sealed partial class Fragment_CollectibleInfo : IObject { + /// Purchase date (unixtime) public DateTime purchase_date; + /// Three-letter ISO 4217 currency code for amount public string currency; + /// Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). public long amount; + /// Cryptocurrency name. public string crypto_currency; + /// Price, in the smallest units of the cryptocurrency. public long crypto_amount; + /// Fragment URL with more info about the collectible public string url; } @@ -18197,18 +18319,23 @@ namespace TL public IPeerInfo UserOrChat => peer?.UserOrChat(users, chats); } - /// See Derived classes: , , + /// Info about a peer, shared by a user with the currently logged in bot using Messages_SendBotRequestedPeer. See Derived classes: , , public abstract partial class RequestedPeer : IObject { } - /// See + /// Info about a user, shared by a user with the currently logged in bot using Messages_SendBotRequestedPeer. See [TLDef(0xD62FF46A)] public sealed partial class RequestedPeerUser : RequestedPeer { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// User ID. public long user_id; + /// First name. [IfFlag(0)] public string first_name; + /// Last name. [IfFlag(0)] public string last_name; + /// Username. [IfFlag(1)] public string username; + /// Profile photo. [IfFlag(2)] public PhotoBase photo; [Flags] public enum Flags : uint @@ -18221,14 +18348,17 @@ namespace TL has_photo = 0x4, } } - /// See + /// Info about a chat, shared by a user with the currently logged in bot using Messages_SendBotRequestedPeer. See [TLDef(0x7307544F)] public sealed partial class RequestedPeerChat : RequestedPeer { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Chat ID. public long chat_id; + /// Chat title. [IfFlag(0)] public string title; + /// Chat photo. [IfFlag(2)] public PhotoBase photo; [Flags] public enum Flags : uint @@ -18239,15 +18369,19 @@ namespace TL has_photo = 0x4, } } - /// See + /// Info about a channel/supergroup, shared by a user with the currently logged in bot using Messages_SendBotRequestedPeer. See [TLDef(0x8BA403E4)] public sealed partial class RequestedPeerChannel : RequestedPeer { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Channel/supergroup ID. public long channel_id; + /// Channel/supergroup title. [IfFlag(0)] public string title; + /// Channel/supergroup username. [IfFlag(1)] public string username; + /// Channel/supergroup photo. [IfFlag(2)] public PhotoBase photo; [Flags] public enum Flags : uint @@ -18261,112 +18395,140 @@ namespace TL } } - /// See + /// A report option for a sponsored message ». See [TLDef(0x430D3150)] public sealed partial class SponsoredMessageReportOption : IObject { + /// Localized description of the option. public string text; + /// Option identifier to pass to Channels_ReportSponsoredMessage. public byte[] option; } - /// See Derived classes: , , + /// Status of the method call used to report a sponsored message ». See Derived classes: , , public abstract partial class Channels_SponsoredMessageReportResult : IObject { } - /// See + /// The user must choose a report option from the localized options available in options, and after selection, Channels_ReportSponsoredMessage must be invoked again, passing the option's option field to the option param of the method. See [TLDef(0x846F9E42)] public sealed partial class Channels_SponsoredMessageReportResultChooseOption : Channels_SponsoredMessageReportResult { + /// Title of the option selection popup. public string title; + /// Localized list of options. public SponsoredMessageReportOption[] options; } - /// See + /// Sponsored messages were hidden for the user in all chats. See [TLDef(0x3E3BCF2F)] public sealed partial class Channels_SponsoredMessageReportResultAdsHidden : Channels_SponsoredMessageReportResult { } - /// See + /// The sponsored message was reported successfully. See [TLDef(0xAD798849)] public sealed partial class Channels_SponsoredMessageReportResultReported : Channels_SponsoredMessageReportResult { } - /// See + /// Channel revenue ad statistics, see here » for more info. See [TLDef(0x5407E297)] public sealed partial class Stats_BroadcastRevenueStats : IObject { + /// Ad impressions graph public StatsGraphBase top_hours_graph; + /// Ad revenue graph (in the smallest unit of the cryptocurrency in which revenue is calculated) public StatsGraphBase revenue_graph; + /// Current balance, current withdrawable balance and overall revenue public BroadcastRevenueBalances balances; + /// Current conversion rate of the cryptocurrency (not in the smallest unit) in which revenue is calculated to USD public double usd_rate; } - /// See + /// Contains the URL to use to withdraw channel ad revenue. See [TLDef(0xEC659737)] public sealed partial class Stats_BroadcastRevenueWithdrawalUrl : IObject { + /// A unique URL to a Fragment page where the user will be able to specify and submit the address of the TON wallet where the funds will be sent. public string url; } - /// See Derived classes: , , + /// A channel ad revenue » transaction. See Derived classes: , , public abstract partial class BroadcastRevenueTransaction : IObject { } - /// See + /// Describes earnings from sponsored messages in a channel in some time frame, see here » for more info. See [TLDef(0x557E2CC4)] public sealed partial class BroadcastRevenueTransactionProceeds : BroadcastRevenueTransaction { + /// Amount in the smallest unit of the cryptocurrency. public long amount; + /// Start unixtime for the timeframe. public DateTime from_date; + /// End unixtime for the timeframe. public DateTime to_date; } - /// See + /// Describes a withdrawal of ad earnings » See [TLDef(0x5A590978)] public sealed partial class BroadcastRevenueTransactionWithdrawal : BroadcastRevenueTransaction { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Amount withdrawn public long amount; + /// Withdrawal date public DateTime date; + /// Payment provider name public string provider; + /// If neither pending nor failed are set, the transaction was completed successfully, and this field will contain the point in time (Unix timestamp) when the withdrawal was completed successfully. [IfFlag(1)] public DateTime transaction_date; + /// If neither pending nor failed are set, the transaction was completed successfully, and this field will contain a URL where the withdrawal transaction can be viewed. [IfFlag(1)] public string transaction_url; [Flags] public enum Flags : uint { + /// Whether the withdrawal is currently pending pending = 0x1, /// Fields and have a value has_transaction_date = 0x2, + /// Whether the withdrawal has failed failed = 0x4, } } - /// See + /// Describes a refund for failed withdrawal of ad earnings » See [TLDef(0x42D30D2E)] public sealed partial class BroadcastRevenueTransactionRefund : BroadcastRevenueTransaction { + /// Amount refunded. public long amount; + /// Date of refund. public DateTime date; + /// Payment provider name. public string provider; } - /// See + /// Channel ad revenue transactions ». See [TLDef(0x87158466)] public sealed partial class Stats_BroadcastRevenueTransactions : IObject { + /// Total number of transactions. public int count; + /// Transactions public BroadcastRevenueTransaction[] transactions; } - /// See + /// Reaction notification settings See public enum ReactionNotificationsFrom : uint { - ///See + ///Receive notifications about reactions made only by our contacts. Contacts = 0xBAC3A61A, - ///See + ///Receive notifications about reactions made by any user. All = 0x4B9E22A0, } - /// See + /// Reaction notification settings, see here » for more info. See [TLDef(0x56E34970)] public sealed partial class ReactionsNotifySettings : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Message reaction notification settings, if not set completely disables notifications/updates about message reactions. [IfFlag(0)] public ReactionNotificationsFrom messages_notify_from; + /// Story reaction notification settings, if not set completely disables notifications/updates about reactions to stories. [IfFlag(1)] public ReactionNotificationsFrom stories_notify_from; + /// Notification sound for reactions » public NotificationSound sound; + /// If false, push notifications » about message/story reactions will only be of type REACT_HIDDEN/REACT_STORY_HIDDEN, without any information about the reacted-to story or the reaction itself. public bool show_previews; [Flags] public enum Flags : uint @@ -18378,25 +18540,33 @@ namespace TL } } - /// See + /// Describes channel ad revenue balances ». See [TLDef(0x8438F1C6)] public sealed partial class BroadcastRevenueBalances : IObject { + /// Amount of not-yet-withdrawn cryptocurrency. public long current_balance; + /// Amount of withdrawable cryptocurrency, out of the currently available balance (available_balance <= current_balance). public long available_balance; + /// Total amount of earned cryptocurrency. public long overall_revenue; } - /// See + /// Represents a message effect ». See [TLDef(0x93C3E27E)] public sealed partial class AvailableEffect : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Unique effect ID. public long id; + /// Emoji corresponding to the effect, to be used as icon for the effect if static_icon_id is not set. public string emoticon; + /// ID of the document containing the static icon (WEBP) of the effect. [IfFlag(0)] public long static_icon_id; + /// Contains the preview animation (TGS format »), used for the effect selection menu. public long effect_sticker_id; + /// If set, contains the actual animated effect (TGS format »). If not set, the animated effect must be set equal to the premium animated sticker effect associated to the animated sticker specified in effect_sticker_id (always different from the preview animation, fetched thanks to the of type f as specified here »). [IfFlag(1)] public long effect_animation_id; [Flags] public enum Flags : uint @@ -18405,30 +18575,35 @@ namespace TL has_static_icon_id = 0x1, /// Field has a value has_effect_animation_id = 0x2, + /// Whether a Premium subscription is required to use this effect. premium_required = 0x4, } } - /// See + /// The full list of usable animated message effects ». See /// a value means messages.availableEffectsNotModified [TLDef(0xBDDB616E)] public sealed partial class Messages_AvailableEffects : IObject { - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public int hash; + /// Message effects public AvailableEffect[] effects; + /// Documents specified in the effects constructors. public DocumentBase[] documents; } - /// See + /// Represents a fact-check » created by an independent fact-checker. See [TLDef(0xB89BFCCF)] public sealed partial class FactCheck : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// A two-letter ISO 3166-1 alpha-2 country code of the country for which the fact-check should be shown. [IfFlag(1)] public string country; + /// The fact-check. [IfFlag(1)] public TextWithEntities text; - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public long hash; [Flags] public enum Flags : uint @@ -18439,64 +18614,77 @@ namespace TL } } - /// See Derived classes: , , , , , + /// Source of an incoming Telegram Star transaction, or its recipient for outgoing Telegram Star transactions. See Derived classes: , , , , , public abstract partial class StarsTransactionPeerBase : IObject { } - /// See + /// Describes a Telegram Star transaction that cannot be described using the current layer. See [TLDef(0x95F2BFE4)] public sealed partial class StarsTransactionPeerUnsupported : StarsTransactionPeerBase { } - /// See + /// Describes a Telegram Star transaction with the App Store, used when purchasing Telegram Stars through the App Store. See [TLDef(0xB457B375)] public sealed partial class StarsTransactionPeerAppStore : StarsTransactionPeerBase { } - /// See + /// Describes a Telegram Star transaction with the Play Store, used when purchasing Telegram Stars through the Play Store. See [TLDef(0x7B560A0B)] public sealed partial class StarsTransactionPeerPlayMarket : StarsTransactionPeerBase { } /// See [TLDef(0x250DBAF8)] public sealed partial class StarsTransactionPeerPremiumBot : StarsTransactionPeerBase { } - /// See + /// Describes a Telegram Star transaction with Fragment, used when purchasing Telegram Stars through Fragment. See [TLDef(0xE92FD902)] public sealed partial class StarsTransactionPeerFragment : StarsTransactionPeerBase { } - /// See + /// Describes a Telegram Star transaction with another peer (usually a bot or a channel). See [TLDef(0xD80DA15D)] public sealed partial class StarsTransactionPeer : StarsTransactionPeerBase { + /// The peer. public Peer peer; } /// See [TLDef(0x60682812)] public sealed partial class StarsTransactionPeerAds : StarsTransactionPeerBase { } - /// See + /// Telegram Stars topup option. See [TLDef(0x0BD915C0)] public sealed partial class StarsTopupOption : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Amount of Telegram stars. public long stars; + /// Identifier of the store product associated with the option, official apps only. [IfFlag(0)] public string store_product; + /// Three-letter ISO 4217 currency code public string currency; + /// Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). public long amount; [Flags] public enum Flags : uint { /// Field has a value has_store_product = 0x1, + /// If set, the option must only be shown in the full list of topup options. extended = 0x2, } } - /// See + /// Represents a Telegram Stars transaction ». See [TLDef(0x2DB5418F)] public sealed partial class StarsTransaction : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Transaction ID. public string id; + /// Amount of Stars (negative for outgoing transactions). public long stars; + /// Date of the transaction (unixtime). public DateTime date; + /// Source of the incoming transaction, or its recipient for outgoing transactions. public StarsTransactionPeerBase peer; + /// For transactions with bots, title of the bought product. [IfFlag(0)] public string title; + /// For transactions with bots, description of the bought product. [IfFlag(1)] public string description; + /// For transactions with bots, photo of the bought product. [IfFlag(2)] public WebDocumentBase photo; [IfFlag(5)] public DateTime transaction_date; [IfFlag(5)] public string transaction_url; @@ -18512,6 +18700,7 @@ namespace TL has_description = 0x2, /// Field has a value has_photo = 0x4, + /// Whether this transaction is a refund. refund = 0x8, pending = 0x10, /// Fields and have a value @@ -18526,16 +18715,21 @@ namespace TL } } - /// See + /// Info about the current Telegram Star balance and transaction history ». See [TLDef(0x8CF4EE60)] public sealed partial class Payments_StarsStatus : IObject, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Current Telegram Star balance. public long balance; + /// List of Telegram Star transactions (partial if next_offset is set). public StarsTransaction[] history; + /// Offset to use to fetch more transactions from the transaction history using Payments_GetStarsTransactions. [IfFlag(0)] public string next_offset; + /// Chats mentioned in history. public Dictionary chats; + /// Users mentioned in history. public Dictionary users; [Flags] public enum Flags : uint diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs index 7c2f62d..65c2ffa 100644 --- a/src/TL.SchemaFuncs.cs +++ b/src/TL.SchemaFuncs.cs @@ -102,7 +102,10 @@ namespace TL query = query, }); - /// See + /// Official clients only, invoke with Google Play Integrity token. See + /// Nonce. + /// Token. + /// Query. public static Task InvokeWithGooglePlayIntegrity(this Client client, string nonce, string token, IMethod query) => client.Invoke(new InvokeWithGooglePlayIntegrity { @@ -111,7 +114,10 @@ namespace TL query = query, }); - /// See + /// Official clients only, invoke with Apple push verification. See + /// Nonce. + /// Secret. + /// Query. public static Task InvokeWithApnsSecret(this Client client, string nonce, string secret, IMethod query) => client.Invoke(new InvokeWithApnsSecret { @@ -442,7 +448,7 @@ namespace TL }); /// Returns a list of available wallpapers. See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means account.wallPapersNotModified public static Task Account_GetWallPapers(this Client client, long hash = default) => client.Invoke(new Account_GetWallPapers @@ -961,7 +967,7 @@ namespace TL /// Get installed themes See /// Theme format, a string that identifies the theming engines supported by the client - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means account.themesNotModified public static Task Account_GetThemes(this Client client, string format, long hash = default) => client.Invoke(new Account_GetThemes @@ -1033,7 +1039,7 @@ namespace TL }); /// Get all available chat themes ». See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means account.themesNotModified public static Task Account_GetChatThemes(this Client client, long hash = default) => client.Invoke(new Account_GetChatThemes @@ -1064,7 +1070,7 @@ namespace TL }); /// Fetch saved notification sounds See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means account.savedRingtonesNotModified public static Task Account_GetSavedRingtones(this Client client, long hash = default) => client.Invoke(new Account_GetSavedRingtones @@ -1103,7 +1109,7 @@ namespace TL }); /// Get a list of default suggested emoji statuses See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means account.emojiStatusesNotModified public static Task Account_GetDefaultEmojiStatuses(this Client client, long hash = default) => client.Invoke(new Account_GetDefaultEmojiStatuses @@ -1112,7 +1118,7 @@ namespace TL }); /// Get recently used emoji statuses See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means account.emojiStatusesNotModified public static Task Account_GetRecentEmojiStatuses(this Client client, long hash = default) => client.Invoke(new Account_GetRecentEmojiStatuses @@ -1145,7 +1151,7 @@ namespace TL }); /// Get a set of suggested custom emoji stickers that can be used as profile picture See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means emojiListNotModified public static Task Account_GetDefaultProfilePhotoEmojis(this Client client, long hash = default) => client.Invoke(new Account_GetDefaultProfilePhotoEmojis @@ -1154,7 +1160,7 @@ namespace TL }); /// Get a set of suggested custom emoji stickers that can be used as group picture See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means emojiListNotModified public static Task Account_GetDefaultGroupPhotoEmojis(this Client client, long hash = default) => client.Invoke(new Account_GetDefaultGroupPhotoEmojis @@ -1209,7 +1215,7 @@ namespace TL }); /// Get a set of suggested custom emoji stickers that can be used in an accent color pattern. See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means emojiListNotModified public static Task Account_GetDefaultBackgroundEmojis(this Client client, long hash = default) => client.Invoke(new Account_GetDefaultBackgroundEmojis @@ -1218,7 +1224,7 @@ namespace TL }); /// Get a list of default suggested channel emoji statuses. See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means account.emojiStatusesNotModified public static Task Account_GetChannelDefaultEmojiStatuses(this Client client, long hash = default) => client.Invoke(new Account_GetChannelDefaultEmojiStatuses @@ -1227,7 +1233,7 @@ namespace TL }); /// Returns fetch the full list of custom emoji IDs » that cannot be used in channel emoji statuses ». See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means emojiListNotModified public static Task Account_GetChannelRestrictedStatusEmojis(this Client client, long hash = default) => client.Invoke(new Account_GetChannelRestrictedStatusEmojis @@ -1300,7 +1306,8 @@ namespace TL connection_id = connection_id, }); - /// See + /// Set or remove the Telegram Business introduction ». See + /// Telegram Business introduction, to remove it call the method without setting this flag. public static Task Account_UpdateBusinessIntro(this Client client, InputBusinessIntro intro = null) => client.Invoke(new Account_UpdateBusinessIntro { @@ -1383,20 +1390,22 @@ namespace TL channel = channel, }); - /// See + /// Disable or re-enable Telegram ads for the current Premium account. See + /// Enable or disable ads. public static Task Account_ToggleSponsoredMessages(this Client client, bool enabled) => client.Invoke(new Account_ToggleSponsoredMessages { enabled = enabled, }); - /// See + /// Get the current reaction notification settings ». See public static Task Account_GetReactionsNotifySettings(this Client client) => client.Invoke(new Account_GetReactionsNotifySettings { }); - /// See + /// Change the reaction notification settings ». See + /// New reaction notification settings. public static Task Account_SetReactionsNotifySettings(this Client client, ReactionsNotifySettings settings) => client.Invoke(new Account_SetReactionsNotifySettings { @@ -1429,7 +1438,7 @@ namespace TL errors = errors, }); - /// Check whether we can write to the specified user (non-Premium users only). See + /// Check whether we can write to the specified user (non-Premium users only), see here » for more info on the full flow. See /// Users to fetch info about. public static Task Users_GetIsPremiumRequiredToContact(this Client client, params InputUserBase[] id) => client.Invoke(new Users_GetIsPremiumRequiredToContact @@ -1438,7 +1447,7 @@ namespace TL }); /// Get the telegram IDs of all contacts.
Returns an array of Telegram user IDs for all contacts (0 if a contact does not have an associated Telegram account or have hidden their account using privacy settings). See
- /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public static Task Contacts_GetContactIDs(this Client client, long hash = default) => client.Invoke(new Contacts_GetContactIDs { @@ -1452,7 +1461,7 @@ namespace TL }); /// Returns the current user's contact list. See - /// Hash for pagination, for more info click here.
Note that the hash is computed using the usual algorithm, passing to the algorithm first the previously returned .saved_count field, then max 100000 sorted user IDs from the contact list, including the ID of the currently logged in user if it is saved as a contact.
Example: tdlib implementation. + /// Hash used for caching, for more info click here.
Note that the hash is computed using the usual algorithm, passing to the algorithm first the previously returned .saved_count field, then max 100000 sorted user IDs from the contact list, including the ID of the currently logged in user if it is saved as a contact.
Example: tdlib implementation. /// a null value means contacts.contactsNotModified public static Task Contacts_GetContacts(this Client client, long hash = default) => client.Invoke(new Contacts_GetContacts @@ -1545,7 +1554,7 @@ namespace TL /// Most frequently visited channels /// Offset for pagination /// Maximum number of results to return, see pagination - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here /// a null value means contacts.topPeersNotModified public static Task Contacts_GetTopPeers(this Client client, int offset = default, int limit = int.MaxValue, long hash = default, bool correspondents = false, bool bots_pm = false, bool bots_inline = false, bool phone_calls = false, bool forward_users = false, bool forward_chats = false, bool groups = false, bool channels = false) => client.Invoke(new Contacts_GetTopPeers @@ -1697,7 +1706,7 @@ namespace TL /// Offsets for pagination, for more info click here (top_message ID used for pagination) /// Offset peer for pagination /// Number of list elements to be returned - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public static Task Messages_GetDialogs(this Client client, DateTime offset_date = default, int offset_id = default, InputPeer offset_peer = null, int limit = int.MaxValue, long hash = default, int? folder_id = null, bool exclude_pinned = false) => client.Invoke(new Messages_GetDialogs { @@ -1737,6 +1746,7 @@ namespace TL /// Text search request /// Only return messages sent by the specified user ID /// Search within the saved message dialog » with this ID. + /// You may search for saved messages tagged » with one or more reactions using this flag. /// Thread ID /// Filter to return only specified message types /// If a positive value was transferred, only messages with a sending date bigger than the transferred one will be returned @@ -1843,6 +1853,7 @@ namespace TL /// Scheduled message date for scheduled messages /// Send this message as the specified peer /// Add the message to the specified quick reply shortcut », instead. + /// Specifies a message effect » to use for the message. public static Task Messages_SendMessage(this Client client, InputPeer peer, string message, long random_id, InputReplyTo reply_to = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, long? effect = null, bool no_webpage = false, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = false, bool invert_media = false) => client.Invoke(new Messages_SendMessage { @@ -1876,6 +1887,7 @@ namespace TL /// Scheduled message date for scheduled messages /// Send this message as the specified peer /// Add the message to the specified quick reply shortcut », instead. + /// Specifies a message effect » to use for the message. public static Task Messages_SendMedia(this Client client, InputPeer peer, InputMedia media, string message, long random_id, InputReplyTo reply_to = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, long? effect = null, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = false, bool invert_media = false) => client.Invoke(new Messages_SendMedia { @@ -2157,7 +2169,7 @@ namespace TL /// Get stickers by emoji See Possible codes: 400 (details) /// The emoji - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.stickersNotModified public static Task Messages_GetStickers(this Client client, string emoticon, long hash = default) => client.Invoke(new Messages_GetStickers @@ -2167,7 +2179,7 @@ namespace TL }); /// Get all installed stickers See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.allStickersNotModified public static Task Messages_GetAllStickers(this Client client, long hash = default) => client.Invoke(new Messages_GetAllStickers @@ -2222,7 +2234,7 @@ namespace TL /// Get info about a stickerset See [bots: ✓] Possible codes: 400,406 (details) /// Stickerset - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here /// a null value means messages.stickerSetNotModified public static Task Messages_GetStickerSet(this Client client, InputStickerSet stickerset, int hash = default) => client.Invoke(new Messages_GetStickerSet @@ -2296,6 +2308,7 @@ namespace TL }); /// Search for messages and peers globally See Possible codes: 400 (details) + /// If set, only returns results from channels (used in the global channel search tab »). /// Peer folder ID, for more info click here /// Query /// Global search filter @@ -2344,7 +2357,7 @@ namespace TL }); /// Get saved GIFs. See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.savedGifsNotModified public static Task Messages_GetSavedGifs(this Client client, long hash = default) => client.Invoke(new Messages_GetSavedGifs @@ -2548,7 +2561,7 @@ namespace TL }); /// Get featured stickers See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. public static Task Messages_GetFeaturedStickers(this Client client, long hash = default) => client.Invoke(new Messages_GetFeaturedStickers { @@ -2565,7 +2578,7 @@ namespace TL /// Get recent stickers See /// Get stickers recently attached to photo or video files - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.recentStickersNotModified public static Task Messages_GetRecentStickers(this Client client, long hash = default, bool attached = false) => client.Invoke(new Messages_GetRecentStickers @@ -2608,7 +2621,7 @@ namespace TL }); /// Get installed mask stickers See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.allStickersNotModified public static Task Messages_GetMaskStickers(this Client client, long hash = default) => client.Invoke(new Messages_GetMaskStickers @@ -2692,7 +2705,7 @@ namespace TL /// Get instant view page See Possible codes: 400 (details) /// URL of IV page to fetch - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public static Task Messages_GetWebPage(this Client client, string url, int hash = default) => client.Invoke(new Messages_GetWebPage { @@ -2782,7 +2795,7 @@ namespace TL }); /// Get faved stickers See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.favedStickersNotModified public static Task Messages_GetFavedStickers(this Client client, long hash = default) => client.Invoke(new Messages_GetFavedStickers @@ -2835,7 +2848,7 @@ namespace TL /// Get live location history of a certain user See /// User /// Maximum number of results to return, see pagination - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public static Task Messages_GetRecentLocations(this Client client, InputPeer peer, int limit = int.MaxValue, long hash = default) => client.Invoke(new Messages_GetRecentLocations { @@ -2857,6 +2870,7 @@ namespace TL /// Scheduled message date for scheduled messages /// Send this message as the specified peer /// Add the message to the specified quick reply shortcut », instead. + /// Specifies a message effect » to use for the message. public static Task Messages_SendMultiMedia(this Client client, InputPeer peer, InputSingleMedia[] multi_media, InputReplyTo reply_to = null, DateTime? schedule_date = null, InputPeer send_as = null, InputQuickReplyShortcutBase quick_reply_shortcut = null, long? effect = null, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = false, bool invert_media = false) => client.Invoke(new Messages_SendMultiMedia { @@ -2884,7 +2898,7 @@ namespace TL /// Search for stickersets See /// Exclude featured stickersets from results /// Query string - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.foundStickerSetsNotModified public static Task Messages_SearchStickerSets(this Client client, string q, long hash = default, bool exclude_featured = false) => client.Invoke(new Messages_SearchStickerSets @@ -3078,7 +3092,7 @@ namespace TL /// Get scheduled messages See Possible codes: 400 (details) /// Peer - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public static Task Messages_GetScheduledHistory(this Client client, InputPeer peer, long hash = default) => client.Invoke(new Messages_GetScheduledHistory { @@ -3179,7 +3193,7 @@ namespace TL /// Method for fetching previously featured stickers See /// Offset /// Maximum number of results to return, see pagination - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. public static Task Messages_GetOldFeaturedStickers(this Client client, int offset = default, int limit = int.MaxValue, long hash = default) => client.Invoke(new Messages_GetOldFeaturedStickers { @@ -3197,7 +3211,7 @@ namespace TL /// Maximum number of results to return, see pagination /// If a positive value was transferred, the method will return only messages with ID smaller than max_id /// If a positive value was transferred, the method will return only messages with ID bigger than min_id - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public static Task Messages_GetReplies(this Client client, InputPeer peer, int msg_id, int offset_id = default, DateTime offset_date = default, int add_offset = default, int limit = int.MaxValue, int max_id = default, int min_id = default, long hash = default) => client.Invoke(new Messages_GetReplies { @@ -3563,6 +3577,7 @@ namespace TL /// Change the set of message reactions » that can be used in a certain group, supergroup or channel See Possible codes: 400 (details) /// Group where to apply changes /// Allowed reaction emojis + /// This flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of appConfig.reactions_uniq_max); this field and the other info set by the method will then be available to users in and . public static Task Messages_SetChatAvailableReactions(this Client client, InputPeer peer, ChatReactions available_reactions, int? reactions_limit = null) => client.Invoke(new Messages_SetChatAvailableReactions { @@ -3573,7 +3588,7 @@ namespace TL }); /// Obtain available message reactions » See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.availableReactionsNotModified public static Task Messages_GetAvailableReactions(this Client client, int hash = default) => client.Invoke(new Messages_GetAvailableReactions @@ -3649,7 +3664,7 @@ namespace TL }); /// Returns installed attachment menu bot mini apps » See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means attachMenuBotsNotModified public static Task Messages_GetAttachMenuBots(this Client client, long hash = default) => client.Invoke(new Messages_GetAttachMenuBots @@ -3796,7 +3811,7 @@ namespace TL }); /// Gets the list of currently installed custom emoji stickersets. See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.allStickersNotModified public static Task Messages_GetEmojiStickers(this Client client, long hash = default) => client.Invoke(new Messages_GetEmojiStickers @@ -3805,7 +3820,7 @@ namespace TL }); /// Gets featured custom emoji stickersets. See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. public static Task Messages_GetFeaturedEmojiStickers(this Client client, long hash = default) => client.Invoke(new Messages_GetFeaturedEmojiStickers { @@ -3826,7 +3841,7 @@ namespace TL /// Got popular message reactions See /// Maximum number of results to return, see pagination - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.reactionsNotModified public static Task Messages_GetTopReactions(this Client client, int limit = int.MaxValue, long hash = default) => client.Invoke(new Messages_GetTopReactions @@ -3837,7 +3852,7 @@ namespace TL /// Get recently used message reactions See /// Maximum number of results to return, see pagination - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.reactionsNotModified public static Task Messages_GetRecentReactions(this Client client, int limit = int.MaxValue, long hash = default) => client.Invoke(new Messages_GetRecentReactions @@ -3890,8 +3905,8 @@ namespace TL requested_peers = requested_peers, }); - /// Represents a list of emoji categories, to be used when selecting custom emojis. See [bots: ✓] - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Represents a list of emoji categories. See [bots: ✓] + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.emojiGroupsNotModified public static Task Messages_GetEmojiGroups(this Client client, int hash = default) => client.Invoke(new Messages_GetEmojiGroups @@ -3899,8 +3914,8 @@ namespace TL hash = hash, }); - /// Represents a list of emoji categories, to be used when selecting custom emojis to set as custom emoji status. See [bots: ✓] - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Represents a list of emoji categories, to be used when selecting custom emojis to set as custom emoji status. See [bots: ✓] + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.emojiGroupsNotModified public static Task Messages_GetEmojiStatusGroups(this Client client, int hash = default) => client.Invoke(new Messages_GetEmojiStatusGroups @@ -3908,8 +3923,8 @@ namespace TL hash = hash, }); - /// Represents a list of emoji categories, to be used when selecting custom emojis to set as profile picture. See [bots: ✓] - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Represents a list of emoji categories, to be used when selecting custom emojis to set as profile picture. See [bots: ✓] + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.emojiGroupsNotModified public static Task Messages_GetEmojiProfilePhotoGroups(this Client client, int hash = default) => client.Invoke(new Messages_GetEmojiProfilePhotoGroups @@ -3919,7 +3934,7 @@ namespace TL /// Look for custom emojis associated to a UTF8 emoji See [bots: ✓] Possible codes: 400 (details) /// The emoji - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means emojiListNotModified public static Task Messages_SearchCustomEmoji(this Client client, string emoticon, long hash = default) => client.Invoke(new Messages_SearchCustomEmoji @@ -3940,7 +3955,7 @@ namespace TL /// Obtain information about a direct link Mini App See Possible codes: 400 (details) /// Bot app information obtained from a Direct Mini App deep link ». - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public static Task Messages_GetBotApp(this Client client, InputBotApp app, long hash = default) => client.Invoke(new Messages_GetBotApp { @@ -3986,7 +4001,7 @@ namespace TL /// Search for custom emoji stickersets » See /// Exclude featured stickersets from results /// Query string - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// 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 @@ -4002,7 +4017,7 @@ namespace TL /// Offsets for pagination, for more info click here (top_message ID used for pagination) /// Offset peer for pagination /// Number of list elements to be returned - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public static Task Messages_GetSavedDialogs(this Client client, DateTime offset_date = default, int offset_id = default, InputPeer offset_peer = null, int limit = int.MaxValue, long hash = default, bool exclude_pinned = false) => client.Invoke(new Messages_GetSavedDialogs { @@ -4079,7 +4094,7 @@ namespace TL /// Fetch the full list of saved message tags created by the user. See /// If set, returns tags only used in the specified saved message dialog. - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.savedReactionTagsNotModified public static Task Messages_GetSavedReactionTags(this Client client, long hash = default, InputPeer peer = null) => client.Invoke(new Messages_GetSavedReactionTags @@ -4101,7 +4116,7 @@ namespace TL }); /// Fetch a default recommended list of saved message tag reactions. See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.reactionsNotModified public static Task Messages_GetDefaultTagReactions(this Client client, long hash = default) => client.Invoke(new Messages_GetDefaultTagReactions @@ -4109,7 +4124,9 @@ namespace TL hash = hash, }); - /// See Possible codes: 400,403 (details) + /// Get the exact read date of one of our messages, sent to a private chat with another user. See Possible codes: 400,403 (details) + /// The user to whom we sent the message. + /// The message ID. public static Task Messages_GetOutboxReadDate(this Client client, InputPeer peer, int msg_id) => client.Invoke(new Messages_GetOutboxReadDate { @@ -4163,7 +4180,7 @@ namespace TL /// This method is only for basic Chat. See Terminology in the README to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a
Fetch (a subset or all) messages in a quick reply shortcut ». See Possible codes: 400 (details)
/// Quick reply shortcut ID. /// IDs of the messages to fetch, if empty fetches all of them. - /// Hash for pagination, for more info click here + /// Hash used for caching, for more info click here public static Task Messages_GetQuickReplyMessages(this Client client, int shortcut_id, long hash = default, int[] id = null) => client.Invoke(new Messages_GetQuickReplyMessages { @@ -4197,14 +4214,15 @@ namespace TL id = id, }); - /// See + /// Enable or disable folder tags ». See + /// Enable or disable folder tags. public static Task Messages_ToggleDialogFilterTags(this Client client, bool enabled) => client.Invoke(new Messages_ToggleDialogFilterTags { enabled = enabled, }); - /// See + /// Fetch stickerset owned by the current user. See /// Offsets for pagination, for more info click here /// Maximum number of results to return, see pagination public static Task Messages_GetMyStickers(this Client client, long offset_id = default, int limit = int.MaxValue) @@ -4214,8 +4232,8 @@ namespace TL limit = limit, }); - /// See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Represents a list of emoji categories, to be used when choosing a sticker. See + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.emojiGroupsNotModified public static Task Messages_GetEmojiStickerGroups(this Client client, int hash = default) => client.Invoke(new Messages_GetEmojiStickerGroups @@ -4223,8 +4241,8 @@ namespace TL hash = hash, }); - /// See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Fetch the full list of usable animated message effects ». See + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means messages.availableEffectsNotModified public static Task Messages_GetAvailableEffects(this Client client, int hash = default) => client.Invoke(new Messages_GetAvailableEffects @@ -4232,7 +4250,10 @@ namespace TL hash = hash, }); - /// See Possible codes: 400 (details) + /// Edit/create a fact-check on a message. See Possible codes: 400 (details) + /// Peer where the message was sent + /// Message ID + /// Fact-check (maximum UTF-8 length specified in appConfig.factcheck_length_limit). public static Task Messages_EditFactCheck(this Client client, InputPeer peer, int msg_id, TextWithEntities text) => client.Invoke(new Messages_EditFactCheck { @@ -4241,7 +4262,9 @@ namespace TL text = text, }); - /// See Possible codes: 400 (details) + /// Delete a fact-check from a message. See Possible codes: 400 (details) + /// Peer where the message was sent. + /// Message ID public static Task Messages_DeleteFactCheck(this Client client, InputPeer peer, int msg_id) => client.Invoke(new Messages_DeleteFactCheck { @@ -4545,7 +4568,7 @@ namespace TL }); /// Get app-specific configuration, see client configuration for more info on the result. See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means help.appConfigNotModified public static Task Help_GetAppConfig(this Client client, int hash = default) => client.Invoke(new Help_GetAppConfig @@ -4562,7 +4585,7 @@ namespace TL }); /// Get passport configuration See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means help.passportConfigNotModified public static Task Help_GetPassportConfig(this Client client, int hash = default) => client.Invoke(new Help_GetPassportConfig @@ -4624,7 +4647,7 @@ namespace TL /// Get name, ISO code, localized name and phone codes/patterns of all available countries See /// Language code of the current user - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means help.countriesListNotModified public static Task Help_GetCountriesList(this Client client, string lang_code, int hash = default) => client.Invoke(new Help_GetCountriesList @@ -4640,7 +4663,7 @@ namespace TL }); /// Get the set of accent color palettes » that can be used for message accents. See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means help.peerColorsNotModified public static Task Help_GetPeerColors(this Client client, int hash = default) => client.Invoke(new Help_GetPeerColors @@ -4649,7 +4672,7 @@ namespace TL }); /// Get the set of accent color palettes » that can be used in profile page backgrounds. See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means help.peerColorsNotModified public static Task Help_GetPeerProfileColors(this Client client, int hash = default) => client.Invoke(new Help_GetPeerProfileColors @@ -4658,7 +4681,7 @@ namespace TL }); /// Returns timezone information that may be used elsewhere in the API, such as to set Telegram Business opening hours ». See - /// Hash for pagination, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. + /// Hash used for caching, for more info click here.
Note: the usual hash generation algorithm cannot be used in this case, please re-use the .hash field returned by a previous call to the method, or pass 0 if this is the first call. /// a null value means help.timezonesListNotModified public static Task Help_GetTimezonesList(this Client client, int hash = default) => client.Invoke(new Help_GetTimezonesList @@ -4886,6 +4909,7 @@ namespace TL /// Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the limit for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of his channels/supergroups/geogroups. See Possible codes: 400 (details) /// Get geogroups /// If set and the user has reached the limit of owned public channels/supergroups/geogroups, instead of returning the channel list one of the specified errors will be returned.
Useful to check if a new public channel can indeed be created, even before asking the user to enter a channel username to use in Channels_CheckUsername/Channels_UpdateUsername. + /// Set this flag to only fetch the full list of channels that may be passed to Account_UpdatePersonalChannel to display them on our profile page. public static Task Channels_GetAdminedPublicChannels(this Client client, bool by_location = false, bool check_limit = false, bool for_personal = false) => client.Invoke(new Channels_GetAdminedPublicChannels { @@ -5302,7 +5326,7 @@ namespace TL }); /// Obtain a list of similarly themed public channels, selected based on similarities in their subscriber bases. See Possible codes: 400 (details) - /// The method will return channels related to the passed channel. + /// The method will return channels related to the passed channel. If not set, the method will returns channels related to channels the user has joined. public static Task Channels_GetChannelRecommendations(this Client client, InputChannelBase channel = null) => client.Invoke(new Channels_GetChannelRecommendations { @@ -5320,7 +5344,9 @@ namespace TL emoji_status = emoji_status, }); - /// See Possible codes: 400 (details) + /// Admins with ban_users admin rights » may allow users that apply a certain number of booosts » to the group to bypass Channels_ToggleSlowMode and other » supergroup restrictions, see here » for more info. See Possible codes: 400 (details) + /// The supergroup. + /// The number of required boosts (1-8, 0 to disable). public static Task Channels_SetBoostsToUnblockRestrictions(this Client client, InputChannelBase channel, int boosts) => client.Invoke(new Channels_SetBoostsToUnblockRestrictions { @@ -5338,7 +5364,10 @@ namespace TL stickerset = stickerset, }); - /// See Possible codes: 400 (details) + /// Report a sponsored message », see here » for more info on the full flow. See Possible codes: 400 (details) + /// The channel where the sponsored message can be seen. + /// ID of the sponsored message. + /// Chosen report option, initially an empty string, see here » for more info on the full flow. public static Task Channels_ReportSponsoredMessage(this Client client, InputChannelBase channel, byte[] random_id, byte[] option) => client.Invoke(new Channels_ReportSponsoredMessage { @@ -5347,7 +5376,9 @@ namespace TL option = option, }); - /// See Possible codes: 400 (details) + /// Disable ads on the specified channel, for all users. See Possible codes: 400 (details) + /// The channel. + /// Whether to disable or re-enable ads. public static Task Channels_RestrictSponsoredMessages(this Client client, InputChannelBase channel, bool restricted) => client.Invoke(new Channels_RestrictSponsoredMessages { @@ -5355,7 +5386,10 @@ namespace TL restricted = restricted, }); - /// See + /// Globally search for posts from public channels » (including those we aren't a member of) containing a specific hashtag. See + /// The hashtag to search, without the # character. + /// Initially 0, then set to the next_rate parameter of messages.messagesSlice + /// Offsets for pagination, for more info click here /// Offsets for pagination, for more info click here /// Maximum number of results to return, see pagination public static Task Channels_SearchPosts(this Client client, string hashtag, int offset_rate = default, InputPeer offset_peer = null, int offset_id = default, int limit = int.MaxValue) @@ -5691,20 +5725,23 @@ namespace TL purpose = purpose, }); - /// See + /// Obtain a list of Telegram Stars topup options » as s. See public static Task Payments_GetStarsTopupOptions(this Client client) => client.Invoke(new Payments_GetStarsTopupOptions { }); - /// See Possible codes: 400 (details) + /// Get the current Telegram Stars balance of the current account (with peer=), or the stars balance of the bot specified in peer. See Possible codes: 400 (details) + /// Peer of which to get the balance. public static Task Payments_GetStarsStatus(this Client client, InputPeer peer) => client.Invoke(new Payments_GetStarsStatus { peer = peer, }); - /// See [bots: ✓] Possible codes: 400 (details) + /// Fetch Telegram Stars transactions. See [bots: ✓] Possible codes: 400 (details) + /// Fetch the transaction history of the peer ( or a bot we own). + /// Offset for pagination, obtained from the returned next_offset, initially an empty string ». public static Task Payments_GetStarsTransactions(this Client client, InputPeer peer, string offset, int limit = int.MaxValue, bool inbound = false, bool outbound = false, bool ascending = false) => client.Invoke(new Payments_GetStarsTransactions { @@ -5714,7 +5751,9 @@ namespace TL limit = limit, }); - /// See Possible codes: 400 (details) + /// Make a payment using Telegram Stars, see here » for more info. See Possible codes: 400 (details) + /// Payment form ID + /// Invoice public static Task Payments_SendStarsForm(this Client client, long form_id, InputInvoice invoice) => client.Invoke(new Payments_SendStarsForm { @@ -5723,7 +5762,9 @@ namespace TL invoice = invoice, }); - /// See [bots: ✓] Possible codes: 400 (details) + /// Refund a Telegram Stars transaction, see here » for more info. See [bots: ✓] Possible codes: 400 (details) + /// User to refund. + /// Transaction ID. public static Task Payments_RefundStarsCharge(this Client client, InputUserBase user_id, string charge_id) => client.Invoke(new Payments_RefundStarsCharge { @@ -6391,7 +6432,9 @@ namespace TL limit = limit, }); - /// See Possible codes: 400 (details) + /// Get channel ad revenue statistics ». See Possible codes: 400 (details) + /// Whether to enable dark theme for graph colors + /// The channel public static Task Stats_GetBroadcastRevenueStats(this Client client, InputChannelBase channel, bool dark = false) => client.Invoke(new Stats_GetBroadcastRevenueStats { @@ -6399,7 +6442,9 @@ namespace TL channel = channel, }); - /// See Possible codes: 400 (details) + /// Withdraw funds from a channel's ad revenue balance ». See Possible codes: 400 (details) + /// The channel + /// 2FA password, see here » for more info. public static Task Stats_GetBroadcastRevenueWithdrawalUrl(this Client client, InputChannelBase channel, InputCheckPasswordSRP password) => client.Invoke(new Stats_GetBroadcastRevenueWithdrawalUrl { @@ -6407,7 +6452,9 @@ namespace TL password = password, }); - /// See Possible codes: 400 (details) + /// Fetch channel ad revenue transaction history ». See Possible codes: 400 (details) + /// The channel + /// Offset for pagination /// Maximum number of results to return, see pagination public static Task Stats_GetBroadcastRevenueTransactions(this Client client, InputChannelBase channel, int offset = default, int limit = int.MaxValue) => client.Invoke(new Stats_GetBroadcastRevenueTransactions @@ -6811,7 +6858,9 @@ namespace TL limit = limit, }); - /// See Possible codes: 400 (details) + /// Pin some stories to the top of the profile, see here » for more info. See Possible codes: 400 (details) + /// Peer where to pin stories. + /// IDs of the stories to pin (max stories_pinned_to_top_count_max). public static Task Stories_TogglePinnedToTop(this Client client, InputPeer peer, params int[] id) => client.Invoke(new Stories_TogglePinnedToTop { @@ -6912,6 +6961,7 @@ namespace TL }); /// Get info about an SMS job (official clients only). See Possible codes: 400 (details) + /// Job ID public static Task Smsjobs_GetSmsJob(this Client client, string job_id) => client.Invoke(new Smsjobs_GetSmsJob { @@ -6929,7 +6979,8 @@ namespace TL error = error, }); - /// See Possible codes: 400 (details) + /// Fetch information about a fragment collectible, see here » for more info on the full flow. See Possible codes: 400 (details) + /// Collectible to fetch info about. public static Task Fragment_GetCollectibleInfo(this Client client, InputCollectible collectible) => client.Invoke(new Fragment_GetCollectibleInfo { diff --git a/src/TL.Table.cs b/src/TL.Table.cs index af84daf..f1ec34a 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 = 184; // fetched 07/07/2024 20:50:35 + public const int Version = 184; // fetched 17/07/2024 09:17:31 internal const int SecretChats = 144; internal const int MTProto2 = 73; internal const uint VectorCtor = 0x1CB5C415;