API Layer 174: Group boosts & emoji set

This commit is contained in:
Wizou 2024-02-18 17:00:49 +01:00
parent a424219cb6
commit 288bf7ccf7
6 changed files with 104 additions and 47 deletions

2
.github/dev.yml vendored
View file

@ -1,7 +1,7 @@
pr: none
trigger: [ master ]
name: 3.6.6-dev.$(Rev:r)
name: 3.6.7-dev.$(Rev:r)
pool:
vmImage: ubuntu-latest

View file

@ -1,4 +1,4 @@
[![API Layer](https://img.shields.io/badge/API_Layer-173-blueviolet)](https://corefork.telegram.org/methods)
[![API Layer](https://img.shields.io/badge/API_Layer-174-blueviolet)](https://corefork.telegram.org/methods)
[![NuGet version](https://img.shields.io/nuget/v/WTelegramClient?color=00508F)](https://www.nuget.org/packages/WTelegramClient/)
[![NuGet prerelease](https://img.shields.io/nuget/vpre/WTelegramClient?color=C09030&label=dev+nuget)](https://www.nuget.org/packages/WTelegramClient/absoluteLatest)
[![Donate](https://img.shields.io/badge/Help_this_project:-Donate-ff4444)](https://www.buymeacoffee.com/wizou)

View file

@ -1322,7 +1322,7 @@ namespace TL
public override ChatReactions AvailableReactions => available_reactions;
}
/// <summary>Full info about a <a href="https://corefork.telegram.org/api/channel#channels">channel</a>, <a href="https://corefork.telegram.org/api/channel#supergroups">supergroup</a> or <a href="https://corefork.telegram.org/api/channel#gigagroups">gigagroup</a>. <para>See <a href="https://corefork.telegram.org/constructor/channelFull"/></para></summary>
[TLDef(0x0F2BCB6F)]
[TLDef(0x44C054A7)]
public partial class ChannelFull : ChatFullBase
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -1403,6 +1403,9 @@ namespace TL
[IfFlag(36)] public PeerStories stories;
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a></summary>
[IfFlag(39)] public WallPaperBase wallpaper;
[IfFlag(40)] public int boosts_applied;
[IfFlag(41)] public int boosts_unrestrict;
[IfFlag(42)] public StickerSet emojiset;
[Flags] public enum Flags : uint
{
@ -1488,6 +1491,12 @@ namespace TL
view_forum_as_messages = 0x40,
/// <summary>Field <see cref="wallpaper"/> has a value</summary>
has_wallpaper = 0x80,
/// <summary>Field <see cref="boosts_applied"/> has a value</summary>
has_boosts_applied = 0x100,
/// <summary>Field <see cref="boosts_unrestrict"/> has a value</summary>
has_boosts_unrestrict = 0x200,
/// <summary>Field <see cref="emojiset"/> has a value</summary>
has_emojiset = 0x400,
}
/// <summary>ID of the channel</summary>
@ -1661,7 +1670,7 @@ namespace TL
public override Peer Peer => peer_id;
}
/// <summary>A message <para>See <a href="https://corefork.telegram.org/constructor/message"/></para></summary>
[TLDef(0x76BEC211)]
[TLDef(0x1E4C8A69)]
public partial class Message : MessageBase
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -1670,6 +1679,7 @@ namespace TL
public int id;
/// <summary>ID of the sender of the message</summary>
[IfFlag(8)] public Peer from_id;
[IfFlag(29)] public int from_boosts_applied;
/// <summary>Peer ID, the chat where this message was sent</summary>
public Peer peer_id;
/// <summary>Messages fetched from a <a href="https://corefork.telegram.org/api/saved-messages">saved messages dialog »</a> will have <c>peer</c>=<see cref="InputPeerSelf"/> and the <c>saved_peer_id</c> flag set to the ID of the saved dialog.<br/></summary>
@ -1765,6 +1775,8 @@ namespace TL
invert_media = 0x8000000,
/// <summary>Field <see cref="saved_peer_id"/> has a value</summary>
has_saved_peer_id = 0x10000000,
/// <summary>Field <see cref="from_boosts_applied"/> has a value</summary>
has_from_boosts_applied = 0x20000000,
}
/// <summary>ID of the message</summary>
@ -2583,6 +2595,12 @@ namespace TL
/// <summary>Number of undistributed prizes</summary>
public int unclaimed_count;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionBoostApply"/></para></summary>
[TLDef(0xCC02AA6D)]
public class MessageActionBoostApply : MessageAction
{
public int boosts;
}
/// <summary>Chat info. <para>See <a href="https://corefork.telegram.org/type/Dialog"/></para> <para>Derived classes: <see cref="Dialog"/>, <see cref="DialogFolder"/></para></summary>
public abstract class DialogBase : IObject
@ -8611,11 +8629,11 @@ namespace TL
[IfFlag(4)] public Peer saved_from_peer;
/// <summary>Only for messages forwarded to <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a>, contains the original ID of the message in <c>saved_from_peer</c>.</summary>
[IfFlag(4)] public int saved_from_msg_id;
/// <summary>Only for forwarded messages reforwarded to <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a>, contains the sender of the original message (i.e. if user A sends a message, then user B forwards it somewhere, then user C saves it to saved messages, this field will contain the ID of user A and <c>from_id</c> will contain the ID of user B).</summary>
/// <summary>Only for forwarded messages reforwarded to <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a>, contains the sender of the original message (i.e. if user A sends a message, then user B forwards it somewhere, then user C saves it to saved messages, this field will contain the ID of user B and <c>from_id</c> will contain the ID of user A).</summary>
[IfFlag(8)] public Peer saved_from_id;
/// <summary>Only for forwarded messages from users with forward privacy enabled reforwarded to <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a>, contains the sender of the original message (i.e. if user A (fwd privacy enabled) sends a message, then user B forwards it somewhere, then user C saves it to saved messages, this field will contain the name of user A and <c>from_id</c> will contain the ID of user B).</summary>
/// <summary>Only for forwarded messages from users with forward privacy enabled, sent by users with forward privacy enabled, reforwarded to <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a>, contains the sender of the original message (i.e. if user A (fwd privacy enabled) sends a message, then user B (fwd privacy enabled) forwards it somewhere, then user C saves it to saved messages, this field will contain the name of user B and <c>from_name</c> will contain the name of user A).</summary>
[IfFlag(9)] public string saved_from_name;
/// <summary>Only for forwarded messages reforwarded to <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a>, indicates when was the original message sent (i.e. if user A sends a message @ unixtime 1, then user B forwards it somewhere @ unixtime 2, then user C saves it to saved messages @ unixtime 3, this field will contain 1, <c>date</c> will contain 2 and the <c>date</c> of the containing <see cref="Message"/> will contain 3).</summary>
/// <summary>Only for forwarded messages reforwarded to <a href="https://corefork.telegram.org/api/saved-messages">saved messages »</a>, indicates when was the original message sent (i.e. if user A sends a message @ unixtime 1, then user B forwards it somewhere @ unixtime 2, then user C saves it to saved messages @ unixtime 3, this field will contain 2, <c>date</c> will contain 1 and the <c>date</c> of the containing <see cref="Message"/> will contain 3).</summary>
[IfFlag(10)] public DateTime saved_date;
/// <summary>PSA type</summary>
[IfFlag(6)] public string psa_type;
@ -11067,6 +11085,9 @@ namespace TL
/// <summary>New emoji status</summary>
public EmojiStatus new_value;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionChangeEmojiStickerSet"/></para></summary>
[TLDef(0x46D840AB)]
public class ChannelAdminLogEventActionChangeEmojiStickerSet : ChannelAdminLogEventActionChangeStickerSet { }
/// <summary>Admin log event <para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEvent"/></para></summary>
[TLDef(0x1FAD68CD)]
@ -13608,11 +13629,10 @@ namespace TL
}
}
/// <summary>Represents a reply to a <a href="https://corefork.telegram.org/api/stories">story</a> <para>See <a href="https://corefork.telegram.org/constructor/messageReplyStoryHeader"/></para></summary>
[TLDef(0x9C98BFC1)]
[TLDef(0x0E5AF939)]
public class MessageReplyStoryHeader : MessageReplyHeaderBase
{
/// <summary>ID of the user that posted a story</summary>
public long user_id;
public Peer peer;
/// <summary>Story ID</summary>
public int story_id;
}
@ -15503,28 +15523,28 @@ namespace TL
public JsonObject config;
}
/// <summary>Used to fetch information about a <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named Mini App</a> <para>See <a href="https://corefork.telegram.org/type/InputBotApp"/></para> <para>Derived classes: <see cref="InputBotAppID"/>, <see cref="InputBotAppShortName"/></para></summary>
/// <summary>Used to fetch information about a <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct link Mini App</a> <para>See <a href="https://corefork.telegram.org/type/InputBotApp"/></para> <para>Derived classes: <see cref="InputBotAppID"/>, <see cref="InputBotAppShortName"/></para></summary>
public abstract class InputBotApp : IObject { }
/// <summary>Used to fetch information about a <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named Mini App</a> by its ID <para>See <a href="https://corefork.telegram.org/constructor/inputBotAppID"/></para></summary>
/// <summary>Used to fetch information about a <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct link Mini App</a> by its ID <para>See <a href="https://corefork.telegram.org/constructor/inputBotAppID"/></para></summary>
[TLDef(0xA920BD7A)]
public class InputBotAppID : InputBotApp
{
/// <summary><a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named Mini App</a> ID.</summary>
/// <summary><a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct link Mini App</a> ID.</summary>
public long id;
/// <summary>⚠ <b>REQUIRED FIELD</b>. See <see href="https://wiz0u.github.io/WTelegramClient/FAQ#access-hash">how to obtain it</see><br/>Access hash, obtained from the <see cref="BotApp"/>.</summary>
public long access_hash;
}
/// <summary>Used to fetch information about a <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named Mini App</a> by its short name <para>See <a href="https://corefork.telegram.org/constructor/inputBotAppShortName"/></para></summary>
/// <summary>Used to fetch information about a <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct link Mini App</a> by its short name <para>See <a href="https://corefork.telegram.org/constructor/inputBotAppShortName"/></para></summary>
[TLDef(0x908C0407)]
public class InputBotAppShortName : InputBotApp
{
/// <summary>ID of the bot that owns the bot mini app</summary>
public InputUserBase bot_id;
/// <summary>Short name, obtained from a <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named Mini App deep link</a></summary>
/// <summary>Short name, obtained from a <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">Direct Mini App deep link</a></summary>
public string short_name;
}
/// <summary>Contains information about a <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named Mini App</a>. <para>See <a href="https://corefork.telegram.org/constructor/botApp"/></para></summary>
/// <summary>Contains information about a <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct link Mini App</a>. <para>See <a href="https://corefork.telegram.org/constructor/botApp"/></para></summary>
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/botAppNotModified">botAppNotModified</a></remarks>
[TLDef(0x95FCD1D6)]
public class BotApp : IObject
@ -15535,7 +15555,7 @@ namespace TL
public long id;
/// <summary>bot mini app access hash</summary>
public long access_hash;
/// <summary>bot mini app short name, used to generate <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named Mini App deep links</a>.</summary>
/// <summary>bot mini app short name, used to generate <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">Direct Mini App deep links</a>.</summary>
public string short_name;
/// <summary>bot mini app title.</summary>
public string title;
@ -15555,7 +15575,7 @@ namespace TL
}
}
/// <summary>Contains information about a <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named Mini App</a> <para>See <a href="https://corefork.telegram.org/constructor/messages.botApp"/></para></summary>
/// <summary>Contains information about a <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct link Mini App</a> <para>See <a href="https://corefork.telegram.org/constructor/messages.botApp"/></para></summary>
[TLDef(0xEB50ADF5)]
public class Messages_BotApp : IObject
{
@ -15575,9 +15595,9 @@ namespace TL
}
}
/// <summary>Contains the link that must be used to open a <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named Mini App</a>. <para>See <a href="https://corefork.telegram.org/type/AppWebViewResult"/></para> <para>Derived classes: <see cref="AppWebViewResultUrl"/></para></summary>
/// <summary>Contains the link that must be used to open a <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct link Mini App</a>. <para>See <a href="https://corefork.telegram.org/type/AppWebViewResult"/></para> <para>Derived classes: <see cref="AppWebViewResultUrl"/></para></summary>
public abstract class AppWebViewResult : IObject { }
/// <summary>Contains the link that must be used to open a <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named Mini App</a>. <para>See <a href="https://corefork.telegram.org/constructor/appWebViewResultUrl"/></para></summary>
/// <summary>Contains the link that must be used to open a <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct link Mini App</a>. <para>See <a href="https://corefork.telegram.org/constructor/appWebViewResultUrl"/></para></summary>
[TLDef(0x3C1B4F0D)]
public class AppWebViewResultUrl : AppWebViewResult
{
@ -15890,7 +15910,7 @@ namespace TL
public override int ID => id;
}
/// <summary>Represents a <a href="https://corefork.telegram.org/api/stories">story</a>. <para>See <a href="https://corefork.telegram.org/constructor/storyItem"/></para></summary>
[TLDef(0xAF6365A1)]
[TLDef(0x79B26A24)]
public class StoryItem : StoryItemBase
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -15899,6 +15919,7 @@ namespace TL
public int id;
/// <summary>When was the story posted.</summary>
public DateTime date;
[IfFlag(18)] public Peer from_id;
/// <summary>For <a href="https://corefork.telegram.org/api/stories#reposting-stories">reposted stories »</a>, contains info about the original story.</summary>
[IfFlag(17)] public StoryFwdHeader fwd_from;
/// <summary>When does the story expire.</summary>
@ -15952,6 +15973,8 @@ namespace TL
out_ = 0x10000,
/// <summary>Field <see cref="fwd_from"/> has a value</summary>
has_fwd_from = 0x20000,
/// <summary>Field <see cref="from_id"/> has a value</summary>
has_from_id = 0x40000,
}
/// <summary>ID of the story.</summary>
@ -16159,11 +16182,10 @@ namespace TL
}
}
/// <summary>Reply to a story. <para>See <a href="https://corefork.telegram.org/constructor/inputReplyToStory"/></para></summary>
[TLDef(0x15B0F283)]
[TLDef(0x5881323A)]
public class InputReplyToStory : InputReplyTo
{
/// <summary>ID of the user that posted the story.</summary>
public InputUserBase user_id;
public InputPeer peer;
/// <summary>ID of the story to reply to.</summary>
public int story_id;
}
@ -16780,7 +16802,7 @@ namespace TL
}
/// <summary>Contains info about a <a href="https://corefork.telegram.org/api/colors">color palette »</a>. <para>See <a href="https://corefork.telegram.org/constructor/help.peerColorOption"/></para></summary>
[TLDef(0xEF8430AB)]
[TLDef(0xADEC6EBE)]
public class Help_PeerColorOption : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
@ -16793,6 +16815,7 @@ namespace TL
[IfFlag(2)] public Help_PeerColorSetBase dark_colors;
/// <summary>Channels can use this palette only after reaching at least the <a href="https://corefork.telegram.org/api/boost">boost level</a> specified in this field.</summary>
[IfFlag(3)] public int channel_min_level;
[IfFlag(4)] public int group_min_level;
[Flags] public enum Flags : uint
{
@ -16804,6 +16827,8 @@ namespace TL
has_dark_colors = 0x4,
/// <summary>Field <see cref="channel_min_level"/> has a value</summary>
has_channel_min_level = 0x8,
/// <summary>Field <see cref="group_min_level"/> has a value</summary>
has_group_min_level = 0x10,
}
}

View file

@ -642,7 +642,7 @@ namespace TL
public_key = public_key,
});
/// <summary>Sends a Telegram Passport authorization form, effectively sharing data with the service <para>See <a href="https://corefork.telegram.org/method/account.acceptAuthorization"/></para></summary>
/// <summary>Sends a Telegram Passport authorization form, effectively sharing data with the service <para>See <a href="https://corefork.telegram.org/method/account.acceptAuthorization"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.acceptAuthorization#possible-errors">details</a>)</para></summary>
/// <param name="bot_id">Bot ID</param>
/// <param name="scope">Telegram Passport element types requested by the service</param>
/// <param name="public_key">Service's public key</param>
@ -1235,7 +1235,7 @@ namespace TL
hash = hash,
});
/// <summary>Use this method to obtain the online statuses of all contacts with an accessible associated Telegram account. <para>See <a href="https://corefork.telegram.org/method/contacts.getStatuses"/></para></summary>
/// <summary>Use this method to obtain the online statuses of all contacts with an accessible Telegram account. <para>See <a href="https://corefork.telegram.org/method/contacts.getStatuses"/></para></summary>
public static Task<ContactStatus[]> Contacts_GetStatuses(this Client client)
=> client.Invoke(new Contacts_GetStatuses
{
@ -3625,7 +3625,7 @@ namespace TL
id = id,
});
/// <summary>Changes the default value of the Time-To-Live setting, applied to all new chats. <para>See <a href="https://corefork.telegram.org/method/messages.setDefaultHistoryTTL"/> [bots: ✓]</para></summary>
/// <summary>Changes the default value of the Time-To-Live setting, applied to all new chats. <para>See <a href="https://corefork.telegram.org/method/messages.setDefaultHistoryTTL"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setDefaultHistoryTTL#possible-errors">details</a>)</para></summary>
/// <param name="period">The new default Time-To-Live of all messages sent in new chats.</param>
public static Task<bool> Messages_SetDefaultHistoryTTL(this Client client, int period)
=> client.Invoke(new Messages_SetDefaultHistoryTTL
@ -3701,8 +3701,8 @@ namespace TL
peer = peer,
});
/// <summary>Obtain information about a <a href="https://corefork.telegram.org/api/bots/webapps#named-mini-apps">named Mini App</a> <para>See <a href="https://corefork.telegram.org/method/messages.getBotApp"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getBotApp#possible-errors">details</a>)</para></summary>
/// <param name="app">Bot app information obtained from a <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named Mini App deep link »</a>.</param>
/// <summary>Obtain information about a <a href="https://corefork.telegram.org/api/bots/webapps#direct-link-mini-apps">direct link Mini App</a> <para>See <a href="https://corefork.telegram.org/method/messages.getBotApp"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getBotApp#possible-errors">details</a>)</para></summary>
/// <param name="app">Bot app information obtained from a <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">Direct Mini App deep link »</a>.</param>
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
public static Task<Messages_BotApp> Messages_GetBotApp(this Client client, InputBotApp app, long hash = default)
=> client.Invoke(new Messages_GetBotApp
@ -3711,11 +3711,11 @@ namespace TL
hash = hash,
});
/// <summary>Open a <a href="https://corefork.telegram.org/bots/webapps">bot mini app</a> from a <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named Mini App deep link</a>, sending over user information after user confirmation. <para>See <a href="https://corefork.telegram.org/method/messages.requestAppWebView"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.requestAppWebView#possible-errors">details</a>)</para></summary>
/// <param name="write_allowed">Set this flag if the bot is asking permission to send messages to the user as specified in the <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named Mini App deep link</a> docs, and the user agreed.</param>
/// <summary>Open a <a href="https://corefork.telegram.org/bots/webapps">bot mini app</a> from a <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">direct Mini App deep link</a>, sending over user information after user confirmation. <para>See <a href="https://corefork.telegram.org/method/messages.requestAppWebView"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.requestAppWebView#possible-errors">details</a>)</para></summary>
/// <param name="write_allowed">Set this flag if the bot is asking permission to send messages to the user as specified in the <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">direct Mini App deep link</a> docs, and the user agreed.</param>
/// <param name="peer">If the client has clicked on the link in a Telegram chat, pass the chat's peer information; otherwise pass the bot's peer information, instead.</param>
/// <param name="app">The app obtained by invoking <see cref="Messages_GetBotApp">Messages_GetBotApp</see> as specified in the <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named Mini App deep link</a> docs.</param>
/// <param name="start_param">If the <c>startapp</c> query string parameter is present in the <a href="https://corefork.telegram.org/api/links#named-mini-app-links">named Mini App deep link</a>, pass it to <c>start_param</c>.</param>
/// <param name="app">The app obtained by invoking <see cref="Messages_GetBotApp">Messages_GetBotApp</see> as specified in the <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">direct Mini App deep link</a> docs.</param>
/// <param name="start_param">If the <c>startapp</c> query string parameter is present in the <a href="https://corefork.telegram.org/api/links#direct-mini-app-links">direct Mini App deep link</a>, pass it to <c>start_param</c>.</param>
/// <param name="theme_params"><a href="https://corefork.telegram.org/api/bots/webapps#theme-parameters">Theme parameters »</a></param>
/// <param name="platform">Short name of the application; 0-64 English letters, digits, and underscores</param>
public static Task<AppWebViewResult> Messages_RequestAppWebView(this Client client, InputPeer peer, InputBotApp app, string platform, string start_param = null, DataJSON theme_params = null, bool write_allowed = false)
@ -4812,7 +4812,7 @@ namespace TL
hidden = hidden.GetValueOrDefault(),
});
/// <summary>Pin or unpin <a href="https://corefork.telegram.org/api/forum">forum topics</a> <para>See <a href="https://corefork.telegram.org/method/channels.updatePinnedForumTopic"/> [bots: ✓]</para></summary>
/// <summary>Pin or unpin <a href="https://corefork.telegram.org/api/forum">forum topics</a> <para>See <a href="https://corefork.telegram.org/method/channels.updatePinnedForumTopic"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.updatePinnedForumTopic#possible-errors">details</a>)</para></summary>
/// <param name="channel">Supergroup ID</param>
/// <param name="topic_id"><a href="https://corefork.telegram.org/api/forum">Forum topic ID</a></param>
/// <param name="pinned">Whether to pin or unpin the topic</param>
@ -4928,6 +4928,22 @@ namespace TL
emoji_status = emoji_status,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.setBoostsToUnblockRestrictions"/></para></summary>
public static Task<UpdatesBase> Channels_SetBoostsToUnblockRestrictions(this Client client, InputChannelBase channel, int boosts)
=> client.Invoke(new Channels_SetBoostsToUnblockRestrictions
{
channel = channel,
boosts = boosts,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.setEmojiStickers"/></para></summary>
public static Task<bool> Channels_SetEmojiStickers(this Client client, InputChannelBase channel, InputStickerSet stickerset)
=> client.Invoke(new Channels_SetEmojiStickers
{
channel = channel,
stickerset = stickerset,
});
/// <summary>Sends a custom request; for bots only <para>See <a href="https://corefork.telegram.org/method/bots.sendCustomRequest"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/bots.sendCustomRequest#possible-errors">details</a>)</para></summary>
/// <param name="custom_method">The method name</param>
/// <param name="params_">JSON-serialized method parameters</param>
@ -5941,7 +5957,7 @@ namespace TL
chatlist = chatlist,
});
/// <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>
/// <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> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/chatlists.joinChatlistUpdates#possible-errors">details</a>)</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)
@ -5951,7 +5967,7 @@ namespace TL
peers = peers,
});
/// <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>
/// <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> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/chatlists.hideChatlistUpdates#possible-errors">details</a>)</para></summary>
/// <param name="chatlist">The folder</param>
public static Task<bool> Chatlists_HideChatlistUpdates(this Client client, InputChatlist chatlist)
=> client.Invoke(new Chatlists_HideChatlistUpdates
@ -5959,7 +5975,7 @@ namespace TL
chatlist = chatlist,
});
/// <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>
/// <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> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/chatlists.getLeaveChatlistSuggestions#possible-errors">details</a>)</para></summary>
/// <param name="chatlist">Folder ID</param>
public static Task<Peer[]> Chatlists_GetLeaveChatlistSuggestions(this Client client, InputChatlist chatlist)
=> client.Invoke(new Chatlists_GetLeaveChatlistSuggestions
@ -10332,6 +10348,20 @@ namespace TL.Methods
public EmojiStatus emoji_status;
}
[TLDef(0xAD399CEE)]
public class Channels_SetBoostsToUnblockRestrictions : IMethod<UpdatesBase>
{
public InputChannelBase channel;
public int boosts;
}
[TLDef(0x3CD930B7)]
public class Channels_SetEmojiStickers : IMethod<bool>
{
public InputChannelBase channel;
public InputStickerSet stickerset;
}
[TLDef(0xAA2769ED)]
public class Bots_SendCustomRequest : IMethod<DataJSON>
{

View file

@ -6,7 +6,7 @@ namespace TL
{
public static class Layer
{
public const int Version = 173; // fetched 01/02/2024 20:25:01
public const int Version = 174; // fetched 18/02/2024 15:53:49
internal const int SecretChats = 144;
internal const int MTProto2 = 73;
internal const uint VectorCtor = 0x1CB5C415;
@ -136,7 +136,7 @@ namespace TL
[0x0AADFC8F] = typeof(Channel),
[0x17D493D5] = typeof(ChannelForbidden),
[0xC9D31138] = typeof(ChatFull),
[0x0F2BCB6F] = typeof(ChannelFull),
[0x44C054A7] = typeof(ChannelFull),
[0xC02D4007] = typeof(ChatParticipant),
[0xE46BCEE4] = typeof(ChatParticipantCreator),
[0xA0933F5B] = typeof(ChatParticipantAdmin),
@ -145,7 +145,7 @@ namespace TL
[0x37C1011C] = null,//ChatPhotoEmpty
[0x1C6E1C11] = typeof(ChatPhoto),
[0x90A6CA84] = typeof(MessageEmpty),
[0x76BEC211] = typeof(Message),
[0x1E4C8A69] = typeof(Message),
[0x2B085862] = typeof(MessageService),
[0x3DED6320] = null,//MessageMediaEmpty
[0x695150D7] = typeof(MessageMediaPhoto),
@ -204,6 +204,7 @@ namespace TL
[0x678C2E09] = typeof(MessageActionGiftCode),
[0x332BA9ED] = typeof(MessageActionGiveawayLaunch),
[0x2A9FADC5] = typeof(MessageActionGiveawayResults),
[0xCC02AA6D] = typeof(MessageActionBoostApply),
[0xD58A08C6] = typeof(Dialog),
[0x71BD134C] = typeof(DialogFolder),
[0x2331B22D] = typeof(PhotoEmpty),
@ -805,6 +806,7 @@ namespace TL
[0x5E477B25] = typeof(ChannelAdminLogEventActionChangeProfilePeerColor),
[0x31BB5D52] = typeof(ChannelAdminLogEventActionChangeWallpaper),
[0x3EA9FEB1] = typeof(ChannelAdminLogEventActionChangeEmojiStatus),
[0x46D840AB] = typeof(ChannelAdminLogEventActionChangeEmojiStickerSet),
[0x1FAD68CD] = typeof(ChannelAdminLogEvent),
[0xED8AF74D] = typeof(Channels_AdminLogResults),
[0xEA107AE4] = typeof(ChannelAdminLogEventsFilter),
@ -972,7 +974,7 @@ namespace TL
[0xB6C4F543] = typeof(Messages_MessageViews),
[0xA6341782] = typeof(Messages_DiscussionMessage),
[0xAFBC09DB] = typeof(MessageReplyHeader),
[0x9C98BFC1] = typeof(MessageReplyStoryHeader),
[0x0E5AF939] = typeof(MessageReplyStoryHeader),
[0x83D60FC2] = typeof(MessageReplies),
[0xE8FD8014] = typeof(PeerBlocked),
[0x7FE91C14] = typeof(Stats_MessageStats),
@ -1131,7 +1133,7 @@ namespace TL
[0x8D595CD6] = typeof(StoryViews),
[0x51E6EE4F] = typeof(StoryItemDeleted),
[0xFFADC913] = typeof(StoryItemSkipped),
[0xAF6365A1] = typeof(StoryItem),
[0x79B26A24] = typeof(StoryItem),
[0x1158FE3E] = typeof(Stories_AllStoriesNotModified),
[0x6EFC5E81] = typeof(Stories_AllStories),
[0x5DD8C3C8] = typeof(Stories_Stories),
@ -1141,7 +1143,7 @@ namespace TL
[0x59D78FC5] = typeof(Stories_StoryViewsList),
[0xDE9EED1D] = typeof(Stories_StoryViews),
[0x22C0F6D5] = typeof(InputReplyToMessage),
[0x15B0F283] = typeof(InputReplyToStory),
[0x5881323A] = typeof(InputReplyToStory),
[0x3FC9053B] = typeof(ExportedStoryLink),
[0x712E27FD] = typeof(StoriesStealthMode),
[0x03D1EA4E] = typeof(MediaAreaCoordinates),
@ -1174,7 +1176,7 @@ namespace TL
[0xB54B5ACF] = typeof(PeerColor),
[0x26219A58] = typeof(Help_PeerColorSet),
[0x767D61EB] = typeof(Help_PeerColorProfileSet),
[0xEF8430AB] = typeof(Help_PeerColorOption),
[0xADEC6EBE] = typeof(Help_PeerColorOption),
[0x2BA1F5CE] = null,//Help_PeerColorsNotModified
[0x00F8ED08] = typeof(Help_PeerColors),
[0x6090D6D5] = typeof(StoryReaction),

View file

@ -13,7 +13,7 @@
<PackageId>WTelegramClient</PackageId>
<Version>0.0.0</Version>
<Authors>Wizou</Authors>
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 173&#10;&#10;Release Notes:&#10;$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 174&#10;&#10;Release Notes:&#10;$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
<Copyright>Copyright © Olivier Marcoux 2021-2024</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/wiz0u/WTelegramClient</PackageProjectUrl>
@ -21,7 +21,7 @@
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<RepositoryUrl>https://github.com/wiz0u/WTelegramClient.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>Telegram;MTProto;Client;Api;UserBot;TLSharp</PackageTags>
<PackageTags>Telegram;MTProto;Client;Api;UserBot</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageReleaseNotes>$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</PackageReleaseNotes>
<NoWarn>0419;1573;1591;NETSDK1138</NoWarn>