This commit is contained in:
Wizou 2023-05-11 12:46:34 +02:00
parent be0a357b9b
commit 98f6a26b09
2 changed files with 165 additions and 57 deletions

View file

@ -384,6 +384,7 @@ namespace TL
public DataJSON provider_data;
/// <summary>Unique <a href="https://corefork.telegram.org/api/links#bot-links">bot deep links start parameter</a>. If present, forwarded copies of the sent message will have a URL button with a <a href="https://corefork.telegram.org/api/links#bot-links">deep link</a> to the bot (instead of a Pay button), with the value used as the start parameter. If absent, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice.</summary>
[IfFlag(1)] public string start_param;
/// <summary>Extended media</summary>
[IfFlag(2)] public InputMedia extended_media;
[Flags] public enum Flags : uint
@ -814,6 +815,7 @@ namespace TL
{
/// <summary>Field <see cref="usernames"/> has a value</summary>
has_usernames = 0x1,
/// <summary>Whether we can edit the profile picture, name, about text and description of this bot because we own it.</summary>
bot_can_edit = 0x2,
}
}
@ -1842,6 +1844,7 @@ namespace TL
public long total_amount;
/// <summary>Unique bot deep-linking parameter that can be used to generate this invoice</summary>
public string start_param;
/// <summary>Extended media</summary>
[IfFlag(4)] public MessageExtendedMediaBase extended_media;
[Flags] public enum Flags : uint
@ -2214,7 +2217,9 @@ namespace TL
public long amount;
/// <summary>Duration of the gifted Telegram Premium subscription</summary>
public int months;
/// <summary>If the gift was bought using a cryptocurrency, the cryptocurrency name.</summary>
[IfFlag(0)] public string crypto_currency;
/// <summary>If the gift was bought using a cryptocurrency, price of the gift in the smallest units of a cryptocurrency.</summary>
[IfFlag(0)] public long crypto_amount;
[Flags] public enum Flags : uint
@ -2285,13 +2290,14 @@ namespace TL
/// <summary>The shared peer</summary>
public Peer peer;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionSetChatWallPaper"/></para></summary>
/// <summary>The <a href="https://corefork.telegram.org/api/wallpapers">wallpaper »</a> of the current chat was changed. <para>See <a href="https://corefork.telegram.org/constructor/messageActionSetChatWallPaper"/></para></summary>
[TLDef(0xBC44A927)]
public class MessageActionSetChatWallPaper : MessageAction
{
/// <summary>New <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a></summary>
public WallPaperBase wallpaper;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionSetSameChatWallPaper"/></para></summary>
/// <summary>The user applied a <a href="https://corefork.telegram.org/api/wallpapers">wallpaper »</a> previously sent by the other user in a <see cref="MessageActionSetChatWallPaper"/> message. <para>See <a href="https://corefork.telegram.org/constructor/messageActionSetSameChatWallPaper"/></para></summary>
[TLDef(0xC0787D6D)]
public class MessageActionSetSameChatWallPaper : MessageActionSetChatWallPaper { }
@ -2564,10 +2570,11 @@ namespace TL
has_timeout = 0x4,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/auth.sentCodeSuccess"/></para></summary>
/// <summary>The user successfully authorized using <a href="https://corefork.telegram.org/api/auth#future-auth-tokens">future auth tokens</a> <para>See <a href="https://corefork.telegram.org/constructor/auth.sentCodeSuccess"/></para></summary>
[TLDef(0x2390FE44)]
public class Auth_SentCodeSuccess : Auth_SentCodeBase
{
/// <summary>Authorization info</summary>
public Auth_AuthorizationBase authorization;
}
@ -2884,7 +2891,7 @@ namespace TL
[IfFlag(14)] public int ttl_period;
/// <summary>Emoji associated with chat theme</summary>
[IfFlag(15)] public string theme_emoticon;
/// <summary>Anonymized text to be shown instead of the the user's name on forwarded messages</summary>
/// <summary>Anonymized text to be shown instead of the user's name on forwarded messages</summary>
[IfFlag(16)] public string private_forward_name;
/// <summary>A <a href="https://corefork.telegram.org/api/rights#suggested-bot-rights">suggested set of administrator rights</a> for the bot, to be shown when adding the bot as admin to a group, see <a href="https://corefork.telegram.org/api/rights#suggested-bot-rights">here for more info on how to handle them »</a>.</summary>
[IfFlag(17)] public ChatAdminRights bot_group_admin_rights;
@ -2892,6 +2899,7 @@ namespace TL
[IfFlag(18)] public ChatAdminRights bot_broadcast_admin_rights;
/// <summary>Telegram Premium subscriptions gift options</summary>
[IfFlag(19)] public PremiumGiftOption[] premium_gifts;
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> to use in the private chat with the user.</summary>
[IfFlag(24)] public WallPaperBase wallpaper;
[Flags] public enum Flags : uint
@ -4119,7 +4127,7 @@ namespace TL
public int read_max_id;
/// <summary>If set, contains the ID of the <a href="https://corefork.telegram.org/api/channel">channel</a> that contains the post that started the <a href="https://corefork.telegram.org/api/threads">comment thread</a> in the discussion group (<c>channel_id</c>)</summary>
[IfFlag(0)] public long broadcast_id;
/// <summary>If set, contains the ID of the channel post that started the the <a href="https://corefork.telegram.org/api/threads">comment thread</a></summary>
/// <summary>If set, contains the ID of the channel post that started the <a href="https://corefork.telegram.org/api/threads">comment thread</a></summary>
[IfFlag(0)] public int broadcast_post;
[Flags] public enum Flags : uint
@ -4319,6 +4327,7 @@ namespace TL
has_new_participant = 0x2,
/// <summary>Field <see cref="invite"/> has a value</summary>
has_invite = 0x4,
/// <summary>Whether the participant joined using a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>.</summary>
via_chatlist = 0x8,
}
}
@ -4486,12 +4495,15 @@ namespace TL
emojis = 0x2,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateMessageExtendedMedia"/></para></summary>
/// <summary>Extended media update <para>See <a href="https://corefork.telegram.org/constructor/updateMessageExtendedMedia"/></para></summary>
[TLDef(0x5A73A98C)]
public class UpdateMessageExtendedMedia : Update
{
/// <summary>Peer</summary>
public Peer peer;
/// <summary>Message ID</summary>
public int msg_id;
/// <summary>Extended media</summary>
public MessageExtendedMediaBase extended_media;
}
/// <summary>A <a href="https://corefork.telegram.org/api/forum#forum-topics">forum topic »</a> was pinned or unpinned. <para>See <a href="https://corefork.telegram.org/constructor/updateChannelPinnedTopic"/></para></summary>
@ -6573,7 +6585,7 @@ namespace TL
public class KeyboardButtonRequestGeoLocation : KeyboardButton
{
}
/// <summary>Button to force a user to switch to inline mode Pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. <para>See <a href="https://corefork.telegram.org/constructor/keyboardButtonSwitchInline"/></para></summary>
/// <summary>Button to force a user to switch to inline mode: pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. <para>See <a href="https://corefork.telegram.org/constructor/keyboardButtonSwitchInline"/></para></summary>
[TLDef(0x93B9FBB5)]
public class KeyboardButtonSwitchInline : KeyboardButtonBase
{
@ -6583,6 +6595,7 @@ namespace TL
public string text;
/// <summary>The inline query to use</summary>
public string query;
/// <summary>Filter to use when selecting chats.</summary>
[IfFlag(1)] public InlineQueryPeerType[] peer_types;
[Flags] public enum Flags : uint
@ -7971,7 +7984,9 @@ namespace TL
public string email_pattern;
/// <summary>Length of the sent verification code</summary>
public int length;
/// <summary>The login email can be reset by invoking <see cref="SchemaExtensions.Auth_ResetLoginEmail">Auth_ResetLoginEmail</see> and waiting for the specified amount of seconds.</summary>
[IfFlag(3)] public int reset_available_period;
/// <summary>An email reset was already requested, and will occur at the specified date.</summary>
[IfFlag(4)] public DateTime reset_pending_date;
[Flags] public enum Flags : uint
@ -8016,7 +8031,9 @@ namespace TL
public Flags flags;
/// <summary>On Android, the nonce to be used as described in the <a href="https://corefork.telegram.org/api/auth">auth documentation »</a></summary>
[IfFlag(0)] public byte[] nonce;
/// <summary>On iOS, must be compared with the <c>receipt</c> extracted from the received push notification.</summary>
[IfFlag(1)] public string receipt;
/// <summary>On iOS: if a push notification with the <c>ios_push_secret</c> isn't received within <c>push_timeout</c> seconds, the <c>next_type</c> authentication method must be used, with <see cref="SchemaExtensions.Auth_ResendCode">Auth_ResendCode</see>.</summary>
[IfFlag(1)] public int push_timeout;
[Flags] public enum Flags : uint
@ -10147,6 +10164,7 @@ namespace TL
[Flags] public enum Flags : uint
{
/// <summary>The participant joined by importing a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>.</summary>
via_chatlist = 0x1,
}
}
@ -11634,7 +11652,9 @@ namespace TL
public Flags flags;
/// <summary>Previously stored future auth tokens, see <a href="https://corefork.telegram.org/api/auth#future-auth-tokens">the documentation for more info »</a></summary>
[IfFlag(6)] public byte[][] logout_tokens;
/// <summary>Used only by official iOS apps for Firebase auth: device token for apple push.</summary>
[IfFlag(8)] public string token;
/// <summary>Used only by official iOS apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification.</summary>
[IfFlag(8)] public bool app_sandbox;
[Flags] public enum Flags : uint
@ -12257,7 +12277,7 @@ namespace TL
public virtual int ID { get; }
/// <summary><a href="https://corefork.telegram.org/api/folders">Folder</a> name</summary>
public virtual string Title { get; }
/// <summary><a href="https://corefork.telegram.org/api/folders">Folder</a> emoticon</summary>
/// <summary>Emoji to use as icon for the folder.</summary>
public virtual string Emoticon { get; }
/// <summary>Pinned chats, <a href="https://corefork.telegram.org/api/folders">folders</a> can have unlimited pinned chats</summary>
public virtual InputPeer[] PinnedPeers { get; }
@ -12274,7 +12294,7 @@ namespace TL
public int id;
/// <summary><a href="https://corefork.telegram.org/api/folders">Folder</a> name</summary>
public string title;
/// <summary><a href="https://corefork.telegram.org/api/folders">Folder</a> emoticon</summary>
/// <summary>Emoji to use as icon for the folder.</summary>
[IfFlag(25)] public string emoticon;
/// <summary>Pinned chats, <a href="https://corefork.telegram.org/api/folders">folders</a> can have unlimited pinned chats</summary>
public InputPeer[] pinned_peers;
@ -12309,36 +12329,47 @@ namespace TL
public override int ID => id;
/// <summary><a href="https://corefork.telegram.org/api/folders">Folder</a> name</summary>
public override string Title => title;
/// <summary><a href="https://corefork.telegram.org/api/folders">Folder</a> emoticon</summary>
/// <summary>Emoji to use as icon for the folder.</summary>
public override string Emoticon => emoticon;
/// <summary>Pinned chats, <a href="https://corefork.telegram.org/api/folders">folders</a> can have unlimited pinned chats</summary>
public override InputPeer[] PinnedPeers => pinned_peers;
/// <summary>Include the following chats in this <a href="https://corefork.telegram.org/api/folders">folder</a></summary>
public override InputPeer[] IncludePeers => include_peers;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/dialogFilterChatlist"/></para></summary>
/// <summary>A folder imported using a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>. <para>See <a href="https://corefork.telegram.org/constructor/dialogFilterChatlist"/></para></summary>
[TLDef(0xD64A04A8)]
public class DialogFilterChatlist : DialogFilterBase
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
/// <summary>ID of the folder</summary>
public int id;
/// <summary>Name of the folder</summary>
public string title;
/// <summary>Emoji to use as icon for the folder.</summary>
[IfFlag(25)] public string emoticon;
/// <summary>Pinned chats, <a href="https://corefork.telegram.org/api/folders">folders</a> can have unlimited pinned chats</summary>
public InputPeer[] pinned_peers;
/// <summary>Chats to include in the folder</summary>
public InputPeer[] include_peers;
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="emoticon"/> has a value</summary>
has_emoticon = 0x2000000,
/// <summary>Whether the current user has created some <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep links »</a> to share the folder as well.</summary>
has_my_invites = 0x4000000,
}
/// <summary>ID of the folder</summary>
public override int ID => id;
/// <summary>Name of the folder</summary>
public override string Title => title;
/// <summary>Emoji to use as icon for the folder.</summary>
public override string Emoticon => emoticon;
/// <summary>Pinned chats, <a href="https://corefork.telegram.org/api/folders">folders</a> can have unlimited pinned chats</summary>
public override InputPeer[] PinnedPeers => pinned_peers;
/// <summary>Chats to include in the folder</summary>
public override InputPeer[] IncludePeers => include_peers;
}
@ -13045,20 +13076,20 @@ namespace TL
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
}
/// <summary>Type of the chat from which the inline query was sent. <para>See <a href="https://corefork.telegram.org/type/InlineQueryPeerType"/></para></summary>
/// <summary>Inline query peer type. <para>See <a href="https://corefork.telegram.org/type/InlineQueryPeerType"/></para></summary>
public enum InlineQueryPeerType : uint
{
///<summary>The inline query was sent in a private chat with the bot itself</summary>
///<summary>Peer type: private chat with the bot itself</summary>
SameBotPM = 0x3081ED9D,
///<summary>The inline query was sent in a private chat</summary>
///<summary>Peer type: private chat</summary>
PM = 0x833C0FAC,
///<summary>The inline query was sent in a <a href="https://corefork.telegram.org/api/channel">chat</a></summary>
///<summary>Peer type: <a href="https://corefork.telegram.org/api/channel">chat</a></summary>
Chat = 0xD766C50A,
///<summary>The inline query was sent in a <a href="https://corefork.telegram.org/api/channel">supergroup</a></summary>
///<summary>Peer type: <a href="https://corefork.telegram.org/api/channel">supergroup</a></summary>
Megagroup = 0x5EC4BE43,
///<summary>The inline query was sent in a <a href="https://corefork.telegram.org/api/channel">channel</a></summary>
///<summary>Peer type: <a href="https://corefork.telegram.org/api/channel">channel</a></summary>
Broadcast = 0x6334EE9A,
///<summary>See <a href="https://corefork.telegram.org/constructor/inlineQueryPeerTypeBotPM"/></summary>
///<summary>Peer type: private chat with a bot.</summary>
BotPM = 0x0E3B2D0C,
}
@ -13127,6 +13158,7 @@ namespace TL
has_approved_by = 0x2,
/// <summary>Field <see cref="about"/> has a value</summary>
has_about = 0x4,
/// <summary>The participant joined by importing a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>.</summary>
via_chatlist = 0x8,
}
}
@ -14212,17 +14244,21 @@ namespace TL
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/type/MessageExtendedMedia"/></para> <para>Derived classes: <see cref="MessageExtendedMediaPreview"/>, <see cref="MessageExtendedMedia"/></para></summary>
/// <summary>Extended media <para>See <a href="https://corefork.telegram.org/type/MessageExtendedMedia"/></para> <para>Derived classes: <see cref="MessageExtendedMediaPreview"/>, <see cref="MessageExtendedMedia"/></para></summary>
public abstract class MessageExtendedMediaBase : IObject { }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageExtendedMediaPreview"/></para></summary>
/// <summary>Extended media preview <para>See <a href="https://corefork.telegram.org/constructor/messageExtendedMediaPreview"/></para></summary>
[TLDef(0xAD628CC8)]
public class MessageExtendedMediaPreview : MessageExtendedMediaBase
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
/// <summary>Width</summary>
[IfFlag(0)] public int w;
/// <summary>Height</summary>
[IfFlag(0)] public int h;
/// <summary>Thumbnail</summary>
[IfFlag(1)] public PhotoSizeBase thumb;
/// <summary>Video duration</summary>
[IfFlag(2)] public int video_duration;
[Flags] public enum Flags : uint
@ -14235,10 +14271,11 @@ namespace TL
has_video_duration = 0x4,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageExtendedMedia"/></para></summary>
/// <summary>Extended media <para>See <a href="https://corefork.telegram.org/constructor/messageExtendedMedia"/></para></summary>
[TLDef(0xEE479C64)]
public class MessageExtendedMedia : MessageExtendedMediaBase
{
/// <summary>Media</summary>
public MessageMedia media;
}
@ -14682,23 +14719,27 @@ namespace TL
public DateTime date;
}
/// <summary><para>See <a href="https://corefork.telegram.org/type/InputChatlist"/></para> <para>Derived classes: <see cref="InputChatlistDialogFilter"/></para></summary>
/// <summary>Represents a folder <para>See <a href="https://corefork.telegram.org/type/InputChatlist"/></para> <para>Derived classes: <see cref="InputChatlistDialogFilter"/></para></summary>
public abstract class InputChatlist : IObject { }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputChatlistDialogFilter"/></para></summary>
/// <summary>Folder ID <para>See <a href="https://corefork.telegram.org/constructor/inputChatlistDialogFilter"/></para></summary>
[TLDef(0xF3E0DA33)]
public class InputChatlistDialogFilter : InputChatlist
{
/// <summary><a href="https://corefork.telegram.org/api/folders">Folder</a> ID</summary>
public int filter_id;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/exportedChatlistInvite"/></para></summary>
/// <summary>Exported <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>. <para>See <a href="https://corefork.telegram.org/constructor/exportedChatlistInvite"/></para></summary>
[TLDef(0x0C5181AC)]
public class ExportedChatlistInvite : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
/// <summary>Name of the link</summary>
public string title;
/// <summary>The <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>.</summary>
public string url;
/// <summary>Peers to import</summary>
public Peer[] peers;
[Flags] public enum Flags : uint
@ -14706,56 +14747,75 @@ namespace TL
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/chatlists.exportedChatlistInvite"/></para></summary>
/// <summary>Info about an exported <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>. <para>See <a href="https://corefork.telegram.org/constructor/chatlists.exportedChatlistInvite"/></para></summary>
[TLDef(0x10E6E3A6)]
public class Chatlists_ExportedChatlistInvite : IObject
{
/// <summary>Folder ID</summary>
public DialogFilterBase filter;
/// <summary>The exported <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>.</summary>
public ExportedChatlistInvite invite;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/chatlists.exportedInvites"/></para></summary>
/// <summary>Info about multiple <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep links »</a>. <para>See <a href="https://corefork.telegram.org/constructor/chatlists.exportedInvites"/></para></summary>
[TLDef(0x10AB6DC7)]
public class Chatlists_ExportedInvites : IObject, IPeerResolver
{
/// <summary>The <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep links »</a>.</summary>
public ExportedChatlistInvite[] invites;
/// <summary>Related chat information</summary>
public Dictionary<long, ChatBase> chats;
/// <summary>Related user information</summary>
public Dictionary<long, User> users;
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
}
/// <summary><para>See <a href="https://corefork.telegram.org/type/chatlists.ChatlistInvite"/></para> <para>Derived classes: <see cref="Chatlists_ChatlistInviteAlready"/>, <see cref="Chatlists_ChatlistInvite"/></para></summary>
/// <summary>Info about a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>. <para>See <a href="https://corefork.telegram.org/type/chatlists.ChatlistInvite"/></para> <para>Derived classes: <see cref="Chatlists_ChatlistInviteAlready"/>, <see cref="Chatlists_ChatlistInvite"/></para></summary>
public abstract class Chatlists_ChatlistInviteBase : IObject
{
/// <summary>Related chat information</summary>
public virtual Dictionary<long, ChatBase> Chats { get; }
/// <summary>Related user information</summary>
public virtual Dictionary<long, User> Users { get; }
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/chatlists.chatlistInviteAlready"/></para></summary>
/// <summary>Updated info about a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a> we already imported. <para>See <a href="https://corefork.telegram.org/constructor/chatlists.chatlistInviteAlready"/></para></summary>
[TLDef(0xFA87F659)]
public class Chatlists_ChatlistInviteAlready : Chatlists_ChatlistInviteBase, IPeerResolver
{
/// <summary>ID of the imported folder</summary>
public int filter_id;
/// <summary>New peers to be imported</summary>
public Peer[] missing_peers;
/// <summary>Peers that were already imported</summary>
public Peer[] already_peers;
/// <summary>Related chat information</summary>
public Dictionary<long, ChatBase> chats;
/// <summary>Related user information</summary>
public Dictionary<long, User> users;
/// <summary>Related chat information</summary>
public override Dictionary<long, ChatBase> Chats => chats;
/// <summary>Related user information</summary>
public override Dictionary<long, User> Users => users;
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/chatlists.chatlistInvite"/></para></summary>
/// <summary>Info about a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>. <para>See <a href="https://corefork.telegram.org/constructor/chatlists.chatlistInvite"/></para></summary>
[TLDef(0x1DCD839D)]
public class Chatlists_ChatlistInvite : Chatlists_ChatlistInviteBase, IPeerResolver
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
/// <summary>Name of the link</summary>
public string title;
/// <summary>Emoji to use as icon for the folder.</summary>
[IfFlag(0)] public string emoticon;
/// <summary>Supergroups and channels to join</summary>
public Peer[] peers;
/// <summary>Related chat information</summary>
public Dictionary<long, ChatBase> chats;
/// <summary>Related user information</summary>
public Dictionary<long, User> users;
[Flags] public enum Flags : uint
@ -14764,29 +14824,37 @@ namespace TL
has_emoticon = 0x1,
}
/// <summary>Related chat information</summary>
public override Dictionary<long, ChatBase> Chats => chats;
/// <summary>Related user information</summary>
public override Dictionary<long, User> Users => users;
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/chatlists.chatlistUpdates"/></para></summary>
/// <summary>Updated information about a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>. <para>See <a href="https://corefork.telegram.org/constructor/chatlists.chatlistUpdates"/></para></summary>
[TLDef(0x93BD878D)]
public class Chatlists_ChatlistUpdates : IObject, IPeerResolver
{
/// <summary>New peers to join</summary>
public Peer[] missing_peers;
/// <summary>Related chat information</summary>
public Dictionary<long, ChatBase> chats;
/// <summary>Related user information</summary>
public Dictionary<long, User> users;
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/bots.botInfo"/></para></summary>
/// <summary>Localized information about a bot. <para>See <a href="https://corefork.telegram.org/constructor/bots.botInfo"/></para></summary>
[TLDef(0xE8A775B0)]
public class Bots_BotInfo : IObject
{
/// <summary>Bot name</summary>
public string name;
/// <summary>Bot about text</summary>
public string about;
/// <summary>Bot description</summary>
public string description;
}
}

View file

@ -303,6 +303,7 @@ namespace TL
/// <param name="phone_number">Phone number</param>
/// <param name="phone_code_hash">Phone code hash returned by <see cref="Auth_SendCode">Auth_SendCode</see></param>
/// <param name="safety_net_token">On Android, a JWS object obtained as described in the <a href="https://corefork.telegram.org/api/auth">auth documentation »</a></param>
/// <param name="ios_push_secret">Secret token received via an apple push notification</param>
public static Task<bool> Auth_RequestFirebaseSms(this Client client, string phone_number, string phone_code_hash, string safety_net_token = null, string ios_push_secret = null)
=> client.Invoke(new Auth_RequestFirebaseSms
{
@ -313,7 +314,9 @@ namespace TL
ios_push_secret = ios_push_secret,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/auth.resetLoginEmail"/> [bots: ✓]</para></summary>
/// <summary>Reset the <a href="https://corefork.telegram.org/api/auth#email-verification">login email »</a>. <para>See <a href="https://corefork.telegram.org/method/auth.resetLoginEmail"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/auth.resetLoginEmail#possible-errors">details</a>)</para></summary>
/// <param name="phone_number">Phone number of the account</param>
/// <param name="phone_code_hash">Phone code hash, obtained as described in the <a href="https://corefork.telegram.org/api/auth">documentation »</a></param>
public static Task<Auth_SentCodeBase> Auth_ResetLoginEmail(this Client client, string phone_number, string phone_code_hash)
=> client.Invoke(new Auth_ResetLoginEmail
{
@ -772,6 +775,7 @@ namespace TL
});
/// <summary>Create and upload a new <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a> <para>See <a href="https://corefork.telegram.org/method/account.uploadWallPaper"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.uploadWallPaper#possible-errors">details</a>)</para></summary>
/// <param name="for_chat">Set this flag when uploading wallpapers to be passed to <see cref="Messages_SetChatWallPaper">Messages_SetChatWallPaper</see>.</param>
/// <param name="file">The JPG/PNG wallpaper</param>
/// <param name="mime_type">MIME type of uploaded wallpaper</param>
/// <param name="settings">Wallpaper settings</param>
@ -1086,9 +1090,9 @@ namespace TL
order = order,
});
/// <summary>Associate or dissociate a purchased <a href="https://fragment.com">fragment.com</a> username to the currently logged-in user. <para>See <a href="https://corefork.telegram.org/method/account.toggleUsername"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.toggleUsername#possible-errors">details</a>)</para></summary>
/// <summary>Activate or deactivate a purchased <a href="https://fragment.com">fragment.com</a> username associated to the currently logged-in user. <para>See <a href="https://corefork.telegram.org/method/account.toggleUsername"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.toggleUsername#possible-errors">details</a>)</para></summary>
/// <param name="username">Username</param>
/// <param name="active">Whether to associate or dissociate it</param>
/// <param name="active">Whether to activate or deactivate it</param>
public static Task<bool> Account_ToggleUsername(this Client client, string username, bool active)
=> client.Invoke(new Account_ToggleUsername
{
@ -3199,7 +3203,7 @@ namespace TL
/// <param name="add_to_recent">Add this reaction to the <a href="https://corefork.telegram.org/api/reactions#recent-reactions">recent reactions list »</a>.</param>
/// <param name="peer">Peer</param>
/// <param name="msg_id">Message ID to react to</param>
/// <param name="reaction">Reaction (a UTF8 emoji)</param>
/// <param name="reaction">A list of reactions</param>
public static Task<UpdatesBase> Messages_SendReaction(this Client client, InputPeer peer, int msg_id, Reaction[] reaction = null, bool big = false, bool add_to_recent = false)
=> client.Invoke(new Messages_SendReaction
{
@ -3527,7 +3531,9 @@ namespace TL
{
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getExtendedMedia"/></para></summary>
/// <summary>Get information about extended media <para>See <a href="https://corefork.telegram.org/method/messages.getExtendedMedia"/></para></summary>
/// <param name="peer">Peer</param>
/// <param name="id">Message IDs</param>
public static Task<UpdatesBase> Messages_GetExtendedMedia(this Client client, InputPeer peer, params int[] id)
=> client.Invoke(new Messages_GetExtendedMedia
{
@ -3639,7 +3645,11 @@ namespace TL
platform = platform,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.setChatWallPaper"/> [bots: ✓]</para></summary>
/// <summary>Set a custom <a href="https://corefork.telegram.org/api/wallpapers">wallpaper »</a> in a specific private chat with another user. <para>See <a href="https://corefork.telegram.org/method/messages.setChatWallPaper"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setChatWallPaper#possible-errors">details</a>)</para></summary>
/// <param name="peer">The private chat where the wallpaper will be set</param>
/// <param name="wallpaper">The <a href="https://corefork.telegram.org/api/wallpapers">wallpaper »</a>, obtained as described in the <a href="https://corefork.telegram.org/api/wallpapers#uploading-wallpapers">wallpaper documentation »</a> or from a <see cref="MessageActionSetChatWallPaper"/> service message.</param>
/// <param name="settings">Wallpaper settings, obtained as described in the <a href="https://corefork.telegram.org/api/wallpapers#uploading-wallpapers">wallpaper documentation »</a> or from <see cref="MessageActionSetChatWallPaper"/>.<c>wallpaper</c>.<c>settings</c>.</param>
/// <param name="id">If the wallpaper was obtained from a <see cref="MessageActionSetChatWallPaper"/> service message, must contain the ID of that message.</param>
public static Task<UpdatesBase> Messages_SetChatWallPaper(this Client client, InputPeer peer, InputWallPaperBase wallpaper = null, int? id = null, WallPaperSettings settings = null)
=> client.Invoke(new Messages_SetChatWallPaper
{
@ -3687,8 +3697,9 @@ namespace TL
limit = limit,
});
/// <summary>Installs a previously uploaded photo as a profile photo. <para>See <a href="https://corefork.telegram.org/method/photos.updateProfilePhoto"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/photos.updateProfilePhoto#possible-errors">details</a>)</para></summary>
/// <summary>Installs a previously uploaded photo as a profile photo. <para>See <a href="https://corefork.telegram.org/method/photos.updateProfilePhoto"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/photos.updateProfilePhoto#possible-errors">details</a>)</para></summary>
/// <param name="fallback">If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings.</param>
/// <param name="bot">Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user.</param>
/// <param name="id">Input photo</param>
public static Task<Photos_Photo> Photos_UpdateProfilePhoto(this Client client, InputPhoto id, InputUserBase bot = null, bool fallback = false)
=> client.Invoke(new Photos_UpdateProfilePhoto
@ -3698,8 +3709,9 @@ namespace TL
id = id,
});
/// <summary>Updates current user profile photo. <para>See <a href="https://corefork.telegram.org/method/photos.uploadProfilePhoto"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/photos.uploadProfilePhoto#possible-errors">details</a>)</para></summary>
/// <summary>Updates current user profile photo. <para>See <a href="https://corefork.telegram.org/method/photos.uploadProfilePhoto"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/photos.uploadProfilePhoto#possible-errors">details</a>)</para></summary>
/// <param name="fallback">If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings.</param>
/// <param name="bot">Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user.</param>
/// <param name="file">Profile photo</param>
/// <param name="video"><a href="https://corefork.telegram.org/api/files#animated-profile-pictures">Animated profile picture</a> video</param>
/// <param name="video_start_ts">Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if <c>video</c> or <c>video_emoji_markup</c> is set.</param>
@ -3971,7 +3983,7 @@ namespace TL
{
});
/// <summary>Internal use <para>See <a href="https://corefork.telegram.org/method/help.getUserInfo"/></para> <para>Possible <see cref="RpcException"/> codes: 403 (<a href="https://corefork.telegram.org/method/help.getUserInfo#possible-errors">details</a>)</para></summary>
/// <summary>Can only be used by TSF members to obtain internal information. <para>See <a href="https://corefork.telegram.org/method/help.getUserInfo"/></para> <para>Possible <see cref="RpcException"/> codes: 403 (<a href="https://corefork.telegram.org/method/help.getUserInfo#possible-errors">details</a>)</para></summary>
/// <param name="user_id">User ID</param>
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/help.userInfoEmpty">help.userInfoEmpty</a></returns>
public static Task<Help_UserInfo> Help_GetUserInfo(this Client client, InputUserBase user_id)
@ -4474,10 +4486,10 @@ namespace TL
order = order,
});
/// <summary>Associate or dissociate a purchased <a href="https://fragment.com">fragment.com</a> username to a <a href="https://corefork.telegram.org/api/channel">supergroup or channel</a>. <para>See <a href="https://corefork.telegram.org/method/channels.toggleUsername"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.toggleUsername#possible-errors">details</a>)</para></summary>
/// <summary>Activate or deactivate a purchased <a href="https://fragment.com">fragment.com</a> username associated to a <a href="https://corefork.telegram.org/api/channel">supergroup or channel</a> we own. <para>See <a href="https://corefork.telegram.org/method/channels.toggleUsername"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.toggleUsername#possible-errors">details</a>)</para></summary>
/// <param name="channel"><a href="https://corefork.telegram.org/api/channel">Supergroup or channel</a></param>
/// <param name="username">Username</param>
/// <param name="active">Whether to associate or dissociate the username</param>
/// <param name="active">Whether to activate or deactivate the username</param>
public static Task<bool> Channels_ToggleUsername(this Client client, InputChannelBase channel, string username, bool active)
=> client.Invoke(new Channels_ToggleUsername
{
@ -4722,8 +4734,10 @@ namespace TL
admin_rights = admin_rights,
});
/// <summary>Set our about text and description (bots only) <para>See <a href="https://corefork.telegram.org/method/bots.setBotInfo"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.setBotInfo#possible-errors">details</a>)</para></summary>
/// <summary>Set localized name, about text and description of a bot (or of the current account, if called by a bot). <para>See <a href="https://corefork.telegram.org/method/bots.setBotInfo"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.setBotInfo#possible-errors">details</a>)</para></summary>
/// <param name="bot">If called by a user, <strong>must</strong> contain the peer of a bot we own.</param>
/// <param name="lang_code">Language code, if left empty update the fallback about text and description</param>
/// <param name="name">New bot name</param>
/// <param name="about">New about text</param>
/// <param name="description">New description</param>
public static Task<bool> Bots_SetBotInfo(this Client client, string lang_code, string about = null, string description = null, InputUserBase bot = null, string name = null)
@ -4737,7 +4751,8 @@ namespace TL
description = description,
});
/// <summary>Get our about text and description (bots only) <para>See <a href="https://corefork.telegram.org/method/bots.getBotInfo"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.getBotInfo#possible-errors">details</a>)</para></summary>
/// <summary>Get localized name, about text and description of a bot (or of the current account, if called by a bot). <para>See <a href="https://corefork.telegram.org/method/bots.getBotInfo"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.getBotInfo#possible-errors">details</a>)</para></summary>
/// <param name="bot">If called by a user, <strong>must</strong> contain the peer of a bot we own.</param>
/// <param name="lang_code">Language code, if left empty this method will return the fallback about text and description.</param>
public static Task<Bots_BotInfo> Bots_GetBotInfo(this Client client, string lang_code, InputUserBase bot = null)
=> client.Invoke(new Bots_GetBotInfo
@ -4747,7 +4762,9 @@ namespace TL
lang_code = lang_code,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/bots.reorderUsernames"/> [bots: ✓]</para></summary>
/// <summary>Reorder usernames associated to a bot we own. <para>See <a href="https://corefork.telegram.org/method/bots.reorderUsernames"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.reorderUsernames#possible-errors">details</a>)</para></summary>
/// <param name="bot">The bot</param>
/// <param name="order">The new order for active usernames. All active usernames must be specified.</param>
public static Task<bool> Bots_ReorderUsernames(this Client client, InputUserBase bot, params string[] order)
=> client.Invoke(new Bots_ReorderUsernames
{
@ -4755,7 +4772,10 @@ namespace TL
order = order,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/bots.toggleUsername"/> [bots: ✓]</para></summary>
/// <summary>Activate or deactivate a purchased <a href="https://fragment.com">fragment.com</a> username associated to a bot we own. <para>See <a href="https://corefork.telegram.org/method/bots.toggleUsername"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.toggleUsername#possible-errors">details</a>)</para></summary>
/// <param name="bot">The bot</param>
/// <param name="username">Username</param>
/// <param name="active">Whether to activate or deactivate it</param>
public static Task<bool> Bots_ToggleUsername(this Client client, InputUserBase bot, string username, bool active)
=> client.Invoke(new Bots_ToggleUsername
{
@ -5472,7 +5492,10 @@ namespace TL
msg_id = msg_id,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/chatlists.exportChatlistInvite"/> [bots: ✓]</para></summary>
/// <summary>Export a <a href="https://corefork.telegram.org/api/folders">folder »</a>, creating a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>. <para>See <a href="https://corefork.telegram.org/method/chatlists.exportChatlistInvite"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/chatlists.exportChatlistInvite#possible-errors">details</a>)</para></summary>
/// <param name="chatlist">The folder to export</param>
/// <param name="title">An optional name for the link</param>
/// <param name="peers">The list of channels, group and supergroups to share with the link. Basic groups will automatically be <a href="https://corefork.telegram.org/api/channel#migration">converted to supergroups</a> when invoking the method.</param>
public static Task<Chatlists_ExportedChatlistInvite> Chatlists_ExportChatlistInvite(this Client client, InputChatlist chatlist, string title, params InputPeer[] peers)
=> client.Invoke(new Chatlists_ExportChatlistInvite
{
@ -5481,7 +5504,9 @@ namespace TL
peers = peers,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/chatlists.deleteExportedInvite"/> [bots: ✓]</para></summary>
/// <summary>Delete a previously created <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>. <para>See <a href="https://corefork.telegram.org/method/chatlists.deleteExportedInvite"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/chatlists.deleteExportedInvite#possible-errors">details</a>)</para></summary>
/// <param name="chatlist">The related folder</param>
/// <param name="slug"><c>slug</c> obtained from the <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>.</param>
public static Task<bool> Chatlists_DeleteExportedInvite(this Client client, InputChatlist chatlist, string slug)
=> client.Invoke(new Chatlists_DeleteExportedInvite
{
@ -5489,7 +5514,11 @@ namespace TL
slug = slug,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/chatlists.editExportedInvite"/> [bots: ✓]</para></summary>
/// <summary>Edit a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>. <para>See <a href="https://corefork.telegram.org/method/chatlists.editExportedInvite"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/chatlists.editExportedInvite#possible-errors">details</a>)</para></summary>
/// <param name="chatlist">Folder ID</param>
/// <param name="slug"><c>slug</c> obtained from the <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>.</param>
/// <param name="title">If set, sets a new name for the link</param>
/// <param name="peers">If set, changes the list of peers shared with the link</param>
public static Task<ExportedChatlistInvite> Chatlists_EditExportedInvite(this Client client, InputChatlist chatlist, string slug, string title = null, InputPeer[] peers = null)
=> client.Invoke(new Chatlists_EditExportedInvite
{
@ -5500,21 +5529,25 @@ namespace TL
peers = peers,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/chatlists.getExportedInvites"/> [bots: ✓]</para></summary>
/// <summary>List all <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep links »</a> associated to a folder <para>See <a href="https://corefork.telegram.org/method/chatlists.getExportedInvites"/> [bots: ✓]</para></summary>
/// <param name="chatlist">The folder</param>
public static Task<Chatlists_ExportedInvites> Chatlists_GetExportedInvites(this Client client, InputChatlist chatlist)
=> client.Invoke(new Chatlists_GetExportedInvites
{
chatlist = chatlist,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/chatlists.checkChatlistInvite"/> [bots: ✓]</para></summary>
/// <summary>Obtain information about a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>. <para>See <a href="https://corefork.telegram.org/method/chatlists.checkChatlistInvite"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/chatlists.checkChatlistInvite#possible-errors">details</a>)</para></summary>
/// <param name="slug"><c>slug</c> obtained from the <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a></param>
public static Task<Chatlists_ChatlistInviteBase> Chatlists_CheckChatlistInvite(this Client client, string slug)
=> client.Invoke(new Chatlists_CheckChatlistInvite
{
slug = slug,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/chatlists.joinChatlistInvite"/> [bots: ✓]</para></summary>
/// <summary>Import a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>, joining some or all the chats in the folder. <para>See <a href="https://corefork.telegram.org/method/chatlists.joinChatlistInvite"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/chatlists.joinChatlistInvite#possible-errors">details</a>)</para></summary>
/// <param name="slug"><c>slug</c> obtained from a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>.</param>
/// <param name="peers">List of new chats to join, fetched using <see cref="Chatlists_CheckChatlistInvite">Chatlists_CheckChatlistInvite</see> and filtered as specified in the <a href="https://corefork.telegram.org/api/folders#shared-folders">documentation »</a>.</param>
public static Task<UpdatesBase> Chatlists_JoinChatlistInvite(this Client client, string slug, params InputPeer[] peers)
=> client.Invoke(new Chatlists_JoinChatlistInvite
{
@ -5522,14 +5555,17 @@ namespace TL
peers = peers,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/chatlists.getChatlistUpdates"/> [bots: ✓]</para></summary>
/// <summary>Fetch new chats associated with an imported <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>. Must be invoked at most every <c>chatlist_update_period</c> seconds (as per the related <a href="https://corefork.telegram.org/api/config#chatlist-update-period">client configuration parameter »</a>). <para>See <a href="https://corefork.telegram.org/method/chatlists.getChatlistUpdates"/> [bots: ✓]</para></summary>
/// <param name="chatlist">The folder</param>
public static Task<Chatlists_ChatlistUpdates> Chatlists_GetChatlistUpdates(this Client client, InputChatlist chatlist)
=> client.Invoke(new Chatlists_GetChatlistUpdates
{
chatlist = chatlist,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/chatlists.joinChatlistUpdates"/> [bots: ✓]</para></summary>
/// <summary>Join channels and supergroups recently added to a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>. <para>See <a href="https://corefork.telegram.org/method/chatlists.joinChatlistUpdates"/> [bots: ✓]</para></summary>
/// <param name="chatlist">The folder</param>
/// <param name="peers">List of new chats to join, fetched using <see cref="Chatlists_GetChatlistUpdates">Chatlists_GetChatlistUpdates</see> and filtered as specified in the <a href="https://corefork.telegram.org/api/folders#shared-folders">documentation »</a>.</param>
public static Task<UpdatesBase> Chatlists_JoinChatlistUpdates(this Client client, InputChatlist chatlist, params InputPeer[] peers)
=> client.Invoke(new Chatlists_JoinChatlistUpdates
{
@ -5537,21 +5573,25 @@ namespace TL
peers = peers,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/chatlists.hideChatlistUpdates"/> [bots: ✓]</para></summary>
/// <summary>Dismiss new pending peers recently added to a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>. <para>See <a href="https://corefork.telegram.org/method/chatlists.hideChatlistUpdates"/> [bots: ✓]</para></summary>
/// <param name="chatlist">The folder</param>
public static Task<bool> Chatlists_HideChatlistUpdates(this Client client, InputChatlist chatlist)
=> client.Invoke(new Chatlists_HideChatlistUpdates
{
chatlist = chatlist,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/chatlists.getLeaveChatlistSuggestions"/> [bots: ✓]</para></summary>
/// <summary>Returns identifiers of pinned or always included chats from a chat folder imported using a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>, which are suggested to be left when the chat folder is deleted. <para>See <a href="https://corefork.telegram.org/method/chatlists.getLeaveChatlistSuggestions"/> [bots: ✓]</para></summary>
/// <param name="chatlist">Folder ID</param>
public static Task<Peer[]> Chatlists_GetLeaveChatlistSuggestions(this Client client, InputChatlist chatlist)
=> client.Invoke(new Chatlists_GetLeaveChatlistSuggestions
{
chatlist = chatlist,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/chatlists.leaveChatlist"/> [bots: ✓]</para></summary>
/// <summary>Delete a folder imported using a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a> <para>See <a href="https://corefork.telegram.org/method/chatlists.leaveChatlist"/> [bots: ✓]</para></summary>
/// <param name="chatlist">Folder ID</param>
/// <param name="peers">Also leave the specified channels and groups</param>
public static Task<UpdatesBase> Chatlists_LeaveChatlist(this Client client, InputChatlist chatlist, params InputPeer[] peers)
=> client.Invoke(new Chatlists_LeaveChatlist
{