mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-01-07 00:59:57 +01:00
API Layer 179 (changed): emoji categories
This commit is contained in:
parent
4422aad6be
commit
7d388e6e75
2
.github/dev.yml
vendored
2
.github/dev.yml
vendored
|
|
@ -1,7 +1,7 @@
|
|||
pr: none
|
||||
trigger: [ master ]
|
||||
|
||||
name: 4.1.1-dev.$(Rev:r)
|
||||
name: 4.1.2-dev.$(Rev:r)
|
||||
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
[](https://www.nuget.org/packages/WTelegramClient/absoluteLatest)
|
||||
[](https://www.buymeacoffee.com/wizou)
|
||||
|
||||
## _Telegram Client API library written 100% in C# and .NET_
|
||||
## *_Telegram Client API library written 100% in C# and .NET_*
|
||||
|
||||
This library allows you to connect to Telegram and control a user programmatically (or a bot, but [Telegram.Bot](https://github.com/TelegramBots/Telegram.Bot) is much easier for that).
|
||||
All the Telegram Client APIs (MTProto) are supported so you can do everything the user could do with a full Telegram GUI client.
|
||||
|
|
|
|||
|
|
@ -15620,9 +15620,17 @@ namespace TL
|
|||
public long[] document_id;
|
||||
}
|
||||
|
||||
/// <summary>Represents an <a href="https://corefork.telegram.org/api/custom-emoji#emoji-categories">emoji category</a>. <para>See <a href="https://corefork.telegram.org/type/EmojiGroup"/></para> <para>Derived classes: <see cref="EmojiGroup"/></para></summary>
|
||||
public abstract partial class EmojiGroupBase : IObject
|
||||
{
|
||||
/// <summary>Category name, i.e. "Animals", "Flags", "Faces" and so on...</summary>
|
||||
public virtual string Title => default;
|
||||
/// <summary>A single custom emoji used as preview for the category.</summary>
|
||||
public virtual long IconEmojiId => default;
|
||||
}
|
||||
/// <summary>Represents an <a href="https://corefork.telegram.org/api/custom-emoji#emoji-categories">emoji category</a>. <para>See <a href="https://corefork.telegram.org/constructor/emojiGroup"/></para></summary>
|
||||
[TLDef(0x7A9ABDA9)]
|
||||
public sealed partial class EmojiGroup : IObject
|
||||
public partial class EmojiGroup : EmojiGroupBase
|
||||
{
|
||||
/// <summary>Category name, i.e. "Animals", "Flags", "Faces" and so on...</summary>
|
||||
public string title;
|
||||
|
|
@ -15630,6 +15638,26 @@ namespace TL
|
|||
public long icon_emoji_id;
|
||||
/// <summary>A list of UTF-8 emojis, matching the category.</summary>
|
||||
public string[] emoticons;
|
||||
|
||||
/// <summary>Category name, i.e. "Animals", "Flags", "Faces" and so on...</summary>
|
||||
public override string Title => title;
|
||||
/// <summary>A single custom emoji used as preview for the category.</summary>
|
||||
public override long IconEmojiId => icon_emoji_id;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/emojiGroupGreeting"/></para></summary>
|
||||
[TLDef(0x80D26CC7)]
|
||||
public sealed partial class EmojiGroupGreeting : EmojiGroup
|
||||
{
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/emojiGroupPremium"/></para></summary>
|
||||
[TLDef(0x093BCF34)]
|
||||
public sealed partial class EmojiGroupPremium : EmojiGroupBase
|
||||
{
|
||||
public string title;
|
||||
public long icon_emoji_id;
|
||||
|
||||
public override string Title => title;
|
||||
public override long IconEmojiId => icon_emoji_id;
|
||||
}
|
||||
|
||||
/// <summary>Represents a list of <a href="https://corefork.telegram.org/api/custom-emoji#emoji-categories">emoji categories</a>. <para>See <a href="https://corefork.telegram.org/constructor/messages.emojiGroups"/></para></summary>
|
||||
|
|
@ -15640,7 +15668,7 @@ namespace TL
|
|||
/// <summary><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></summary>
|
||||
public int hash;
|
||||
/// <summary>A list of <a href="https://corefork.telegram.org/api/custom-emoji#emoji-categories">emoji categories</a>.</summary>
|
||||
public EmojiGroup[] groups;
|
||||
public EmojiGroupBase[] groups;
|
||||
}
|
||||
|
||||
/// <summary>Styled text with <a href="https://corefork.telegram.org/api/entities">message entities</a> <para>See <a href="https://corefork.telegram.org/constructor/textWithEntities"/></para></summary>
|
||||
|
|
@ -17771,14 +17799,12 @@ namespace TL
|
|||
public sealed partial class Channels_SponsoredMessageReportResultReported : Channels_SponsoredMessageReportResult { }
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/stats.broadcastRevenueStats"/></para></summary>
|
||||
[TLDef(0xD07B4BAD)]
|
||||
[TLDef(0x5407E297)]
|
||||
public sealed partial class Stats_BroadcastRevenueStats : IObject
|
||||
{
|
||||
public StatsGraphBase top_hours_graph;
|
||||
public StatsGraphBase revenue_graph;
|
||||
public long current_balance;
|
||||
public long available_balance;
|
||||
public long overall_revenue;
|
||||
public BroadcastRevenueBalances balances;
|
||||
public double usd_rate;
|
||||
}
|
||||
|
||||
|
|
@ -17859,4 +17885,13 @@ namespace TL
|
|||
has_stories_notify_from = 0x2,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/broadcastRevenueBalances"/></para></summary>
|
||||
[TLDef(0x8438F1C6)]
|
||||
public sealed partial class BroadcastRevenueBalances : IObject
|
||||
{
|
||||
public long current_balance;
|
||||
public long available_balance;
|
||||
public long overall_revenue;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4136,6 +4136,14 @@ namespace TL
|
|||
limit = limit,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getEmojiStickerGroups"/></para></summary>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.emojiGroupsNotModified">messages.emojiGroupsNotModified</a></returns>
|
||||
public static Task<Messages_EmojiGroups> Messages_GetEmojiStickerGroups(this Client client, int hash = default)
|
||||
=> client.Invoke(new Messages_GetEmojiStickerGroups
|
||||
{
|
||||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary>Returns a current state of updates. <para>See <a href="https://corefork.telegram.org/method/updates.getState"/> [bots: ✓]</para></summary>
|
||||
public static Task<Updates_State> Updates_GetState(this Client client)
|
||||
=> client.Invoke(new Updates_GetState
|
||||
|
|
@ -10202,6 +10210,12 @@ namespace TL.Methods
|
|||
public int limit;
|
||||
}
|
||||
|
||||
[TLDef(0x1DD840F5)]
|
||||
public sealed partial class Messages_GetEmojiStickerGroups : IMethod<Messages_EmojiGroups>
|
||||
{
|
||||
public int hash;
|
||||
}
|
||||
|
||||
[TLDef(0xEDD4882A)]
|
||||
public sealed partial class Updates_GetState : IMethod<Updates_State> { }
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace TL
|
|||
{
|
||||
public static partial class Layer
|
||||
{
|
||||
public const int Version = 179; // fetched 27/04/2024 11:14:23
|
||||
public const int Version = 179; // fetched 01/05/2024 09:06:44
|
||||
internal const int SecretChats = 144;
|
||||
internal const int MTProto2 = 73;
|
||||
internal const uint VectorCtor = 0x1CB5C415;
|
||||
|
|
@ -1119,6 +1119,8 @@ namespace TL
|
|||
[0x481EADFA] = null,//EmojiListNotModified
|
||||
[0x7A1E11D1] = typeof(EmojiList),
|
||||
[0x7A9ABDA9] = typeof(EmojiGroup),
|
||||
[0x80D26CC7] = typeof(EmojiGroupGreeting),
|
||||
[0x093BCF34] = typeof(EmojiGroupPremium),
|
||||
[0x6FB4AD87] = null,//Messages_EmojiGroupsNotModified
|
||||
[0x881FB94B] = typeof(Messages_EmojiGroups),
|
||||
[0x751F3146] = typeof(TextWithEntities),
|
||||
|
|
@ -1259,13 +1261,14 @@ namespace TL
|
|||
[0x846F9E42] = typeof(Channels_SponsoredMessageReportResultChooseOption),
|
||||
[0x3E3BCF2F] = typeof(Channels_SponsoredMessageReportResultAdsHidden),
|
||||
[0xAD798849] = typeof(Channels_SponsoredMessageReportResultReported),
|
||||
[0xD07B4BAD] = typeof(Stats_BroadcastRevenueStats),
|
||||
[0x5407E297] = typeof(Stats_BroadcastRevenueStats),
|
||||
[0xEC659737] = typeof(Stats_BroadcastRevenueWithdrawalUrl),
|
||||
[0x557E2CC4] = typeof(BroadcastRevenueTransactionProceeds),
|
||||
[0x5A590978] = typeof(BroadcastRevenueTransactionWithdrawal),
|
||||
[0x42D30D2E] = typeof(BroadcastRevenueTransactionRefund),
|
||||
[0x87158466] = typeof(Stats_BroadcastRevenueTransactions),
|
||||
[0x56E34970] = typeof(ReactionsNotifySettings),
|
||||
[0x8438F1C6] = typeof(BroadcastRevenueBalances),
|
||||
// from TL.Secret:
|
||||
[0x6ABD9782] = typeof(Layer143.DecryptedMessageMediaDocument),
|
||||
[0x91CC4674] = typeof(Layer73.DecryptedMessage),
|
||||
|
|
|
|||
Loading…
Reference in a new issue