mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
API Layer 201: Paid msg service messages, Gifts settings, Business bot rights, sentCodePayment, sponsored peers ...
This commit is contained in:
parent
e6a4b802e7
commit
3f1d4eba92
|
|
@ -1,4 +1,4 @@
|
||||||
[](https://corefork.telegram.org/methods)
|
[](https://corefork.telegram.org/methods)
|
||||||
[](https://www.nuget.org/packages/WTelegramClient/)
|
[](https://www.nuget.org/packages/WTelegramClient/)
|
||||||
[](https://www.nuget.org/packages/WTelegramClient/absoluteLatest)
|
[](https://www.nuget.org/packages/WTelegramClient/absoluteLatest)
|
||||||
[](https://buymeacoffee.com/wizou)
|
[](https://buymeacoffee.com/wizou)
|
||||||
|
|
|
||||||
134
src/TL.Schema.cs
134
src/TL.Schema.cs
|
|
@ -2946,6 +2946,19 @@ namespace TL
|
||||||
has_peer = 0x80,
|
has_peer = 0x80,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionPaidMessagesRefunded"/></para></summary>
|
||||||
|
[TLDef(0xAC1F1FCD)]
|
||||||
|
public sealed partial class MessageActionPaidMessagesRefunded : MessageAction
|
||||||
|
{
|
||||||
|
public int count;
|
||||||
|
public long stars;
|
||||||
|
}
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionPaidMessagesPrice"/></para></summary>
|
||||||
|
[TLDef(0xBCD71419)]
|
||||||
|
public sealed partial class MessageActionPaidMessagesPrice : MessageAction
|
||||||
|
{
|
||||||
|
public long stars;
|
||||||
|
}
|
||||||
|
|
||||||
/// <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>
|
/// <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 partial class DialogBase : IObject
|
public abstract partial class DialogBase : IObject
|
||||||
|
|
@ -3225,6 +3238,13 @@ namespace TL
|
||||||
/// <summary>Authorization info</summary>
|
/// <summary>Authorization info</summary>
|
||||||
public Auth_AuthorizationBase authorization;
|
public Auth_AuthorizationBase authorization;
|
||||||
}
|
}
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/auth.sentCodePaymentRequired"/></para></summary>
|
||||||
|
[TLDef(0xD7CEF980)]
|
||||||
|
public sealed partial class Auth_SentCodePaymentRequired : Auth_SentCodeBase
|
||||||
|
{
|
||||||
|
public string store_product;
|
||||||
|
public string phone_code_hash;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>Object contains info on user authorization. <para>See <a href="https://corefork.telegram.org/type/auth.Authorization"/></para> <para>Derived classes: <see cref="Auth_Authorization"/>, <see cref="Auth_AuthorizationSignUpRequired"/></para></summary>
|
/// <summary>Object contains info on user authorization. <para>See <a href="https://corefork.telegram.org/type/auth.Authorization"/></para> <para>Derived classes: <see cref="Auth_Authorization"/>, <see cref="Auth_AuthorizationSignUpRequired"/></para></summary>
|
||||||
public abstract partial class Auth_AuthorizationBase : IObject { }
|
public abstract partial class Auth_AuthorizationBase : IObject { }
|
||||||
|
|
@ -3565,7 +3585,7 @@ namespace TL
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Extended user info <para>See <a href="https://corefork.telegram.org/constructor/userFull"/></para></summary>
|
/// <summary>Extended user info <para>See <a href="https://corefork.telegram.org/constructor/userFull"/></para></summary>
|
||||||
[TLDef(0xD2234EA0)]
|
[TLDef(0x99E78045)]
|
||||||
public sealed partial class UserFull : IObject
|
public sealed partial class UserFull : IObject
|
||||||
{
|
{
|
||||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
|
|
@ -3630,6 +3650,7 @@ namespace TL
|
||||||
[IfFlag(43)] public StarRefProgram starref_program;
|
[IfFlag(43)] public StarRefProgram starref_program;
|
||||||
[IfFlag(44)] public BotVerification bot_verification;
|
[IfFlag(44)] public BotVerification bot_verification;
|
||||||
[IfFlag(46)] public long send_paid_messages_stars;
|
[IfFlag(46)] public long send_paid_messages_stars;
|
||||||
|
[IfFlag(47)] public DisallowedGiftsSettings disallowed_gifts;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
|
@ -3719,6 +3740,9 @@ namespace TL
|
||||||
has_bot_verification = 0x1000,
|
has_bot_verification = 0x1000,
|
||||||
/// <summary>Field <see cref="send_paid_messages_stars"/> has a value</summary>
|
/// <summary>Field <see cref="send_paid_messages_stars"/> has a value</summary>
|
||||||
has_send_paid_messages_stars = 0x4000,
|
has_send_paid_messages_stars = 0x4000,
|
||||||
|
/// <summary>Field <see cref="disallowed_gifts"/> has a value</summary>
|
||||||
|
has_disallowed_gifts = 0x8000,
|
||||||
|
display_gifts_button = 0x10000,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -5788,6 +5812,12 @@ namespace TL
|
||||||
/// <summary>Whether paid reaction privacy is enabled or disabled.</summary>
|
/// <summary>Whether paid reaction privacy is enabled or disabled.</summary>
|
||||||
public PaidReactionPrivacy private_;
|
public PaidReactionPrivacy private_;
|
||||||
}
|
}
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateSentPhoneCode"/></para></summary>
|
||||||
|
[TLDef(0x504AA18F)]
|
||||||
|
public sealed partial class UpdateSentPhoneCode : Update
|
||||||
|
{
|
||||||
|
public Auth_SentCodeBase sent_code;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>Updates state. <para>See <a href="https://corefork.telegram.org/constructor/updates.state"/></para></summary>
|
/// <summary>Updates state. <para>See <a href="https://corefork.telegram.org/constructor/updates.state"/></para></summary>
|
||||||
[TLDef(0xA56C2A3E)]
|
[TLDef(0xA56C2A3E)]
|
||||||
|
|
@ -14484,12 +14514,13 @@ namespace TL
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Global privacy settings <para>See <a href="https://corefork.telegram.org/constructor/globalPrivacySettings"/></para></summary>
|
/// <summary>Global privacy settings <para>See <a href="https://corefork.telegram.org/constructor/globalPrivacySettings"/></para></summary>
|
||||||
[TLDef(0xC9D8DF1C)]
|
[TLDef(0xFE41B34F)]
|
||||||
public sealed partial class GlobalPrivacySettings : IObject
|
public sealed partial class GlobalPrivacySettings : IObject
|
||||||
{
|
{
|
||||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
[IfFlag(5)] public long noncontact_peers_paid_stars;
|
[IfFlag(5)] public long noncontact_peers_paid_stars;
|
||||||
|
[IfFlag(6)] public DisallowedGiftsSettings disallowed_gifts;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
|
@ -14505,6 +14536,9 @@ namespace TL
|
||||||
new_noncontact_peers_require_premium = 0x10,
|
new_noncontact_peers_require_premium = 0x10,
|
||||||
/// <summary>Field <see cref="noncontact_peers_paid_stars"/> has a value</summary>
|
/// <summary>Field <see cref="noncontact_peers_paid_stars"/> has a value</summary>
|
||||||
has_noncontact_peers_paid_stars = 0x20,
|
has_noncontact_peers_paid_stars = 0x20,
|
||||||
|
/// <summary>Field <see cref="disallowed_gifts"/> has a value</summary>
|
||||||
|
has_disallowed_gifts = 0x40,
|
||||||
|
display_gifts_button = 0x80,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -16118,6 +16152,21 @@ namespace TL
|
||||||
has_prize_description = 0x10,
|
has_prize_description = 0x10,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputStorePaymentAuthCode"/></para></summary>
|
||||||
|
[TLDef(0x9BB2636D)]
|
||||||
|
public sealed partial class InputStorePaymentAuthCode : InputStorePaymentPurpose
|
||||||
|
{
|
||||||
|
public Flags flags;
|
||||||
|
public string phone_number;
|
||||||
|
public string phone_code_hash;
|
||||||
|
public string currency;
|
||||||
|
public long amount;
|
||||||
|
|
||||||
|
[Flags] public enum Flags : uint
|
||||||
|
{
|
||||||
|
restore = 0x1,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>Represents an additional payment method <para>See <a href="https://corefork.telegram.org/constructor/paymentFormMethod"/></para></summary>
|
/// <summary>Represents an additional payment method <para>See <a href="https://corefork.telegram.org/constructor/paymentFormMethod"/></para></summary>
|
||||||
[TLDef(0x88F8F21B)]
|
[TLDef(0x88F8F21B)]
|
||||||
|
|
@ -18644,7 +18693,7 @@ namespace TL
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Contains info about a <a href="https://corefork.telegram.org/api/business#connected-bots">connected business bot »</a>. <para>See <a href="https://corefork.telegram.org/constructor/connectedBot"/></para></summary>
|
/// <summary>Contains info about a <a href="https://corefork.telegram.org/api/business#connected-bots">connected business bot »</a>. <para>See <a href="https://corefork.telegram.org/constructor/connectedBot"/></para></summary>
|
||||||
[TLDef(0xBD068601)]
|
[TLDef(0xCD64636C)]
|
||||||
public sealed partial class ConnectedBot : IObject
|
public sealed partial class ConnectedBot : IObject
|
||||||
{
|
{
|
||||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
|
|
@ -18653,11 +18702,10 @@ namespace TL
|
||||||
public long bot_id;
|
public long bot_id;
|
||||||
/// <summary>Specifies the private chats that a <a href="https://corefork.telegram.org/api/business#connected-bots">connected business bot »</a> may receive messages and interact with.<br/></summary>
|
/// <summary>Specifies the private chats that a <a href="https://corefork.telegram.org/api/business#connected-bots">connected business bot »</a> may receive messages and interact with.<br/></summary>
|
||||||
public BusinessBotRecipients recipients;
|
public BusinessBotRecipients recipients;
|
||||||
|
public BusinessBotRights rights;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
/// <summary>Whether the the bot can reply to messages it receives through the connection</summary>
|
|
||||||
can_reply = 0x1,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -18708,7 +18756,7 @@ namespace TL
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Contains info about a <a href="https://corefork.telegram.org/api/business#connected-bots">bot business connection</a>. <para>See <a href="https://corefork.telegram.org/constructor/botBusinessConnection"/></para></summary>
|
/// <summary>Contains info about a <a href="https://corefork.telegram.org/api/business#connected-bots">bot business connection</a>. <para>See <a href="https://corefork.telegram.org/constructor/botBusinessConnection"/></para></summary>
|
||||||
[TLDef(0x896433B4)]
|
[TLDef(0x8F34B2F5)]
|
||||||
public sealed partial class BotBusinessConnection : IObject
|
public sealed partial class BotBusinessConnection : IObject
|
||||||
{
|
{
|
||||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
|
|
@ -18721,13 +18769,14 @@ namespace TL
|
||||||
public int dc_id;
|
public int dc_id;
|
||||||
/// <summary>When was the connection created.</summary>
|
/// <summary>When was the connection created.</summary>
|
||||||
public DateTime date;
|
public DateTime date;
|
||||||
|
[IfFlag(2)] public BusinessBotRights rights;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
/// <summary>Whether the bot can reply on behalf of the user to messages it receives through the business connection</summary>
|
|
||||||
can_reply = 0x1,
|
|
||||||
/// <summary>Whether this business connection is currently disabled</summary>
|
/// <summary>Whether this business connection is currently disabled</summary>
|
||||||
disabled = 0x2,
|
disabled = 0x2,
|
||||||
|
/// <summary>Field <see cref="rights"/> has a value</summary>
|
||||||
|
has_rights = 0x4,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -20365,4 +20414,73 @@ namespace TL
|
||||||
{
|
{
|
||||||
public long stars_amount;
|
public long stars_amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/businessBotRights"/></para></summary>
|
||||||
|
[TLDef(0xA0624CF7)]
|
||||||
|
public sealed partial class BusinessBotRights : IObject
|
||||||
|
{
|
||||||
|
public Flags flags;
|
||||||
|
|
||||||
|
[Flags] public enum Flags : uint
|
||||||
|
{
|
||||||
|
reply = 0x1,
|
||||||
|
read_messages = 0x2,
|
||||||
|
delete_sent_messages = 0x4,
|
||||||
|
delete_received_messages = 0x8,
|
||||||
|
edit_name = 0x10,
|
||||||
|
edit_bio = 0x20,
|
||||||
|
edit_profile_photo = 0x40,
|
||||||
|
edit_username = 0x80,
|
||||||
|
view_gifts = 0x100,
|
||||||
|
sell_gifts = 0x200,
|
||||||
|
change_gift_settings = 0x400,
|
||||||
|
transfer_and_upgrade_gifts = 0x800,
|
||||||
|
transfer_stars = 0x1000,
|
||||||
|
manage_stories = 0x2000,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/disallowedGiftsSettings"/></para></summary>
|
||||||
|
[TLDef(0x71F276C4)]
|
||||||
|
public sealed partial class DisallowedGiftsSettings : IObject
|
||||||
|
{
|
||||||
|
public Flags flags;
|
||||||
|
|
||||||
|
[Flags] public enum Flags : uint
|
||||||
|
{
|
||||||
|
disallow_unlimited_stargifts = 0x1,
|
||||||
|
disallow_limited_stargifts = 0x2,
|
||||||
|
disallow_unique_stargifts = 0x4,
|
||||||
|
disallow_premium_gifts = 0x8,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/sponsoredPeer"/></para></summary>
|
||||||
|
[TLDef(0xC69708D3)]
|
||||||
|
public sealed partial class SponsoredPeer : IObject
|
||||||
|
{
|
||||||
|
public Flags flags;
|
||||||
|
public byte[] random_id;
|
||||||
|
public Peer peer;
|
||||||
|
[IfFlag(0)] public string sponsor_info;
|
||||||
|
[IfFlag(1)] public string additional_info;
|
||||||
|
|
||||||
|
[Flags] public enum Flags : uint
|
||||||
|
{
|
||||||
|
has_sponsor_info = 0x1,
|
||||||
|
has_additional_info = 0x2,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/contacts.sponsoredPeers"/></para></summary>
|
||||||
|
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/contacts.sponsoredPeersEmpty">contacts.sponsoredPeersEmpty</a></remarks>
|
||||||
|
[TLDef(0xEB032884)]
|
||||||
|
public sealed partial class Contacts_SponsoredPeers : IObject, IPeerResolver
|
||||||
|
{
|
||||||
|
public SponsoredPeer[] peers;
|
||||||
|
public Dictionary<long, ChatBase> chats;
|
||||||
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1293,14 +1293,14 @@ namespace TL
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Connect a <a href="https://corefork.telegram.org/api/business#connected-bots">business bot »</a> to the current account, or to change the current connection settings. <para>See <a href="https://corefork.telegram.org/method/account.updateConnectedBot"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/account.updateConnectedBot#possible-errors">details</a>)</para></summary>
|
/// <summary>Connect a <a href="https://corefork.telegram.org/api/business#connected-bots">business bot »</a> to the current account, or to change the current connection settings. <para>See <a href="https://corefork.telegram.org/method/account.updateConnectedBot"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/account.updateConnectedBot#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="can_reply">Whether the bot can reply to messages it receives from us, on behalf of us using the <a href="https://corefork.telegram.org/api/business#connected-bots">business connection</a>.</param>
|
|
||||||
/// <param name="deleted">Whether to fully disconnect the bot from the current account.</param>
|
/// <param name="deleted">Whether to fully disconnect the bot from the current account.</param>
|
||||||
/// <param name="bot">The bot to connect or disconnect</param>
|
/// <param name="bot">The bot to connect or disconnect</param>
|
||||||
/// <param name="recipients">Configuration for the business connection</param>
|
/// <param name="recipients">Configuration for the business connection</param>
|
||||||
public static Task<UpdatesBase> Account_UpdateConnectedBot(this Client client, InputUserBase bot, InputBusinessBotRecipients recipients, bool can_reply = false, bool deleted = false)
|
public static Task<UpdatesBase> Account_UpdateConnectedBot(this Client client, InputUserBase bot, InputBusinessBotRecipients recipients, BusinessBotRights rights = null, bool deleted = false)
|
||||||
=> client.Invoke(new Account_UpdateConnectedBot
|
=> client.Invoke(new Account_UpdateConnectedBot
|
||||||
{
|
{
|
||||||
flags = (Account_UpdateConnectedBot.Flags)((can_reply ? 0x1 : 0) | (deleted ? 0x2 : 0)),
|
flags = (Account_UpdateConnectedBot.Flags)((rights != null ? 0x1 : 0) | (deleted ? 0x2 : 0)),
|
||||||
|
rights = rights,
|
||||||
bot = bot,
|
bot = bot,
|
||||||
recipients = recipients,
|
recipients = recipients,
|
||||||
});
|
});
|
||||||
|
|
@ -1730,6 +1730,14 @@ namespace TL
|
||||||
{
|
{
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/method/contacts.getSponsoredPeers"/></para></summary>
|
||||||
|
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/contacts.sponsoredPeersEmpty">contacts.sponsoredPeersEmpty</a></returns>
|
||||||
|
public static Task<Contacts_SponsoredPeers> Contacts_GetSponsoredPeers(this Client client, string q)
|
||||||
|
=> client.Invoke(new Contacts_GetSponsoredPeers
|
||||||
|
{
|
||||||
|
q = q,
|
||||||
|
});
|
||||||
|
|
||||||
/// <summary><para>⚠ <b>This method is only for basic Chat</b>. See <see href="https://wiz0u.github.io/WTelegramClient/#terminology">Terminology</see> in the README to understand what this means<br/>Search for a similar method name starting with <c>Channels_</c> if you're dealing with a <see cref="Channel"/></para> Returns the list of messages by their IDs. <para>See <a href="https://corefork.telegram.org/method/messages.getMessages"/> [bots: ✓]</para></summary>
|
/// <summary><para>⚠ <b>This method is only for basic Chat</b>. See <see href="https://wiz0u.github.io/WTelegramClient/#terminology">Terminology</see> in the README to understand what this means<br/>Search for a similar method name starting with <c>Channels_</c> if you're dealing with a <see cref="Channel"/></para> Returns the list of messages by their IDs. <para>See <a href="https://corefork.telegram.org/method/messages.getMessages"/> [bots: ✓]</para></summary>
|
||||||
/// <param name="id">Message ID list</param>
|
/// <param name="id">Message ID list</param>
|
||||||
public static Task<Messages_MessagesBase> Messages_GetMessages(this Client client, params InputMessage[] id)
|
public static Task<Messages_MessagesBase> Messages_GetMessages(this Client client, params InputMessage[] id)
|
||||||
|
|
@ -2424,7 +2432,7 @@ namespace TL
|
||||||
unsave = unsave,
|
unsave = unsave,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Query an inline bot <para>See <a href="https://corefork.telegram.org/method/messages.getInlineBotResults"/></para> <para>Possible <see cref="RpcException"/> codes: 400,406,-503 (<a href="https://corefork.telegram.org/method/messages.getInlineBotResults#possible-errors">details</a>)</para></summary>
|
/// <summary>Query an inline bot <para>See <a href="https://corefork.telegram.org/method/messages.getInlineBotResults"/></para> <para>Possible <see cref="RpcException"/> codes: -503,400,406 (<a href="https://corefork.telegram.org/method/messages.getInlineBotResults#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="bot">The bot to query</param>
|
/// <param name="bot">The bot to query</param>
|
||||||
/// <param name="peer">The currently opened chat</param>
|
/// <param name="peer">The currently opened chat</param>
|
||||||
/// <param name="geo_point">The geolocation, if requested</param>
|
/// <param name="geo_point">The geolocation, if requested</param>
|
||||||
|
|
@ -2544,7 +2552,7 @@ namespace TL
|
||||||
entities = entities,
|
entities = entities,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Press an inline callback button and get a callback answer from the bot <para>See <a href="https://corefork.telegram.org/method/messages.getBotCallbackAnswer"/></para> <para>Possible <see cref="RpcException"/> codes: 400,-503 (<a href="https://corefork.telegram.org/method/messages.getBotCallbackAnswer#possible-errors">details</a>)</para></summary>
|
/// <summary>Press an inline callback button and get a callback answer from the bot <para>See <a href="https://corefork.telegram.org/method/messages.getBotCallbackAnswer"/></para> <para>Possible <see cref="RpcException"/> codes: -503,400 (<a href="https://corefork.telegram.org/method/messages.getBotCallbackAnswer#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="game">Whether this is a "play game" button</param>
|
/// <param name="game">Whether this is a "play game" button</param>
|
||||||
/// <param name="peer">Where was the inline keyboard sent</param>
|
/// <param name="peer">Where was the inline keyboard sent</param>
|
||||||
/// <param name="msg_id">ID of the Message with the inline keyboard</param>
|
/// <param name="msg_id">ID of the Message with the inline keyboard</param>
|
||||||
|
|
@ -4399,36 +4407,30 @@ namespace TL
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Mark a specific <a href="https://corefork.telegram.org/api/sponsored-messages">sponsored message »</a> as read <para>See <a href="https://corefork.telegram.org/method/messages.viewSponsoredMessage"/></para></summary>
|
/// <summary>Mark a specific <a href="https://corefork.telegram.org/api/sponsored-messages">sponsored message »</a> as read <para>See <a href="https://corefork.telegram.org/method/messages.viewSponsoredMessage"/></para></summary>
|
||||||
/// <param name="peer">The channel/bot where the ad is located</param>
|
|
||||||
/// <param name="random_id">The ad's unique ID.</param>
|
/// <param name="random_id">The ad's unique ID.</param>
|
||||||
public static Task<bool> Messages_ViewSponsoredMessage(this Client client, InputPeer peer, byte[] random_id)
|
public static Task<bool> Messages_ViewSponsoredMessage(this Client client, byte[] random_id)
|
||||||
=> client.Invoke(new Messages_ViewSponsoredMessage
|
=> client.Invoke(new Messages_ViewSponsoredMessage
|
||||||
{
|
{
|
||||||
peer = peer,
|
|
||||||
random_id = random_id,
|
random_id = random_id,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Informs the server that the user has interacted with a sponsored message in <a href="https://corefork.telegram.org/api/sponsored-messages#clicking-on-sponsored-messages">one of the ways listed here »</a>. <para>See <a href="https://corefork.telegram.org/method/messages.clickSponsoredMessage"/></para></summary>
|
/// <summary>Informs the server that the user has interacted with a sponsored message in <a href="https://corefork.telegram.org/api/sponsored-messages#clicking-on-sponsored-messages">one of the ways listed here »</a>. <para>See <a href="https://corefork.telegram.org/method/messages.clickSponsoredMessage"/></para></summary>
|
||||||
/// <param name="media">The user clicked on the media</param>
|
/// <param name="media">The user clicked on the media</param>
|
||||||
/// <param name="fullscreen">The user expanded the video to full screen, and then clicked on it.</param>
|
/// <param name="fullscreen">The user expanded the video to full screen, and then clicked on it.</param>
|
||||||
/// <param name="peer">The channel/bot where the ad is located</param>
|
|
||||||
/// <param name="random_id">The ad's unique ID.</param>
|
/// <param name="random_id">The ad's unique ID.</param>
|
||||||
public static Task<bool> Messages_ClickSponsoredMessage(this Client client, InputPeer peer, byte[] random_id, bool media = false, bool fullscreen = false)
|
public static Task<bool> Messages_ClickSponsoredMessage(this Client client, byte[] random_id, bool media = false, bool fullscreen = false)
|
||||||
=> client.Invoke(new Messages_ClickSponsoredMessage
|
=> client.Invoke(new Messages_ClickSponsoredMessage
|
||||||
{
|
{
|
||||||
flags = (Messages_ClickSponsoredMessage.Flags)((media ? 0x1 : 0) | (fullscreen ? 0x2 : 0)),
|
flags = (Messages_ClickSponsoredMessage.Flags)((media ? 0x1 : 0) | (fullscreen ? 0x2 : 0)),
|
||||||
peer = peer,
|
|
||||||
random_id = random_id,
|
random_id = random_id,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Report a <a href="https://corefork.telegram.org/api/sponsored-messages">sponsored message »</a>, see <a href="https://corefork.telegram.org/api/sponsored-messages#reporting-sponsored-messages">here »</a> for more info on the full flow. <para>See <a href="https://corefork.telegram.org/method/messages.reportSponsoredMessage"/></para></summary>
|
/// <summary>Report a <a href="https://corefork.telegram.org/api/sponsored-messages">sponsored message »</a>, see <a href="https://corefork.telegram.org/api/sponsored-messages#reporting-sponsored-messages">here »</a> for more info on the full flow. <para>See <a href="https://corefork.telegram.org/method/messages.reportSponsoredMessage"/></para></summary>
|
||||||
/// <param name="peer">The channel/bot where the ad is located</param>
|
|
||||||
/// <param name="random_id">The ad's unique ID.</param>
|
/// <param name="random_id">The ad's unique ID.</param>
|
||||||
/// <param name="option">Chosen report option, initially an empty string, see <a href="https://corefork.telegram.org/api/sponsored-messages#reporting-sponsored-messages">here »</a> for more info on the full flow.</param>
|
/// <param name="option">Chosen report option, initially an empty string, see <a href="https://corefork.telegram.org/api/sponsored-messages#reporting-sponsored-messages">here »</a> for more info on the full flow.</param>
|
||||||
public static Task<Channels_SponsoredMessageReportResult> Messages_ReportSponsoredMessage(this Client client, InputPeer peer, byte[] random_id, byte[] option)
|
public static Task<Channels_SponsoredMessageReportResult> Messages_ReportSponsoredMessage(this Client client, byte[] random_id, byte[] option)
|
||||||
=> client.Invoke(new Messages_ReportSponsoredMessage
|
=> client.Invoke(new Messages_ReportSponsoredMessage
|
||||||
{
|
{
|
||||||
peer = peer,
|
|
||||||
random_id = random_id,
|
random_id = random_id,
|
||||||
option = option,
|
option = option,
|
||||||
});
|
});
|
||||||
|
|
@ -5999,14 +6001,6 @@ namespace TL
|
||||||
purpose = purpose,
|
purpose = purpose,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase, official apps only. <para>See <a href="https://corefork.telegram.org/method/payments.canPurchasePremium"/></para> <para>Possible <see cref="RpcException"/> codes: 406 (<a href="https://corefork.telegram.org/method/payments.canPurchasePremium#possible-errors">details</a>)</para></summary>
|
|
||||||
/// <param name="purpose">Payment purpose</param>
|
|
||||||
public static Task<bool> Payments_CanPurchasePremium(this Client client, InputStorePaymentPurpose purpose)
|
|
||||||
=> client.Invoke(new Payments_CanPurchasePremium
|
|
||||||
{
|
|
||||||
purpose = purpose,
|
|
||||||
});
|
|
||||||
|
|
||||||
/// <summary>Obtain a list of Telegram Premium <a href="https://corefork.telegram.org/api/giveaways">giveaway/gift code »</a> options. <para>See <a href="https://corefork.telegram.org/method/payments.getPremiumGiftCodeOptions"/></para></summary>
|
/// <summary>Obtain a list of Telegram Premium <a href="https://corefork.telegram.org/api/giveaways">giveaway/gift code »</a> options. <para>See <a href="https://corefork.telegram.org/method/payments.getPremiumGiftCodeOptions"/></para></summary>
|
||||||
/// <param name="boost_peer">The channel that will start the giveaway</param>
|
/// <param name="boost_peer">The channel that will start the giveaway</param>
|
||||||
public static Task<PremiumGiftCodeOption[]> Payments_GetPremiumGiftCodeOptions(this Client client, InputPeer boost_peer = null)
|
public static Task<PremiumGiftCodeOption[]> Payments_GetPremiumGiftCodeOptions(this Client client, InputPeer boost_peer = null)
|
||||||
|
|
@ -6366,6 +6360,13 @@ namespace TL
|
||||||
stargift = stargift,
|
stargift = stargift,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.canPurchaseStore"/></para></summary>
|
||||||
|
public static Task<bool> Payments_CanPurchaseStore(this Client client, InputStorePaymentPurpose purpose)
|
||||||
|
=> client.Invoke(new Payments_CanPurchaseStore
|
||||||
|
{
|
||||||
|
purpose = purpose,
|
||||||
|
});
|
||||||
|
|
||||||
/// <summary>Create a stickerset. <para>See <a href="https://corefork.telegram.org/method/stickers.createStickerSet"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stickers.createStickerSet#possible-errors">details</a>)</para></summary>
|
/// <summary>Create a stickerset. <para>See <a href="https://corefork.telegram.org/method/stickers.createStickerSet"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stickers.createStickerSet#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="masks">Whether this is a mask stickerset</param>
|
/// <param name="masks">Whether this is a mask stickerset</param>
|
||||||
/// <param name="emojis">Whether this is a <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji</a> stickerset.</param>
|
/// <param name="emojis">Whether this is a <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji</a> stickerset.</param>
|
||||||
|
|
@ -8583,16 +8584,17 @@ namespace TL.Methods
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0x43D8521D)]
|
[TLDef(0x66A08C7E)]
|
||||||
public sealed partial class Account_UpdateConnectedBot : IMethod<UpdatesBase>
|
public sealed partial class Account_UpdateConnectedBot : IMethod<UpdatesBase>
|
||||||
{
|
{
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
[IfFlag(0)] public BusinessBotRights rights;
|
||||||
public InputUserBase bot;
|
public InputUserBase bot;
|
||||||
public InputBusinessBotRecipients recipients;
|
public InputBusinessBotRecipients recipients;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
can_reply = 0x1,
|
has_rights = 0x1,
|
||||||
deleted = 0x2,
|
deleted = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -8958,6 +8960,12 @@ namespace TL.Methods
|
||||||
[TLDef(0xDAEDA864)]
|
[TLDef(0xDAEDA864)]
|
||||||
public sealed partial class Contacts_GetBirthdays : IMethod<Contacts_ContactBirthdays> { }
|
public sealed partial class Contacts_GetBirthdays : IMethod<Contacts_ContactBirthdays> { }
|
||||||
|
|
||||||
|
[TLDef(0xB6C8C393)]
|
||||||
|
public sealed partial class Contacts_GetSponsoredPeers : IMethod<Contacts_SponsoredPeers>
|
||||||
|
{
|
||||||
|
public string q;
|
||||||
|
}
|
||||||
|
|
||||||
[TLDef(0x63C66506)]
|
[TLDef(0x63C66506)]
|
||||||
public sealed partial class Messages_GetMessages : IMethod<Messages_MessagesBase>
|
public sealed partial class Messages_GetMessages : IMethod<Messages_MessagesBase>
|
||||||
{
|
{
|
||||||
|
|
@ -11238,18 +11246,16 @@ namespace TL.Methods
|
||||||
[TLDef(0x472455AA)]
|
[TLDef(0x472455AA)]
|
||||||
public sealed partial class Messages_GetPaidReactionPrivacy : IMethod<UpdatesBase> { }
|
public sealed partial class Messages_GetPaidReactionPrivacy : IMethod<UpdatesBase> { }
|
||||||
|
|
||||||
[TLDef(0x673AD8F1)]
|
[TLDef(0x269E3643)]
|
||||||
public sealed partial class Messages_ViewSponsoredMessage : IMethod<bool>
|
public sealed partial class Messages_ViewSponsoredMessage : IMethod<bool>
|
||||||
{
|
{
|
||||||
public InputPeer peer;
|
|
||||||
public byte[] random_id;
|
public byte[] random_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0x0F093465)]
|
[TLDef(0x8235057E)]
|
||||||
public sealed partial class Messages_ClickSponsoredMessage : IMethod<bool>
|
public sealed partial class Messages_ClickSponsoredMessage : IMethod<bool>
|
||||||
{
|
{
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
public InputPeer peer;
|
|
||||||
public byte[] random_id;
|
public byte[] random_id;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
|
|
@ -11259,10 +11265,9 @@ namespace TL.Methods
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0x1AF3DBB8)]
|
[TLDef(0x12CBF0C4)]
|
||||||
public sealed partial class Messages_ReportSponsoredMessage : IMethod<Channels_SponsoredMessageReportResult>
|
public sealed partial class Messages_ReportSponsoredMessage : IMethod<Channels_SponsoredMessageReportResult>
|
||||||
{
|
{
|
||||||
public InputPeer peer;
|
|
||||||
public byte[] random_id;
|
public byte[] random_id;
|
||||||
public byte[] option;
|
public byte[] option;
|
||||||
}
|
}
|
||||||
|
|
@ -12507,12 +12512,6 @@ namespace TL.Methods
|
||||||
public InputStorePaymentPurpose purpose;
|
public InputStorePaymentPurpose purpose;
|
||||||
}
|
}
|
||||||
|
|
||||||
[TLDef(0x9FC19EB6)]
|
|
||||||
public sealed partial class Payments_CanPurchasePremium : IMethod<bool>
|
|
||||||
{
|
|
||||||
public InputStorePaymentPurpose purpose;
|
|
||||||
}
|
|
||||||
|
|
||||||
[TLDef(0x2757BA54)]
|
[TLDef(0x2757BA54)]
|
||||||
public sealed partial class Payments_GetPremiumGiftCodeOptions : IMethod<PremiumGiftCodeOption[]>
|
public sealed partial class Payments_GetPremiumGiftCodeOptions : IMethod<PremiumGiftCodeOption[]>
|
||||||
{
|
{
|
||||||
|
|
@ -12851,6 +12850,12 @@ namespace TL.Methods
|
||||||
public InputSavedStarGift[] stargift;
|
public InputSavedStarGift[] stargift;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[TLDef(0x4FDC5EA7)]
|
||||||
|
public sealed partial class Payments_CanPurchaseStore : IMethod<bool>
|
||||||
|
{
|
||||||
|
public InputStorePaymentPurpose purpose;
|
||||||
|
}
|
||||||
|
|
||||||
[TLDef(0x9021AB67)]
|
[TLDef(0x9021AB67)]
|
||||||
public sealed partial class Stickers_CreateStickerSet : IMethod<Messages_StickerSet>
|
public sealed partial class Stickers_CreateStickerSet : IMethod<Messages_StickerSet>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ namespace TL
|
||||||
{
|
{
|
||||||
public static partial class Layer
|
public static partial class Layer
|
||||||
{
|
{
|
||||||
public const int Version = 200; // fetched 07/03/2025 23:09:37
|
public const int Version = 201; // fetched 26/03/2025 23:35:58
|
||||||
internal const int SecretChats = 144;
|
internal const int SecretChats = 144;
|
||||||
internal const int MTProto2 = 73;
|
internal const int MTProto2 = 73;
|
||||||
internal const uint VectorCtor = 0x1CB5C415;
|
internal const uint VectorCtor = 0x1CB5C415;
|
||||||
|
|
@ -215,6 +215,8 @@ namespace TL
|
||||||
[0xB00C47A2] = typeof(MessageActionPrizeStars),
|
[0xB00C47A2] = typeof(MessageActionPrizeStars),
|
||||||
[0x4717E8A4] = typeof(MessageActionStarGift),
|
[0x4717E8A4] = typeof(MessageActionStarGift),
|
||||||
[0xACDFCB81] = typeof(MessageActionStarGiftUnique),
|
[0xACDFCB81] = typeof(MessageActionStarGiftUnique),
|
||||||
|
[0xAC1F1FCD] = typeof(MessageActionPaidMessagesRefunded),
|
||||||
|
[0xBCD71419] = typeof(MessageActionPaidMessagesPrice),
|
||||||
[0xD58A08C6] = typeof(Dialog),
|
[0xD58A08C6] = typeof(Dialog),
|
||||||
[0x71BD134C] = typeof(DialogFolder),
|
[0x71BD134C] = typeof(DialogFolder),
|
||||||
[0x2331B22D] = typeof(PhotoEmpty),
|
[0x2331B22D] = typeof(PhotoEmpty),
|
||||||
|
|
@ -229,6 +231,7 @@ namespace TL
|
||||||
[0xB2A2F663] = typeof(GeoPoint),
|
[0xB2A2F663] = typeof(GeoPoint),
|
||||||
[0x5E002502] = typeof(Auth_SentCode),
|
[0x5E002502] = typeof(Auth_SentCode),
|
||||||
[0x2390FE44] = typeof(Auth_SentCodeSuccess),
|
[0x2390FE44] = typeof(Auth_SentCodeSuccess),
|
||||||
|
[0xD7CEF980] = typeof(Auth_SentCodePaymentRequired),
|
||||||
[0x2EA2C0D4] = typeof(Auth_Authorization),
|
[0x2EA2C0D4] = typeof(Auth_Authorization),
|
||||||
[0x44747E9A] = typeof(Auth_AuthorizationSignUpRequired),
|
[0x44747E9A] = typeof(Auth_AuthorizationSignUpRequired),
|
||||||
[0xB434E2B8] = typeof(Auth_ExportedAuthorization),
|
[0xB434E2B8] = typeof(Auth_ExportedAuthorization),
|
||||||
|
|
@ -242,7 +245,7 @@ namespace TL
|
||||||
[0xF47741F7] = typeof(PeerSettings),
|
[0xF47741F7] = typeof(PeerSettings),
|
||||||
[0xA437C3ED] = typeof(WallPaper),
|
[0xA437C3ED] = typeof(WallPaper),
|
||||||
[0xE0804116] = typeof(WallPaperNoFile),
|
[0xE0804116] = typeof(WallPaperNoFile),
|
||||||
[0xD2234EA0] = typeof(UserFull),
|
[0x99E78045] = typeof(UserFull),
|
||||||
[0x145ADE0B] = typeof(Contact),
|
[0x145ADE0B] = typeof(Contact),
|
||||||
[0xC13E3C50] = typeof(ImportedContact),
|
[0xC13E3C50] = typeof(ImportedContact),
|
||||||
[0x16D9703B] = typeof(ContactStatus),
|
[0x16D9703B] = typeof(ContactStatus),
|
||||||
|
|
@ -420,6 +423,7 @@ namespace TL
|
||||||
[0xA584B019] = typeof(UpdateStarsRevenueStatus),
|
[0xA584B019] = typeof(UpdateStarsRevenueStatus),
|
||||||
[0x283BD312] = typeof(UpdateBotPurchasedPaidMedia),
|
[0x283BD312] = typeof(UpdateBotPurchasedPaidMedia),
|
||||||
[0x8B725FCE] = typeof(UpdatePaidReactionPrivacy),
|
[0x8B725FCE] = typeof(UpdatePaidReactionPrivacy),
|
||||||
|
[0x504AA18F] = typeof(UpdateSentPhoneCode),
|
||||||
[0xA56C2A3E] = typeof(Updates_State),
|
[0xA56C2A3E] = typeof(Updates_State),
|
||||||
[0x5D75A138] = typeof(Updates_DifferenceEmpty),
|
[0x5D75A138] = typeof(Updates_DifferenceEmpty),
|
||||||
[0x00F49CA0] = typeof(Updates_Difference),
|
[0x00F49CA0] = typeof(Updates_Difference),
|
||||||
|
|
@ -1013,7 +1017,7 @@ namespace TL
|
||||||
[0xD7584C87] = typeof(StatsGroupTopAdmin),
|
[0xD7584C87] = typeof(StatsGroupTopAdmin),
|
||||||
[0x535F779D] = typeof(StatsGroupTopInviter),
|
[0x535F779D] = typeof(StatsGroupTopInviter),
|
||||||
[0xEF7FF916] = typeof(Stats_MegagroupStats),
|
[0xEF7FF916] = typeof(Stats_MegagroupStats),
|
||||||
[0xC9D8DF1C] = typeof(GlobalPrivacySettings),
|
[0xFE41B34F] = typeof(GlobalPrivacySettings),
|
||||||
[0x4203C5EF] = typeof(Help_CountryCode),
|
[0x4203C5EF] = typeof(Help_CountryCode),
|
||||||
[0xC3878E23] = typeof(Help_Country),
|
[0xC3878E23] = typeof(Help_Country),
|
||||||
[0x93CC1F32] = null,//Help_CountriesListNotModified
|
[0x93CC1F32] = null,//Help_CountriesListNotModified
|
||||||
|
|
@ -1117,6 +1121,7 @@ namespace TL
|
||||||
[0xDDDD0F56] = typeof(InputStorePaymentStarsTopup),
|
[0xDDDD0F56] = typeof(InputStorePaymentStarsTopup),
|
||||||
[0x1D741EF7] = typeof(InputStorePaymentStarsGift),
|
[0x1D741EF7] = typeof(InputStorePaymentStarsGift),
|
||||||
[0x751F08FA] = typeof(InputStorePaymentStarsGiveaway),
|
[0x751F08FA] = typeof(InputStorePaymentStarsGiveaway),
|
||||||
|
[0x9BB2636D] = typeof(InputStorePaymentAuthCode),
|
||||||
[0x88F8F21B] = typeof(PaymentFormMethod),
|
[0x88F8F21B] = typeof(PaymentFormMethod),
|
||||||
[0x2DE11AAE] = null,//EmojiStatusEmpty
|
[0x2DE11AAE] = null,//EmojiStatusEmpty
|
||||||
[0xE7FF068A] = typeof(EmojiStatus),
|
[0xE7FF068A] = typeof(EmojiStatus),
|
||||||
|
|
@ -1275,11 +1280,11 @@ namespace TL
|
||||||
[0x01190CF1] = typeof(InputQuickReplyShortcutId),
|
[0x01190CF1] = typeof(InputQuickReplyShortcutId),
|
||||||
[0xC68D6695] = typeof(Messages_QuickReplies),
|
[0xC68D6695] = typeof(Messages_QuickReplies),
|
||||||
[0x5F91EB5B] = null,//Messages_QuickRepliesNotModified
|
[0x5F91EB5B] = null,//Messages_QuickRepliesNotModified
|
||||||
[0xBD068601] = typeof(ConnectedBot),
|
[0xCD64636C] = typeof(ConnectedBot),
|
||||||
[0x17D7F87B] = typeof(Account_ConnectedBots),
|
[0x17D7F87B] = typeof(Account_ConnectedBots),
|
||||||
[0x2AD93719] = typeof(Messages_DialogFilters),
|
[0x2AD93719] = typeof(Messages_DialogFilters),
|
||||||
[0x6C8E1E06] = typeof(Birthday),
|
[0x6C8E1E06] = typeof(Birthday),
|
||||||
[0x896433B4] = typeof(BotBusinessConnection),
|
[0x8F34B2F5] = typeof(BotBusinessConnection),
|
||||||
[0x09C469CD] = typeof(InputBusinessIntro),
|
[0x09C469CD] = typeof(InputBusinessIntro),
|
||||||
[0x5A0A066D] = typeof(BusinessIntro),
|
[0x5A0A066D] = typeof(BusinessIntro),
|
||||||
[0xFAFF629D] = typeof(Messages_MyStickers),
|
[0xFAFF629D] = typeof(Messages_MyStickers),
|
||||||
|
|
@ -1384,6 +1389,11 @@ namespace TL
|
||||||
[0x050A9839] = null,//RequirementToContactEmpty
|
[0x050A9839] = null,//RequirementToContactEmpty
|
||||||
[0xE581E4E9] = typeof(RequirementToContactPremium),
|
[0xE581E4E9] = typeof(RequirementToContactPremium),
|
||||||
[0xB4F67E93] = typeof(RequirementToContactPaidMessages),
|
[0xB4F67E93] = typeof(RequirementToContactPaidMessages),
|
||||||
|
[0xA0624CF7] = typeof(BusinessBotRights),
|
||||||
|
[0x71F276C4] = typeof(DisallowedGiftsSettings),
|
||||||
|
[0xC69708D3] = typeof(SponsoredPeer),
|
||||||
|
[0xEA32B4B1] = null,//Contacts_SponsoredPeersEmpty
|
||||||
|
[0xEB032884] = typeof(Contacts_SponsoredPeers),
|
||||||
// from TL.Secret:
|
// from TL.Secret:
|
||||||
[0x6ABD9782] = typeof(Layer143.DecryptedMessageMediaDocument),
|
[0x6ABD9782] = typeof(Layer143.DecryptedMessageMediaDocument),
|
||||||
[0x020DF5D0] = typeof(Layer101.MessageEntityBlockquote),
|
[0x020DF5D0] = typeof(Layer101.MessageEntityBlockquote),
|
||||||
|
|
@ -1516,6 +1526,7 @@ namespace TL
|
||||||
[typeof(Payments_StarGifts)] = 0xA388A368, //payments.starGiftsNotModified
|
[typeof(Payments_StarGifts)] = 0xA388A368, //payments.starGiftsNotModified
|
||||||
[typeof(PaidReactionPrivacy)] = 0x206AD49E, //paidReactionPrivacyDefault
|
[typeof(PaidReactionPrivacy)] = 0x206AD49E, //paidReactionPrivacyDefault
|
||||||
[typeof(RequirementToContact)] = 0x050A9839, //requirementToContactEmpty
|
[typeof(RequirementToContact)] = 0x050A9839, //requirementToContactEmpty
|
||||||
|
[typeof(Contacts_SponsoredPeers)] = 0xEA32B4B1, //contacts.sponsoredPeersEmpty
|
||||||
[typeof(DecryptedMessageMedia)] = 0x089F5C4A, //decryptedMessageMediaEmpty
|
[typeof(DecryptedMessageMedia)] = 0x089F5C4A, //decryptedMessageMediaEmpty
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
<PackageId>WTelegramClient</PackageId>
|
<PackageId>WTelegramClient</PackageId>
|
||||||
<Version>0.0.0</Version>
|
<Version>0.0.0</Version>
|
||||||
<Authors>Wizou</Authors>
|
<Authors>Wizou</Authors>
|
||||||
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 200
|
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 201
|
||||||
|
|
||||||
Release Notes:
|
Release Notes:
|
||||||
$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
|
$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue