mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-01-20 15:30:25 +01:00
Upgrade to layer 145: Emoji/reactions/stickerset stuff, email verification
This commit is contained in:
parent
222d24c9a6
commit
3f3ff4cb9b
|
|
@ -1,6 +1,6 @@
|
|||
[](https://www.nuget.org/packages/WTelegramClient/)
|
||||
[](https://dev.azure.com/wiz0u/WTelegramClient/_build?definitionId=7)
|
||||
[](https://corefork.telegram.org/methods)
|
||||
[](https://corefork.telegram.org/methods)
|
||||
[](https://dev.azure.com/wiz0u/WTelegramClient/_artifacts/feed/WTelegramClient/NuGet/WTelegramClient)
|
||||
[](https://t.me/WTelegramClient)
|
||||
[](http://t.me/WTelegramBot?start=donate)
|
||||
|
|
|
|||
293
src/TL.Schema.cs
293
src/TL.Schema.cs
|
|
@ -695,7 +695,7 @@ namespace TL
|
|||
public long id;
|
||||
}
|
||||
/// <summary>Indicates info about a certain user <para>See <a href="https://corefork.telegram.org/constructor/user"/></para></summary>
|
||||
[TLDef(0x3FF6ECB0)]
|
||||
[TLDef(0x5D99ADEE)]
|
||||
public partial class User : UserBase
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
|
|
@ -724,6 +724,7 @@ namespace TL
|
|||
[IfFlag(19)] public string bot_inline_placeholder;
|
||||
/// <summary>Language code of the user</summary>
|
||||
[IfFlag(22)] public string lang_code;
|
||||
[IfFlag(30)] public EmojiStatus emoji_status;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -781,6 +782,8 @@ namespace TL
|
|||
premium = 0x10000000,
|
||||
/// <summary>Whether we installed the <a href="https://corefork.telegram.org/api/bots/attach">attachment menu web app</a> offered by this bot</summary>
|
||||
attach_menu_enabled = 0x20000000,
|
||||
/// <summary>Field <see cref="emoji_status"/> has a value</summary>
|
||||
has_emoji_status = 0x40000000,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1070,10 +1073,10 @@ namespace TL
|
|||
/// <summary>IDs of users who requested to join recently</summary>
|
||||
public abstract long[] RecentRequesters { get; }
|
||||
/// <summary>Allowed <a href="https://corefork.telegram.org/api/reactions">message reactions »</a></summary>
|
||||
public abstract string[] AvailableReactions { get; }
|
||||
public abstract ChatReactions AvailableReactions { get; }
|
||||
}
|
||||
/// <summary>Full info about a <a href="https://corefork.telegram.org/api/channel#basic-groups">basic group</a>. <para>See <a href="https://corefork.telegram.org/constructor/chatFull"/></para></summary>
|
||||
[TLDef(0xD18EE226)]
|
||||
[TLDef(0xC9D31138)]
|
||||
public partial class ChatFull : ChatFullBase
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
|
|
@ -1109,7 +1112,7 @@ namespace TL
|
|||
/// <summary>IDs of users who requested to join recently</summary>
|
||||
[IfFlag(17)] public long[] recent_requesters;
|
||||
/// <summary>Allowed <a href="https://corefork.telegram.org/api/reactions">message reactions »</a></summary>
|
||||
[IfFlag(18)] public string[] available_reactions;
|
||||
[IfFlag(18)] public ChatReactions available_reactions;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -1170,10 +1173,10 @@ namespace TL
|
|||
/// <summary>IDs of users who requested to join recently</summary>
|
||||
public override long[] RecentRequesters => recent_requesters;
|
||||
/// <summary>Allowed <a href="https://corefork.telegram.org/api/reactions">message reactions »</a></summary>
|
||||
public override string[] AvailableReactions => available_reactions;
|
||||
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(0xEA68A619)]
|
||||
[TLDef(0xF2355507)]
|
||||
public partial class ChannelFull : ChatFullBase
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
|
|
@ -1249,7 +1252,7 @@ namespace TL
|
|||
/// <summary>Default peer used for sending messages to this channel</summary>
|
||||
[IfFlag(29)] public Peer default_send_as;
|
||||
/// <summary>Allowed <a href="https://corefork.telegram.org/api/reactions">message reactions »</a></summary>
|
||||
[IfFlag(30)] public string[] available_reactions;
|
||||
[IfFlag(30)] public ChatReactions available_reactions;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -1352,7 +1355,7 @@ namespace TL
|
|||
/// <summary>IDs of users who requested to join recently</summary>
|
||||
public override long[] RecentRequesters => recent_requesters;
|
||||
/// <summary>Allowed <a href="https://corefork.telegram.org/api/reactions">message reactions »</a></summary>
|
||||
public override string[] AvailableReactions => available_reactions;
|
||||
public override ChatReactions AvailableReactions => available_reactions;
|
||||
}
|
||||
|
||||
/// <summary>Details of a group member. <para>Derived classes: <see cref="ChatParticipant"/>, <see cref="ChatParticipantCreator"/>, <see cref="ChatParticipantAdmin"/></para> <para>See <a href="https://corefork.telegram.org/type/ChatParticipant"/></para></summary>
|
||||
|
|
@ -3250,7 +3253,7 @@ namespace TL
|
|||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>(boolTrue) if the message must be displayed in a popup.</summary>
|
||||
/// <summary>If set, the message must be displayed in a popup.</summary>
|
||||
popup = 0x1,
|
||||
/// <summary>Field <see cref="inbox_date"/> has a value</summary>
|
||||
has_inbox_date = 0x2,
|
||||
|
|
@ -3419,25 +3422,24 @@ namespace TL
|
|||
public Messages_StickerSet stickerset;
|
||||
}
|
||||
/// <summary>The order of stickersets was changed <para>See <a href="https://corefork.telegram.org/constructor/updateStickerSetsOrder"/></para></summary>
|
||||
[TLDef(0x0BB2D201)]
|
||||
public class UpdateStickerSetsOrder : Update
|
||||
[TLDef(0x0BB2D201, inheritBefore = true)]
|
||||
public class UpdateStickerSetsOrder : UpdateStickerSets
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
/// <summary>New sticker order by sticker ID</summary>
|
||||
public long[] order;
|
||||
}
|
||||
/// <summary>Installed stickersets have changed, the client should refetch them using <a href="https://core.telegram.org/method/messages.getAllStickers">messages.getAllStickers</a> <para>See <a href="https://corefork.telegram.org/constructor/updateStickerSets"/></para></summary>
|
||||
[TLDef(0x31C24808)]
|
||||
public class UpdateStickerSets : Update
|
||||
{
|
||||
public Flags flags;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Whether the updated stickers are mask stickers</summary>
|
||||
masks = 0x1,
|
||||
/// <summary>Whether the updated stickers are custom emoji stickers</summary>
|
||||
emojis = 0x2,
|
||||
}
|
||||
}
|
||||
/// <summary>Installed stickersets have changed, the client should refetch them using <a href="https://core.telegram.org/method/messages.getAllStickers">messages.getAllStickers</a> <para>See <a href="https://corefork.telegram.org/constructor/updateStickerSets"/></para></summary>
|
||||
[TLDef(0x43AE3DEC)]
|
||||
public class UpdateStickerSets : Update { }
|
||||
/// <summary>The saved gif list has changed, the client should refetch it using <a href="https://core.telegram.org/method/messages.getSavedGifs">messages.getSavedGifs</a> <para>See <a href="https://corefork.telegram.org/constructor/updateSavedGifs"/></para></summary>
|
||||
[TLDef(0x9375341E)]
|
||||
public class UpdateSavedGifs : Update { }
|
||||
|
|
@ -4244,6 +4246,32 @@ namespace TL
|
|||
/// <summary>Some featured emoji stickers were marked as read <para>See <a href="https://corefork.telegram.org/constructor/updateReadFeaturedEmojiStickers"/></para></summary>
|
||||
[TLDef(0xFB4C496C)]
|
||||
public class UpdateReadFeaturedEmojiStickers : Update { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateUserEmojiStatus"/></para></summary>
|
||||
[TLDef(0x28373599)]
|
||||
public class UpdateUserEmojiStatus : Update
|
||||
{
|
||||
public long user_id;
|
||||
public EmojiStatus emoji_status;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateRecentEmojiStatuses"/></para></summary>
|
||||
[TLDef(0x30F443DB)]
|
||||
public class UpdateRecentEmojiStatuses : Update { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateRecentReactions"/></para></summary>
|
||||
[TLDef(0x6F7863F4)]
|
||||
public class UpdateRecentReactions : Update { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateMoveStickerSetToTop"/></para></summary>
|
||||
[TLDef(0x86FCCF85)]
|
||||
public class UpdateMoveStickerSetToTop : Update
|
||||
{
|
||||
public Flags flags;
|
||||
public long stickerset;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
masks = 0x1,
|
||||
emojis = 0x2,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Updates state. <para>See <a href="https://corefork.telegram.org/constructor/updates.state"/></para></summary>
|
||||
[TLDef(0xA56C2A3E)]
|
||||
|
|
@ -4669,7 +4697,7 @@ namespace TL
|
|||
}
|
||||
|
||||
/// <summary>Current configuration <para>See <a href="https://corefork.telegram.org/constructor/config"/></para></summary>
|
||||
[TLDef(0x330B4067)]
|
||||
[TLDef(0x232566AC)]
|
||||
public class Config : IObject
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
|
|
@ -4762,6 +4790,7 @@ namespace TL
|
|||
[IfFlag(2)] public int lang_pack_version;
|
||||
/// <summary>Basic language pack version</summary>
|
||||
[IfFlag(2)] public int base_lang_pack_version;
|
||||
[IfFlag(15)] public Reaction reactions_default;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -4795,6 +4824,8 @@ namespace TL
|
|||
pfs_enabled = 0x2000,
|
||||
/// <summary>Whether to forcefully try connecting using IPv6 <see cref="DcOption"/></summary>
|
||||
force_try_ipv6 = 0x4000,
|
||||
/// <summary>Field <see cref="reactions_default"/> has a value</summary>
|
||||
has_reactions_default = 0x8000,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5812,7 +5843,7 @@ namespace TL
|
|||
}
|
||||
|
||||
/// <summary>Configuration for two-factor authorization <para>See <a href="https://corefork.telegram.org/constructor/account.password"/></para></summary>
|
||||
[TLDef(0x185B184F)]
|
||||
[TLDef(0x957B50FB)]
|
||||
public class Account_Password : IObject
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
|
|
@ -5835,6 +5866,7 @@ namespace TL
|
|||
public byte[] secure_random;
|
||||
/// <summary>The 2FA password will be automatically removed at this date, unless the user cancels the operation</summary>
|
||||
[IfFlag(5)] public DateTime pending_reset_date;
|
||||
[IfFlag(6)] public string login_email_pattern;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -5850,6 +5882,8 @@ namespace TL
|
|||
has_email_unconfirmed_pattern = 0x10,
|
||||
/// <summary>Field <see cref="pending_reset_date"/> has a value</summary>
|
||||
has_pending_reset_date = 0x20,
|
||||
/// <summary>Field <see cref="login_email_pattern"/> has a value</summary>
|
||||
has_login_email_pattern = 0x40,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -6061,6 +6095,12 @@ namespace TL
|
|||
/// <summary>Stickers to show when receiving a gifted Telegram Premium subscription <para>See <a href="https://corefork.telegram.org/constructor/inputStickerSetPremiumGifts"/></para></summary>
|
||||
[TLDef(0xC88B3B02)]
|
||||
public class InputStickerSetPremiumGifts : InputStickerSet { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputStickerSetEmojiGenericAnimations"/></para></summary>
|
||||
[TLDef(0x04C4D4CE)]
|
||||
public class InputStickerSetEmojiGenericAnimations : InputStickerSet { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputStickerSetEmojiDefaultStatuses"/></para></summary>
|
||||
[TLDef(0x29D0F5EE)]
|
||||
public class InputStickerSetEmojiDefaultStatuses : InputStickerSet { }
|
||||
|
||||
/// <summary>Represents a stickerset (stickerpack) <para>See <a href="https://corefork.telegram.org/constructor/stickerSet"/></para></summary>
|
||||
[TLDef(0x2DD14EDC)]
|
||||
|
|
@ -7594,6 +7634,34 @@ namespace TL
|
|||
/// <summary>Prefix of the phone number from which the call will be made</summary>
|
||||
public string prefix;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/auth.sentCodeTypeEmailCode"/></para></summary>
|
||||
[TLDef(0x5A159841)]
|
||||
public class Auth_SentCodeTypeEmailCode : Auth_SentCodeType
|
||||
{
|
||||
public Flags flags;
|
||||
public string email_pattern;
|
||||
public int length;
|
||||
[IfFlag(2)] public DateTime next_phone_login_date;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
apple_signin_allowed = 0x1,
|
||||
google_signin_allowed = 0x2,
|
||||
has_next_phone_login_date = 0x4,
|
||||
}
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/auth.sentCodeTypeSetUpEmailRequired"/></para></summary>
|
||||
[TLDef(0xA5491DEA)]
|
||||
public class Auth_SentCodeTypeSetUpEmailRequired : Auth_SentCodeType
|
||||
{
|
||||
public Flags flags;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
apple_signin_allowed = 0x1,
|
||||
google_signin_allowed = 0x2,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Callback answer sent by the bot in response to a button press <para>See <a href="https://corefork.telegram.org/constructor/messages.botCallbackAnswer"/></para></summary>
|
||||
[TLDef(0x36585EA4)]
|
||||
|
|
@ -9707,13 +9775,13 @@ namespace TL
|
|||
public MessageBase message;
|
||||
}
|
||||
/// <summary>The set of allowed <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> for this channel has changed <para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionChangeAvailableReactions"/></para></summary>
|
||||
[TLDef(0x9CF7F76A)]
|
||||
[TLDef(0xBE4E0EF8)]
|
||||
public class ChannelAdminLogEventActionChangeAvailableReactions : ChannelAdminLogEventAction
|
||||
{
|
||||
/// <summary>Previously allowed reaction emojis</summary>
|
||||
public string[] prev_value;
|
||||
public ChatReactions prev_value;
|
||||
/// <summary>New allowed reaction emojis</summary>
|
||||
public string[] new_value;
|
||||
public ChatReactions new_value;
|
||||
}
|
||||
|
||||
/// <summary>Admin log event <para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEvent"/></para></summary>
|
||||
|
|
@ -11487,7 +11555,7 @@ namespace TL
|
|||
[IfFlag(3)] public int outbox_accent_color;
|
||||
/// <summary>The fill to be used as a background for outgoing messages, in RGB24 format. <br/>If just one or two equal colors are provided, describes a solid fill of a background. <br/>If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.<br/>If three or four colors are provided, describes a freeform gradient fill of a background.</summary>
|
||||
[IfFlag(0)] public int[] message_colors;
|
||||
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a></summary>
|
||||
/// <summary><see cref="InputWallPaper"/> or <see cref="InputWallPaper"/> when passing wallpaper files for <a href="https://corefork.telegram.org/api/wallpapers#image-wallpapers">image</a> or <a href="https://corefork.telegram.org/api/wallpapers#pattern-wallpapers">pattern</a> wallpapers, <see cref="InputWallPaperNoFile"/> with <c>id=0</c> otherwise.</summary>
|
||||
[IfFlag(1)] public InputWallPaperBase wallpaper;
|
||||
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> settings.</summary>
|
||||
[IfFlag(1)] public WallPaperSettings wallpaper_settings;
|
||||
|
|
@ -12797,11 +12865,11 @@ namespace TL
|
|||
}
|
||||
|
||||
/// <summary>A list of peers that can be used to send messages in a specific group <para>See <a href="https://corefork.telegram.org/constructor/channels.sendAsPeers"/></para></summary>
|
||||
[TLDef(0x8356CDA9)]
|
||||
[TLDef(0xF496B0C6)]
|
||||
public class Channels_SendAsPeers : IObject, IPeerResolver
|
||||
{
|
||||
/// <summary>Peers that can be used to send messages to the group</summary>
|
||||
public Peer[] peers;
|
||||
public SendAsPeer[] peers;
|
||||
/// <summary>Mentioned chats</summary>
|
||||
public Dictionary<long, ChatBase> chats;
|
||||
/// <summary>Mentioned users</summary>
|
||||
|
|
@ -12855,20 +12923,21 @@ namespace TL
|
|||
}
|
||||
|
||||
/// <summary>Reactions <para>See <a href="https://corefork.telegram.org/constructor/reactionCount"/></para></summary>
|
||||
[TLDef(0x6FB250D1)]
|
||||
[TLDef(0xA3D1CB80)]
|
||||
public class ReactionCount : IObject
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
[IfFlag(0)] public int chosen_order;
|
||||
/// <summary>Reaction (a UTF8 emoji)</summary>
|
||||
public string reaction;
|
||||
public Reaction reaction;
|
||||
/// <summary>NUmber of users that reacted with this emoji</summary>
|
||||
public int count;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Whether the current user sent this reaction</summary>
|
||||
chosen = 0x1,
|
||||
/// <summary>Field <see cref="chosen_order"/> has a value</summary>
|
||||
has_chosen_order = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -12981,7 +13050,7 @@ namespace TL
|
|||
}
|
||||
|
||||
/// <summary>How a certain peer reacted to the message <para>See <a href="https://corefork.telegram.org/constructor/messagePeerReaction"/></para></summary>
|
||||
[TLDef(0x51B67EFF)]
|
||||
[TLDef(0xB156FE9C)]
|
||||
public class MessagePeerReaction : IObject
|
||||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
|
|
@ -12989,7 +13058,7 @@ namespace TL
|
|||
/// <summary>Peer that reacted to the message</summary>
|
||||
public Peer peer_id;
|
||||
/// <summary>Reaction emoji</summary>
|
||||
public string reaction;
|
||||
public Reaction reaction;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -13271,7 +13340,7 @@ namespace TL
|
|||
}
|
||||
|
||||
/// <summary>Telegram Premium promotion information <para>See <a href="https://corefork.telegram.org/constructor/help.premiumPromo"/></para></summary>
|
||||
[TLDef(0x8A4F3C29)]
|
||||
[TLDef(0x5334759C)]
|
||||
public class Help_PremiumPromo : IObject
|
||||
{
|
||||
/// <summary>Description of the current state of the user's Telegram Premium subscription</summary>
|
||||
|
|
@ -13282,10 +13351,7 @@ namespace TL
|
|||
public string[] video_sections;
|
||||
/// <summary>A list of videos</summary>
|
||||
public DocumentBase[] videos;
|
||||
/// <summary>Three-letter ISO 4217 <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a> code</summary>
|
||||
public string currency;
|
||||
/// <summary>Monthly price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of <c>US$ 1.45</c> pass <c>amount = 145</c>. See the exp parameter in <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</summary>
|
||||
public long monthly_amount;
|
||||
public PremiumSubscriptionOption[] period_options;
|
||||
/// <summary>Related user information</summary>
|
||||
public Dictionary<long, User> users;
|
||||
}
|
||||
|
|
@ -13350,4 +13416,157 @@ namespace TL
|
|||
/// <summary>Payment method description</summary>
|
||||
public string title;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/emojiStatus"/></para></summary>
|
||||
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/emojiStatusEmpty">emojiStatusEmpty</a></remarks>
|
||||
[TLDef(0x929B619D)]
|
||||
public class EmojiStatus : IObject
|
||||
{
|
||||
public long document_id;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/emojiStatusUntil"/></para></summary>
|
||||
[TLDef(0xFA30A8C7, inheritBefore = true)]
|
||||
public class EmojiStatusUntil : EmojiStatus
|
||||
{
|
||||
public int until;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/account.emojiStatuses"/></para></summary>
|
||||
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/account.emojiStatusesNotModified">account.emojiStatusesNotModified</a></remarks>
|
||||
[TLDef(0x90C467D1)]
|
||||
public class Account_EmojiStatuses : IObject
|
||||
{
|
||||
public long hash;
|
||||
public EmojiStatus[] statuses;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/Reaction"/></para></summary>
|
||||
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/reactionEmpty">reactionEmpty</a></remarks>
|
||||
public abstract class Reaction : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/reactionEmoji"/></para></summary>
|
||||
[TLDef(0x1B2286B8)]
|
||||
public class ReactionEmoji : Reaction
|
||||
{
|
||||
public string emoticon;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/reactionCustomEmoji"/></para></summary>
|
||||
[TLDef(0x8935FC73)]
|
||||
public class ReactionCustomEmoji : Reaction
|
||||
{
|
||||
public long document_id;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/ChatReactions"/></para></summary>
|
||||
public abstract class ChatReactions : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/chatReactionsNone"/></para></summary>
|
||||
[TLDef(0xEAFC32BC)]
|
||||
public class ChatReactionsNone : ChatReactions { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/chatReactionsAll"/></para></summary>
|
||||
[TLDef(0x52928BCA)]
|
||||
public class ChatReactionsAll : ChatReactions
|
||||
{
|
||||
public Flags flags;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
allow_custom = 0x1,
|
||||
}
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/chatReactionsSome"/></para></summary>
|
||||
[TLDef(0x661D4037)]
|
||||
public class ChatReactionsSome : ChatReactions
|
||||
{
|
||||
public Reaction[] reactions;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messages.reactions"/></para></summary>
|
||||
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.reactionsNotModified">messages.reactionsNotModified</a></remarks>
|
||||
[TLDef(0xEAFDF716)]
|
||||
public class Messages_Reactions : IObject
|
||||
{
|
||||
public long hash;
|
||||
public Reaction[] reactions;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/EmailVerifyPurpose"/></para></summary>
|
||||
public abstract class EmailVerifyPurpose : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/emailVerifyPurposeLoginSetup"/></para></summary>
|
||||
[TLDef(0x4345BE73)]
|
||||
public class EmailVerifyPurposeLoginSetup : EmailVerifyPurpose
|
||||
{
|
||||
public string phone_number;
|
||||
public string phone_code_hash;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/emailVerifyPurposeLoginChange"/></para></summary>
|
||||
[TLDef(0x527D22EB)]
|
||||
public class EmailVerifyPurposeLoginChange : EmailVerifyPurpose { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/emailVerifyPurposePassport"/></para></summary>
|
||||
[TLDef(0xBBF51685)]
|
||||
public class EmailVerifyPurposePassport : EmailVerifyPurpose { }
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/EmailVerification"/></para></summary>
|
||||
public abstract class EmailVerification : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/emailVerificationCode"/></para></summary>
|
||||
[TLDef(0x922E55A9)]
|
||||
public class EmailVerificationCode : EmailVerification
|
||||
{
|
||||
public string code;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/emailVerificationGoogle"/></para></summary>
|
||||
[TLDef(0xDB909EC2)]
|
||||
public class EmailVerificationGoogle : EmailVerification
|
||||
{
|
||||
public string token;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/emailVerificationApple"/></para></summary>
|
||||
[TLDef(0x96D074FD)]
|
||||
public class EmailVerificationApple : EmailVerification
|
||||
{
|
||||
public string token;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/account.emailVerified"/></para></summary>
|
||||
[TLDef(0x2B96CD1B)]
|
||||
public class Account_EmailVerified : IObject
|
||||
{
|
||||
public string email;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/account.emailVerifiedLogin"/></para></summary>
|
||||
[TLDef(0xE1BB0D61, inheritBefore = true)]
|
||||
public class Account_EmailVerifiedLogin : Account_EmailVerified
|
||||
{
|
||||
public Auth_SentCode sent_code;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/premiumSubscriptionOption"/></para></summary>
|
||||
[TLDef(0xB6F11EBE)]
|
||||
public class PremiumSubscriptionOption : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
public int months;
|
||||
public string currency;
|
||||
public long amount;
|
||||
public string bot_url;
|
||||
[IfFlag(0)] public string store_product;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_store_product = 0x1,
|
||||
current = 0x2,
|
||||
can_purchase_upgrade = 0x4,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/sendAsPeer"/></para></summary>
|
||||
[TLDef(0xB81C7034)]
|
||||
public class SendAsPeer : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
public Peer peer;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
premium_required = 0x1,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,12 +127,14 @@ namespace TL
|
|||
/// <param name="phone_code_hash">SMS-message ID, obtained from <a href="https://corefork.telegram.org/method/auth.sendCode">auth.sendCode</a></param>
|
||||
/// <param name="phone_code">Valid numerical code from the SMS-message</param>
|
||||
[Obsolete("Use LoginUserIfNeeded instead of this method. See https://github.com/wiz0u/WTelegramClient/blob/master/FAQ.md#tlsharp")]
|
||||
public static Task<Auth_AuthorizationBase> Auth_SignIn(this Client client, string phone_number, string phone_code_hash, string phone_code)
|
||||
public static Task<Auth_AuthorizationBase> Auth_SignIn(this Client client, string phone_number, string phone_code_hash, string phone_code = null, EmailVerification email_verification = null)
|
||||
=> client.Invoke(new Auth_SignIn
|
||||
{
|
||||
flags = (Auth_SignIn.Flags)((phone_code != null ? 0x1 : 0) | (email_verification != null ? 0x2 : 0)),
|
||||
phone_number = phone_number,
|
||||
phone_code_hash = phone_code_hash,
|
||||
phone_code = phone_code,
|
||||
email_verification = email_verification,
|
||||
});
|
||||
|
||||
/// <summary>Logs out the user. <para>See <a href="https://corefork.telegram.org/method/auth.logOut"/> [bots: ✓]</para></summary>
|
||||
|
|
@ -640,20 +642,19 @@ namespace TL
|
|||
|
||||
/// <summary>Send the verification email code for telegram <a href="https://corefork.telegram.org/passport">passport</a>. <para>See <a href="https://corefork.telegram.org/method/account.sendVerifyEmailCode"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.sendVerifyEmailCode#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="email">The email where to send the code</param>
|
||||
public static Task<Account_SentEmailCode> Account_SendVerifyEmailCode(this Client client, string email)
|
||||
public static Task<Account_SentEmailCode> Account_SendVerifyEmailCode(this Client client, EmailVerifyPurpose purpose, string email)
|
||||
=> client.Invoke(new Account_SendVerifyEmailCode
|
||||
{
|
||||
purpose = purpose,
|
||||
email = email,
|
||||
});
|
||||
|
||||
/// <summary>Verify an email address for telegram <a href="https://corefork.telegram.org/passport">passport</a>. <para>See <a href="https://corefork.telegram.org/method/account.verifyEmail"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.verifyEmail#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="email">The email to verify</param>
|
||||
/// <param name="code">The verification code that was received</param>
|
||||
public static Task<bool> Account_VerifyEmail(this Client client, string email, string code)
|
||||
public static Task<Account_EmailVerified> Account_VerifyEmail(this Client client, EmailVerifyPurpose purpose, EmailVerification verification)
|
||||
=> client.Invoke(new Account_VerifyEmail
|
||||
{
|
||||
email = email,
|
||||
code = code,
|
||||
purpose = purpose,
|
||||
verification = verification,
|
||||
});
|
||||
|
||||
/// <summary>Initialize account takeout session <para>See <a href="https://corefork.telegram.org/method/account.initTakeoutSession"/></para> <para>Possible <see cref="RpcException"/> codes: 420 (<a href="https://corefork.telegram.org/method/account.initTakeoutSession#possible-errors">details</a>)</para></summary>
|
||||
|
|
@ -789,7 +790,7 @@ namespace TL
|
|||
});
|
||||
|
||||
/// <summary>Upload theme <para>See <a href="https://corefork.telegram.org/method/account.uploadTheme"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.uploadTheme#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="file">Theme file uploaded as described in <a href="https://corefork.telegram.org/api/files">files »</a></param>
|
||||
/// <param name="file"><a href="https://corefork.telegram.org/api/themes#uploading-theme-files">Previously uploaded</a> theme file with platform-specific colors for UI components, can be left unset when creating themes that only modify the wallpaper or accent colors.</param>
|
||||
/// <param name="thumb">Thumbnail</param>
|
||||
/// <param name="file_name">File name</param>
|
||||
/// <param name="mime_type">MIME type, must be <c>application/x-tgtheme-{format}</c>, where <c>format</c> depends on the client</param>
|
||||
|
|
@ -804,7 +805,7 @@ namespace TL
|
|||
});
|
||||
|
||||
/// <summary>Create a theme <para>See <a href="https://corefork.telegram.org/method/account.createTheme"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.createTheme#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="slug">Unique theme ID</param>
|
||||
/// <param name="slug">Unique theme ID used to generate <a href="https://corefork.telegram.org/api/links#theme-links">theme deep links</a>, can be empty to autogenerate a random ID.</param>
|
||||
/// <param name="title">Theme name</param>
|
||||
/// <param name="document">Theme file</param>
|
||||
/// <param name="settings">Theme settings</param>
|
||||
|
|
@ -1007,6 +1008,35 @@ namespace TL
|
|||
mime_type = mime_type,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.updateEmojiStatus"/></para></summary>
|
||||
public static Task<bool> Account_UpdateEmojiStatus(this Client client, EmojiStatus emoji_status)
|
||||
=> client.Invoke(new Account_UpdateEmojiStatus
|
||||
{
|
||||
emoji_status = emoji_status,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.getDefaultEmojiStatuses"/></para></summary>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/account.emojiStatusesNotModified">account.emojiStatusesNotModified</a></returns>
|
||||
public static Task<Account_EmojiStatuses> Account_GetDefaultEmojiStatuses(this Client client, long hash = default)
|
||||
=> client.Invoke(new Account_GetDefaultEmojiStatuses
|
||||
{
|
||||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.getRecentEmojiStatuses"/></para></summary>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/account.emojiStatusesNotModified">account.emojiStatusesNotModified</a></returns>
|
||||
public static Task<Account_EmojiStatuses> Account_GetRecentEmojiStatuses(this Client client, long hash = default)
|
||||
=> client.Invoke(new Account_GetRecentEmojiStatuses
|
||||
{
|
||||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.clearRecentEmojiStatuses"/></para></summary>
|
||||
public static Task<bool> Account_ClearRecentEmojiStatuses(this Client client)
|
||||
=> client.Invoke(new Account_ClearRecentEmojiStatuses
|
||||
{
|
||||
});
|
||||
|
||||
/// <summary>Returns basic user info according to their identifiers. <para>See <a href="https://corefork.telegram.org/method/users.getUsers"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/users.getUsers#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="id">List of user identifiers</param>
|
||||
public static Task<UserBase[]> Users_GetUsers(this Client client, params InputUserBase[] id)
|
||||
|
|
@ -1387,10 +1417,10 @@ namespace TL
|
|||
/// <param name="entities">Message <a href="https://corefork.telegram.org/api/entities">entities</a> for sending styled text</param>
|
||||
/// <param name="schedule_date">Scheduled message date for <a href="https://corefork.telegram.org/api/scheduled-messages">scheduled messages</a></param>
|
||||
/// <param name="send_as">Send this message as the specified peer</param>
|
||||
public static Task<UpdatesBase> Messages_SendMessage(this Client client, InputPeer peer, string message, long random_id, bool no_webpage = false, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, int? reply_to_msg_id = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null, InputPeer send_as = null)
|
||||
public static Task<UpdatesBase> Messages_SendMessage(this Client client, InputPeer peer, string message, long random_id, bool no_webpage = false, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = false, int? reply_to_msg_id = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null, InputPeer send_as = null)
|
||||
=> client.Invoke(new Messages_SendMessage
|
||||
{
|
||||
flags = (Messages_SendMessage.Flags)((no_webpage ? 0x2 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0)),
|
||||
flags = (Messages_SendMessage.Flags)((no_webpage ? 0x2 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (update_stickersets_order ? 0x8000 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0)),
|
||||
peer = peer,
|
||||
reply_to_msg_id = reply_to_msg_id.GetValueOrDefault(),
|
||||
message = message,
|
||||
|
|
@ -1415,10 +1445,10 @@ namespace TL
|
|||
/// <param name="entities">Message <a href="https://corefork.telegram.org/api/entities">entities</a> for styled text</param>
|
||||
/// <param name="schedule_date">Scheduled message date for <a href="https://corefork.telegram.org/api/scheduled-messages">scheduled messages</a></param>
|
||||
/// <param name="send_as">Send this message as the specified peer</param>
|
||||
public static Task<UpdatesBase> Messages_SendMedia(this Client client, InputPeer peer, InputMedia media, string message, long random_id, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, int? reply_to_msg_id = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null, InputPeer send_as = null)
|
||||
public static Task<UpdatesBase> Messages_SendMedia(this Client client, InputPeer peer, InputMedia media, string message, long random_id, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = false, int? reply_to_msg_id = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null, InputPeer send_as = null)
|
||||
=> client.Invoke(new Messages_SendMedia
|
||||
{
|
||||
flags = (Messages_SendMedia.Flags)((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0)),
|
||||
flags = (Messages_SendMedia.Flags)((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (update_stickersets_order ? 0x8000 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0)),
|
||||
peer = peer,
|
||||
reply_to_msg_id = reply_to_msg_id.GetValueOrDefault(),
|
||||
media = media,
|
||||
|
|
@ -2371,10 +2401,10 @@ namespace TL
|
|||
/// <param name="multi_media">The medias to send</param>
|
||||
/// <param name="schedule_date">Scheduled message date for scheduled messages</param>
|
||||
/// <param name="send_as">Send this message as the specified peer</param>
|
||||
public static Task<UpdatesBase> Messages_SendMultiMedia(this Client client, InputPeer peer, InputSingleMedia[] multi_media, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, int? reply_to_msg_id = null, DateTime? schedule_date = null, InputPeer send_as = null)
|
||||
public static Task<UpdatesBase> Messages_SendMultiMedia(this Client client, InputPeer peer, InputSingleMedia[] multi_media, bool silent = false, bool background = false, bool clear_draft = false, bool noforwards = false, bool update_stickersets_order = false, int? reply_to_msg_id = null, DateTime? schedule_date = null, InputPeer send_as = null)
|
||||
=> client.Invoke(new Messages_SendMultiMedia
|
||||
{
|
||||
flags = (Messages_SendMultiMedia.Flags)((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0)),
|
||||
flags = (Messages_SendMultiMedia.Flags)((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (noforwards ? 0x4000 : 0) | (update_stickersets_order ? 0x8000 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (schedule_date != null ? 0x400 : 0) | (send_as != null ? 0x2000 : 0)),
|
||||
peer = peer,
|
||||
reply_to_msg_id = reply_to_msg_id.GetValueOrDefault(),
|
||||
multi_media = multi_media,
|
||||
|
|
@ -3019,10 +3049,10 @@ namespace TL
|
|||
/// <param name="peer">Peer</param>
|
||||
/// <param name="msg_id">Message ID to react to</param>
|
||||
/// <param name="reaction">Reaction (a UTF8 emoji)</param>
|
||||
public static Task<UpdatesBase> Messages_SendReaction(this Client client, InputPeer peer, int msg_id, bool big = false, string reaction = null)
|
||||
public static Task<UpdatesBase> Messages_SendReaction(this Client client, InputPeer peer, int msg_id, bool big = false, bool add_to_recent = false, Reaction[] reaction = null)
|
||||
=> client.Invoke(new Messages_SendReaction
|
||||
{
|
||||
flags = (Messages_SendReaction.Flags)((big ? 0x2 : 0) | (reaction != null ? 0x1 : 0)),
|
||||
flags = (Messages_SendReaction.Flags)((big ? 0x2 : 0) | (add_to_recent ? 0x4 : 0) | (reaction != null ? 0x1 : 0)),
|
||||
peer = peer,
|
||||
msg_id = msg_id,
|
||||
reaction = reaction,
|
||||
|
|
@ -3044,7 +3074,7 @@ namespace TL
|
|||
/// <param name="reaction">Get only reactions of this type (UTF8 emoji)</param>
|
||||
/// <param name="offset">Offset (typically taken from the <c>next_offset</c> field of the returned <see cref="Messages_MessageReactionsList"/>)</param>
|
||||
/// <param name="limit">Maximum number of results to return, <a href="https://corefork.telegram.org/api/offsets">see pagination</a></param>
|
||||
public static Task<Messages_MessageReactionsList> Messages_GetMessageReactionsList(this Client client, InputPeer peer, int id, int limit = int.MaxValue, string reaction = null, string offset = null)
|
||||
public static Task<Messages_MessageReactionsList> Messages_GetMessageReactionsList(this Client client, InputPeer peer, int id, int limit = int.MaxValue, Reaction reaction = null, string offset = null)
|
||||
=> client.Invoke(new Messages_GetMessageReactionsList
|
||||
{
|
||||
flags = (Messages_GetMessageReactionsList.Flags)((reaction != null ? 0x1 : 0) | (offset != null ? 0x2 : 0)),
|
||||
|
|
@ -3058,7 +3088,7 @@ namespace TL
|
|||
/// <summary>Change the set of <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> that can be used in a certain group, supergroup or channel <para>See <a href="https://corefork.telegram.org/method/messages.setChatAvailableReactions"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setChatAvailableReactions#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Group where to apply changes</param>
|
||||
/// <param name="available_reactions">Allowed reaction emojis</param>
|
||||
public static Task<UpdatesBase> Messages_SetChatAvailableReactions(this Client client, InputPeer peer, string[] available_reactions)
|
||||
public static Task<UpdatesBase> Messages_SetChatAvailableReactions(this Client client, InputPeer peer, ChatReactions available_reactions)
|
||||
=> client.Invoke(new Messages_SetChatAvailableReactions
|
||||
{
|
||||
peer = peer,
|
||||
|
|
@ -3076,7 +3106,7 @@ namespace TL
|
|||
|
||||
/// <summary>Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using <a href="https://corefork.telegram.org/api/config#client-configuration">help.getAppConfig, <c>reactions_default</c> field</a>. <para>See <a href="https://corefork.telegram.org/method/messages.setDefaultReaction"/></para></summary>
|
||||
/// <param name="reaction">New emoji reaction</param>
|
||||
public static Task<bool> Messages_SetDefaultReaction(this Client client, string reaction)
|
||||
public static Task<bool> Messages_SetDefaultReaction(this Client client, Reaction reaction)
|
||||
=> client.Invoke(new Messages_SetDefaultReaction
|
||||
{
|
||||
reaction = reaction,
|
||||
|
|
@ -3174,7 +3204,7 @@ namespace TL
|
|||
/// <param name="theme_params">Theme parameters for the web app</param>
|
||||
/// <param name="reply_to_msg_id">Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is <a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage">terminated</a> should be sent in reply to this message ID.</param>
|
||||
/// <param name="send_as">Open the web app as the specified peer, sending the resulting the message as the specified peer.</param>
|
||||
public static Task<WebViewResult> Messages_RequestWebView(this Client client, InputPeer peer, InputUserBase bot, bool from_bot_menu = false, bool silent = false, string url = null, string start_param = null, DataJSON theme_params = null, int? reply_to_msg_id = null, InputPeer send_as = null)
|
||||
public static Task<WebViewResult> Messages_RequestWebView(this Client client, InputPeer peer, InputUserBase bot, string platform, bool from_bot_menu = false, bool silent = false, string url = null, string start_param = null, DataJSON theme_params = null, int? reply_to_msg_id = null, InputPeer send_as = null)
|
||||
=> client.Invoke(new Messages_RequestWebView
|
||||
{
|
||||
flags = (Messages_RequestWebView.Flags)((from_bot_menu ? 0x10 : 0) | (silent ? 0x20 : 0) | (url != null ? 0x2 : 0) | (start_param != null ? 0x8 : 0) | (theme_params != null ? 0x4 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (send_as != null ? 0x2000 : 0)),
|
||||
|
|
@ -3183,6 +3213,7 @@ namespace TL
|
|||
url = url,
|
||||
start_param = start_param,
|
||||
theme_params = theme_params,
|
||||
platform = platform,
|
||||
reply_to_msg_id = reply_to_msg_id.GetValueOrDefault(),
|
||||
send_as = send_as,
|
||||
});
|
||||
|
|
@ -3209,13 +3240,14 @@ namespace TL
|
|||
/// <param name="bot">Bot that owns the webapp</param>
|
||||
/// <param name="url">Web app URL</param>
|
||||
/// <param name="theme_params">Theme parameters</param>
|
||||
public static Task<SimpleWebViewResult> Messages_RequestSimpleWebView(this Client client, InputUserBase bot, string url, DataJSON theme_params = null)
|
||||
public static Task<SimpleWebViewResult> Messages_RequestSimpleWebView(this Client client, InputUserBase bot, string url, string platform, DataJSON theme_params = null)
|
||||
=> client.Invoke(new Messages_RequestSimpleWebView
|
||||
{
|
||||
flags = (Messages_RequestSimpleWebView.Flags)(theme_params != null ? 0x1 : 0),
|
||||
bot = bot,
|
||||
url = url,
|
||||
theme_params = theme_params,
|
||||
platform = platform,
|
||||
});
|
||||
|
||||
/// <summary><para>⚠ <b>This method is only for basic Chat</b>. See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/README.md#terminology">Terminology</see> 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> Terminate webview interaction started with <a href="https://corefork.telegram.org/method/messages.requestWebView">messages.requestWebView</a>, sending the specified message to the chat on behalf of the user. <para>See <a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage#possible-errors">details</a>)</para></summary>
|
||||
|
|
@ -3291,6 +3323,39 @@ namespace TL
|
|||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.reportReaction"/></para></summary>
|
||||
public static Task<bool> Messages_ReportReaction(this Client client, InputPeer peer, int id, InputPeer reaction_peer)
|
||||
=> client.Invoke(new Messages_ReportReaction
|
||||
{
|
||||
peer = peer,
|
||||
id = id,
|
||||
reaction_peer = reaction_peer,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getTopReactions"/></para></summary>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.reactionsNotModified">messages.reactionsNotModified</a></returns>
|
||||
public static Task<Messages_Reactions> Messages_GetTopReactions(this Client client, int limit = int.MaxValue, long hash = default)
|
||||
=> client.Invoke(new Messages_GetTopReactions
|
||||
{
|
||||
limit = limit,
|
||||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getRecentReactions"/></para></summary>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.reactionsNotModified">messages.reactionsNotModified</a></returns>
|
||||
public static Task<Messages_Reactions> Messages_GetRecentReactions(this Client client, int limit = int.MaxValue, long hash = default)
|
||||
=> client.Invoke(new Messages_GetRecentReactions
|
||||
{
|
||||
limit = limit,
|
||||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.clearRecentReactions"/></para></summary>
|
||||
public static Task<bool> Messages_ClearRecentReactions(this Client client)
|
||||
=> client.Invoke(new Messages_ClearRecentReactions
|
||||
{
|
||||
});
|
||||
|
||||
/// <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
|
||||
|
|
@ -4269,15 +4334,6 @@ namespace TL
|
|||
purpose = purpose,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.requestRecurringPayment"/></para></summary>
|
||||
public static Task<UpdatesBase> Payments_RequestRecurringPayment(this Client client, InputUserBase user_id, string recurring_init_charge, InputMedia invoice_media)
|
||||
=> client.Invoke(new Payments_RequestRecurringPayment
|
||||
{
|
||||
user_id = user_id,
|
||||
recurring_init_charge = recurring_init_charge,
|
||||
invoice_media = invoice_media,
|
||||
});
|
||||
|
||||
/// <summary>Create a stickerset, bots only. <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="animated">Whether this is an animated stickerset</param>
|
||||
|
|
@ -4928,12 +4984,20 @@ namespace TL.Methods
|
|||
public string last_name;
|
||||
}
|
||||
|
||||
[TLDef(0xBCD51581)]
|
||||
[TLDef(0x8D52A951)]
|
||||
public class Auth_SignIn : IMethod<Auth_AuthorizationBase>
|
||||
{
|
||||
public Flags flags;
|
||||
public string phone_number;
|
||||
public string phone_code_hash;
|
||||
public string phone_code;
|
||||
[IfFlag(0)] public string phone_code;
|
||||
[IfFlag(1)] public EmailVerification email_verification;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_phone_code = 0x1,
|
||||
has_email_verification = 0x2,
|
||||
}
|
||||
}
|
||||
|
||||
[TLDef(0x3E72BA19)]
|
||||
|
|
@ -5298,17 +5362,18 @@ namespace TL.Methods
|
|||
public string phone_code;
|
||||
}
|
||||
|
||||
[TLDef(0x7011509F)]
|
||||
[TLDef(0x98E037BB)]
|
||||
public class Account_SendVerifyEmailCode : IMethod<Account_SentEmailCode>
|
||||
{
|
||||
public EmailVerifyPurpose purpose;
|
||||
public string email;
|
||||
}
|
||||
|
||||
[TLDef(0xECBA39DB)]
|
||||
public class Account_VerifyEmail : IMethod<bool>
|
||||
[TLDef(0x032DA4CF)]
|
||||
public class Account_VerifyEmail : IMethod<Account_EmailVerified>
|
||||
{
|
||||
public string email;
|
||||
public string code;
|
||||
public EmailVerifyPurpose purpose;
|
||||
public EmailVerification verification;
|
||||
}
|
||||
|
||||
[TLDef(0x8EF3EAB0)]
|
||||
|
|
@ -5603,6 +5668,27 @@ namespace TL.Methods
|
|||
public string mime_type;
|
||||
}
|
||||
|
||||
[TLDef(0xFBD3DE6B)]
|
||||
public class Account_UpdateEmojiStatus : IMethod<bool>
|
||||
{
|
||||
public EmojiStatus emoji_status;
|
||||
}
|
||||
|
||||
[TLDef(0xD6753386)]
|
||||
public class Account_GetDefaultEmojiStatuses : IMethod<Account_EmojiStatuses>
|
||||
{
|
||||
public long hash;
|
||||
}
|
||||
|
||||
[TLDef(0x0F578105)]
|
||||
public class Account_GetRecentEmojiStatuses : IMethod<Account_EmojiStatuses>
|
||||
{
|
||||
public long hash;
|
||||
}
|
||||
|
||||
[TLDef(0x18201AAE)]
|
||||
public class Account_ClearRecentEmojiStatuses : IMethod<bool> { }
|
||||
|
||||
[TLDef(0x0D91A548)]
|
||||
public class Users_GetUsers : IMethod<UserBase[]>
|
||||
{
|
||||
|
|
@ -5926,6 +6012,7 @@ namespace TL.Methods
|
|||
has_schedule_date = 0x400,
|
||||
has_send_as = 0x2000,
|
||||
noforwards = 0x4000,
|
||||
update_stickersets_order = 0x8000,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5954,6 +6041,7 @@ namespace TL.Methods
|
|||
has_schedule_date = 0x400,
|
||||
has_send_as = 0x2000,
|
||||
noforwards = 0x4000,
|
||||
update_stickersets_order = 0x8000,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -6764,6 +6852,7 @@ namespace TL.Methods
|
|||
has_schedule_date = 0x400,
|
||||
has_send_as = 0x2000,
|
||||
noforwards = 0x4000,
|
||||
update_stickersets_order = 0x8000,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -7273,18 +7362,19 @@ namespace TL.Methods
|
|||
public InputPeer send_as;
|
||||
}
|
||||
|
||||
[TLDef(0x25690CE4)]
|
||||
[TLDef(0xD30D78D4)]
|
||||
public class Messages_SendReaction : IMethod<UpdatesBase>
|
||||
{
|
||||
public Flags flags;
|
||||
public InputPeer peer;
|
||||
public int msg_id;
|
||||
[IfFlag(0)] public string reaction;
|
||||
[IfFlag(0)] public Reaction[] reaction;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_reaction = 0x1,
|
||||
big = 0x2,
|
||||
add_to_recent = 0x4,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -7295,13 +7385,13 @@ namespace TL.Methods
|
|||
public int[] id;
|
||||
}
|
||||
|
||||
[TLDef(0xE0EE6B77)]
|
||||
[TLDef(0x461B3F48)]
|
||||
public class Messages_GetMessageReactionsList : IMethod<Messages_MessageReactionsList>
|
||||
{
|
||||
public Flags flags;
|
||||
public InputPeer peer;
|
||||
public int id;
|
||||
[IfFlag(0)] public string reaction;
|
||||
[IfFlag(0)] public Reaction reaction;
|
||||
[IfFlag(1)] public string offset;
|
||||
public int limit;
|
||||
|
||||
|
|
@ -7312,11 +7402,11 @@ namespace TL.Methods
|
|||
}
|
||||
}
|
||||
|
||||
[TLDef(0x14050EA6)]
|
||||
[TLDef(0xFEB16771)]
|
||||
public class Messages_SetChatAvailableReactions : IMethod<UpdatesBase>
|
||||
{
|
||||
public InputPeer peer;
|
||||
public string[] available_reactions;
|
||||
public ChatReactions available_reactions;
|
||||
}
|
||||
|
||||
[TLDef(0x18DEA0AC)]
|
||||
|
|
@ -7325,10 +7415,10 @@ namespace TL.Methods
|
|||
public int hash;
|
||||
}
|
||||
|
||||
[TLDef(0xD960C4D4)]
|
||||
[TLDef(0x4F47A016)]
|
||||
public class Messages_SetDefaultReaction : IMethod<bool>
|
||||
{
|
||||
public string reaction;
|
||||
public Reaction reaction;
|
||||
}
|
||||
|
||||
[TLDef(0x24CE6DEE)]
|
||||
|
|
@ -7393,7 +7483,7 @@ namespace TL.Methods
|
|||
public bool enabled;
|
||||
}
|
||||
|
||||
[TLDef(0x91B15831)]
|
||||
[TLDef(0xFC87A53C)]
|
||||
public class Messages_RequestWebView : IMethod<WebViewResult>
|
||||
{
|
||||
public Flags flags;
|
||||
|
|
@ -7402,6 +7492,7 @@ namespace TL.Methods
|
|||
[IfFlag(1)] public string url;
|
||||
[IfFlag(3)] public string start_param;
|
||||
[IfFlag(2)] public DataJSON theme_params;
|
||||
public string platform;
|
||||
[IfFlag(0)] public int reply_to_msg_id;
|
||||
[IfFlag(13)] public InputPeer send_as;
|
||||
|
||||
|
|
@ -7435,13 +7526,14 @@ namespace TL.Methods
|
|||
}
|
||||
}
|
||||
|
||||
[TLDef(0x6ABB2F73)]
|
||||
[TLDef(0x299BEC8E)]
|
||||
public class Messages_RequestSimpleWebView : IMethod<SimpleWebViewResult>
|
||||
{
|
||||
public Flags flags;
|
||||
public InputUserBase bot;
|
||||
public string url;
|
||||
[IfFlag(0)] public DataJSON theme_params;
|
||||
public string platform;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -7499,6 +7591,31 @@ namespace TL.Methods
|
|||
public long hash;
|
||||
}
|
||||
|
||||
[TLDef(0x3F64C076)]
|
||||
public class Messages_ReportReaction : IMethod<bool>
|
||||
{
|
||||
public InputPeer peer;
|
||||
public int id;
|
||||
public InputPeer reaction_peer;
|
||||
}
|
||||
|
||||
[TLDef(0xBB8125BA)]
|
||||
public class Messages_GetTopReactions : IMethod<Messages_Reactions>
|
||||
{
|
||||
public int limit;
|
||||
public long hash;
|
||||
}
|
||||
|
||||
[TLDef(0x39461DB2)]
|
||||
public class Messages_GetRecentReactions : IMethod<Messages_Reactions>
|
||||
{
|
||||
public int limit;
|
||||
public long hash;
|
||||
}
|
||||
|
||||
[TLDef(0x9DFEEFB4)]
|
||||
public class Messages_ClearRecentReactions : IMethod<bool> { }
|
||||
|
||||
[TLDef(0xEDD4882A)]
|
||||
public class Updates_GetState : IMethod<Updates_State> { }
|
||||
|
||||
|
|
@ -8231,14 +8348,6 @@ namespace TL.Methods
|
|||
public InputStorePaymentPurpose purpose;
|
||||
}
|
||||
|
||||
[TLDef(0x146E958D)]
|
||||
public class Payments_RequestRecurringPayment : IMethod<UpdatesBase>
|
||||
{
|
||||
public InputUserBase user_id;
|
||||
public string recurring_init_charge;
|
||||
public InputMedia invoice_media;
|
||||
}
|
||||
|
||||
[TLDef(0x9021AB67)]
|
||||
public class Stickers_CreateStickerSet : IMethod<Messages_StickerSet>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace TL
|
|||
{
|
||||
public static class Layer
|
||||
{
|
||||
public const int Version = 144; // fetched 03/08/2022 22:13:22
|
||||
public const int Version = 145; // fetched 02/09/2022 20:50:42
|
||||
internal const uint VectorCtor = 0x1CB5C415;
|
||||
internal const uint NullCtor = 0x56730BCC;
|
||||
internal const uint RpcResultCtor = 0xF35C6D01;
|
||||
|
|
@ -116,7 +116,7 @@ namespace TL
|
|||
[0x36C6019A] = typeof(PeerChat),
|
||||
[0xA2A5371E] = typeof(PeerChannel),
|
||||
[0xD3BC4B7A] = typeof(UserEmpty),
|
||||
[0x3FF6ECB0] = typeof(User),
|
||||
[0x5D99ADEE] = typeof(User),
|
||||
[0x4F11BAE1] = null,//UserProfilePhotoEmpty
|
||||
[0x82D1F706] = typeof(UserProfilePhoto),
|
||||
[0x09D05049] = null,//UserStatusEmpty
|
||||
|
|
@ -130,8 +130,8 @@ namespace TL
|
|||
[0x6592A1A7] = typeof(ChatForbidden),
|
||||
[0x8261AC61] = typeof(Channel),
|
||||
[0x17D493D5] = typeof(ChannelForbidden),
|
||||
[0xD18EE226] = typeof(ChatFull),
|
||||
[0xEA68A619] = typeof(ChannelFull),
|
||||
[0xC9D31138] = typeof(ChatFull),
|
||||
[0xF2355507] = typeof(ChannelFull),
|
||||
[0xC02D4007] = typeof(ChatParticipant),
|
||||
[0xE46BCEE4] = typeof(ChatParticipantCreator),
|
||||
[0xA0933F5B] = typeof(ChatParticipantAdmin),
|
||||
|
|
@ -283,7 +283,7 @@ namespace TL
|
|||
[0xD7CA61A2] = typeof(UpdateChatParticipantAdmin),
|
||||
[0x688A30AA] = typeof(UpdateNewStickerSet),
|
||||
[0x0BB2D201] = typeof(UpdateStickerSetsOrder),
|
||||
[0x43AE3DEC] = typeof(UpdateStickerSets),
|
||||
[0x31C24808] = typeof(UpdateStickerSets),
|
||||
[0x9375341E] = typeof(UpdateSavedGifs),
|
||||
[0x496F379C] = typeof(UpdateBotInlineQuery),
|
||||
[0x12F12A07] = typeof(UpdateBotInlineSend),
|
||||
|
|
@ -352,6 +352,10 @@ namespace TL
|
|||
[0x74D8BE99] = typeof(UpdateSavedRingtones),
|
||||
[0x0084CD5A] = typeof(UpdateTranscribedAudio),
|
||||
[0xFB4C496C] = typeof(UpdateReadFeaturedEmojiStickers),
|
||||
[0x28373599] = typeof(UpdateUserEmojiStatus),
|
||||
[0x30F443DB] = typeof(UpdateRecentEmojiStatuses),
|
||||
[0x6F7863F4] = typeof(UpdateRecentReactions),
|
||||
[0x86FCCF85] = typeof(UpdateMoveStickerSetToTop),
|
||||
[0xA56C2A3E] = typeof(Updates_State),
|
||||
[0x5D75A138] = typeof(Updates_DifferenceEmpty),
|
||||
[0x00F49CA0] = typeof(Updates_Difference),
|
||||
|
|
@ -370,7 +374,7 @@ namespace TL
|
|||
[0x096A18D5] = typeof(Upload_File),
|
||||
[0xF18CDA44] = typeof(Upload_FileCdnRedirect),
|
||||
[0x18B7A10D] = typeof(DcOption),
|
||||
[0x330B4067] = typeof(Config),
|
||||
[0x232566AC] = typeof(Config),
|
||||
[0x8E1A1775] = typeof(NearestDc),
|
||||
[0xCCBBCE30] = typeof(Help_AppUpdate),
|
||||
[0xC45A6536] = null,//Help_NoAppUpdate
|
||||
|
|
@ -459,7 +463,7 @@ namespace TL
|
|||
[0x7311CA11] = typeof(WebPageNotModified),
|
||||
[0xAD01D61D] = typeof(Authorization),
|
||||
[0x4BFF8EA0] = typeof(Account_Authorizations),
|
||||
[0x185B184F] = typeof(Account_Password),
|
||||
[0x957B50FB] = typeof(Account_Password),
|
||||
[0x9A5C33E5] = typeof(Account_PasswordSettings),
|
||||
[0xC23727C9] = typeof(Account_PasswordInputSettings),
|
||||
[0x137948A5] = typeof(Auth_PasswordRecovery),
|
||||
|
|
@ -476,6 +480,8 @@ namespace TL
|
|||
[0xE67F520E] = typeof(InputStickerSetDice),
|
||||
[0x0CDE3739] = typeof(InputStickerSetAnimatedEmojiAnimations),
|
||||
[0xC88B3B02] = typeof(InputStickerSetPremiumGifts),
|
||||
[0x04C4D4CE] = typeof(InputStickerSetEmojiGenericAnimations),
|
||||
[0x29D0F5EE] = typeof(InputStickerSetEmojiDefaultStatuses),
|
||||
[0x2DD14EDC] = typeof(StickerSet),
|
||||
[0xB60A24A6] = typeof(Messages_StickerSet),
|
||||
[0xD3F924EB] = null,//Messages_StickerSetNotModified
|
||||
|
|
@ -579,6 +585,8 @@ namespace TL
|
|||
[0x5353E5A7] = typeof(Auth_SentCodeTypeCall),
|
||||
[0xAB03C6D9] = typeof(Auth_SentCodeTypeFlashCall),
|
||||
[0x82006484] = typeof(Auth_SentCodeTypeMissedCall),
|
||||
[0x5A159841] = typeof(Auth_SentCodeTypeEmailCode),
|
||||
[0xA5491DEA] = typeof(Auth_SentCodeTypeSetUpEmailRequired),
|
||||
[0x36585EA4] = typeof(Messages_BotCallbackAnswer),
|
||||
[0x26B5DDE6] = typeof(Messages_MessageEditData),
|
||||
[0x890C3D89] = typeof(InputBotInlineMessageID),
|
||||
|
|
@ -737,7 +745,7 @@ namespace TL
|
|||
[0xAFB6144A] = typeof(ChannelAdminLogEventActionParticipantJoinByRequest),
|
||||
[0xCB2AC766] = typeof(ChannelAdminLogEventActionToggleNoForwards),
|
||||
[0x278F2868] = typeof(ChannelAdminLogEventActionSendMessage),
|
||||
[0x9CF7F76A] = typeof(ChannelAdminLogEventActionChangeAvailableReactions),
|
||||
[0xBE4E0EF8] = typeof(ChannelAdminLogEventActionChangeAvailableReactions),
|
||||
[0x1FAD68CD] = typeof(ChannelAdminLogEvent),
|
||||
[0xED8AF74D] = typeof(Channels_AdminLogResults),
|
||||
[0xEA107AE4] = typeof(ChannelAdminLogEventsFilter),
|
||||
|
|
@ -946,11 +954,11 @@ namespace TL
|
|||
[0x147EE23C] = typeof(Messages_SearchResultsCalendar),
|
||||
[0x7F648B67] = typeof(SearchResultPosition),
|
||||
[0x53B22BAF] = typeof(Messages_SearchResultsPositions),
|
||||
[0x8356CDA9] = typeof(Channels_SendAsPeers),
|
||||
[0xF496B0C6] = typeof(Channels_SendAsPeers),
|
||||
[0x3B6D152E] = typeof(Users_UserFull),
|
||||
[0x6880B94D] = typeof(Messages_PeerSettings),
|
||||
[0xC3A2835F] = typeof(Auth_LoggedOut),
|
||||
[0x6FB250D1] = typeof(ReactionCount),
|
||||
[0xA3D1CB80] = typeof(ReactionCount),
|
||||
[0x4F2B9479] = typeof(MessageReactions),
|
||||
[0x31BD492D] = typeof(Messages_MessageReactionsList),
|
||||
[0xC077EC01] = typeof(AvailableReaction),
|
||||
|
|
@ -958,7 +966,7 @@ namespace TL
|
|||
[0x768E3AAD] = typeof(Messages_AvailableReactions),
|
||||
[0x67CA4737] = typeof(Messages_TranslateNoResult),
|
||||
[0xA214F7D0] = typeof(Messages_TranslateResultText),
|
||||
[0x51B67EFF] = typeof(MessagePeerReaction),
|
||||
[0xB156FE9C] = typeof(MessagePeerReaction),
|
||||
[0x80EB48AF] = typeof(GroupCallStreamChannel),
|
||||
[0xD0E482B2] = typeof(Phone_GroupCallStreamChannels),
|
||||
[0x2DBF3432] = typeof(Phone_GroupCallStreamRtmpUrl),
|
||||
|
|
@ -986,11 +994,34 @@ namespace TL
|
|||
[0xC326CAEF] = typeof(InputInvoiceSlug),
|
||||
[0xAED0CBD9] = typeof(Payments_ExportedInvoice),
|
||||
[0x93752C52] = typeof(Messages_TranscribedAudio),
|
||||
[0x8A4F3C29] = typeof(Help_PremiumPromo),
|
||||
[0x5334759C] = typeof(Help_PremiumPromo),
|
||||
[0xA6751E66] = typeof(InputStorePaymentPremiumSubscription),
|
||||
[0x616F7FE8] = typeof(InputStorePaymentGiftPremium),
|
||||
[0x74C34319] = typeof(PremiumGiftOption),
|
||||
[0x88F8F21B] = typeof(PaymentFormMethod),
|
||||
[0x2DE11AAE] = null,//EmojiStatusEmpty
|
||||
[0x929B619D] = typeof(EmojiStatus),
|
||||
[0xFA30A8C7] = typeof(EmojiStatusUntil),
|
||||
[0xD08CE645] = null,//Account_EmojiStatusesNotModified
|
||||
[0x90C467D1] = typeof(Account_EmojiStatuses),
|
||||
[0x79F5D419] = null,//ReactionEmpty
|
||||
[0x1B2286B8] = typeof(ReactionEmoji),
|
||||
[0x8935FC73] = typeof(ReactionCustomEmoji),
|
||||
[0xEAFC32BC] = typeof(ChatReactionsNone),
|
||||
[0x52928BCA] = typeof(ChatReactionsAll),
|
||||
[0x661D4037] = typeof(ChatReactionsSome),
|
||||
[0xB06FDBDF] = null,//Messages_ReactionsNotModified
|
||||
[0xEAFDF716] = typeof(Messages_Reactions),
|
||||
[0x4345BE73] = typeof(EmailVerifyPurposeLoginSetup),
|
||||
[0x527D22EB] = typeof(EmailVerifyPurposeLoginChange),
|
||||
[0xBBF51685] = typeof(EmailVerifyPurposePassport),
|
||||
[0x922E55A9] = typeof(EmailVerificationCode),
|
||||
[0xDB909EC2] = typeof(EmailVerificationGoogle),
|
||||
[0x96D074FD] = typeof(EmailVerificationApple),
|
||||
[0x2B96CD1B] = typeof(Account_EmailVerified),
|
||||
[0xE1BB0D61] = typeof(Account_EmailVerifiedLogin),
|
||||
[0xB6F11EBE] = typeof(PremiumSubscriptionOption),
|
||||
[0xB81C7034] = typeof(SendAsPeer),
|
||||
// from TL.Secret:
|
||||
[0xBB718624] = typeof(Layer66.SendMessageUploadRoundAction),
|
||||
[0xE50511D8] = typeof(Layer45.DecryptedMessageMediaWebPage),
|
||||
|
|
@ -1094,6 +1125,10 @@ namespace TL
|
|||
[typeof(Messages_AvailableReactions)] = 0x9F071957, //messages.availableReactionsNotModified
|
||||
[typeof(AttachMenuBots)] = 0xF1D88A5C, //attachMenuBotsNotModified
|
||||
[typeof(Account_SavedRingtones)] = 0xFBF6E8B1, //account.savedRingtonesNotModified
|
||||
[typeof(EmojiStatus)] = 0x2DE11AAE, //emojiStatusEmpty
|
||||
[typeof(Account_EmojiStatuses)] = 0xD08CE645, //account.emojiStatusesNotModified
|
||||
[typeof(Reaction)] = 0x79F5D419, //reactionEmpty
|
||||
[typeof(Messages_Reactions)] = 0xB06FDBDF, //messages.reactionsNotModified
|
||||
// from TL.Secret:
|
||||
[typeof(DecryptedMessageMedia)] = 0x089F5C4A, //decryptedMessageMediaEmpty
|
||||
// The End
|
||||
|
|
|
|||
Loading…
Reference in a new issue