mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-02-20 22:44:37 +01:00
API Layer 177: more business stuff, new profile infos, revenue stats
This commit is contained in:
parent
fc08140995
commit
1a4b606216
|
|
@ -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/absoluteLatest)
|
||||
[](https://www.buymeacoffee.com/wizou)
|
||||
|
|
|
|||
|
|
@ -580,7 +580,7 @@ namespace WTelegram
|
|||
/// <summary>Generic helper: Adds a single user to a Chat or Channel <para>See <a href="https://corefork.telegram.org/method/messages.addChatUser"/><br/> and <a href="https://corefork.telegram.org/method/channels.inviteToChannel"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403</para></summary>
|
||||
/// <param name="peer">Chat/Channel</param>
|
||||
/// <param name="user">User to be added</param>
|
||||
public Task<UpdatesBase> AddChatUser(InputPeer peer, InputUserBase user) => peer switch
|
||||
public Task<Messages_InvitedUsers> AddChatUser(InputPeer peer, InputUserBase user) => peer switch
|
||||
{
|
||||
InputPeerChat chat => this.Messages_AddChatUser(chat.chat_id, user, int.MaxValue),
|
||||
InputPeerChannel channel => this.Channels_InviteToChannel(channel, user),
|
||||
|
|
|
|||
526
src/TL.Schema.cs
526
src/TL.Schema.cs
|
|
@ -865,6 +865,7 @@ namespace TL
|
|||
/// <summary>Field <see cref="profile_color"/> has a value</summary>
|
||||
has_profile_color = 0x200,
|
||||
contact_require_premium = 0x400,
|
||||
bot_business = 0x800,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1497,6 +1498,8 @@ namespace TL
|
|||
has_boosts_unrestrict = 0x200,
|
||||
/// <summary>Field <see cref="emojiset"/> has a value</summary>
|
||||
has_emojiset = 0x400,
|
||||
restricted_sponsored = 0x800,
|
||||
can_view_revenue = 0x1000,
|
||||
}
|
||||
|
||||
/// <summary>ID of the channel</summary>
|
||||
|
|
@ -1670,11 +1673,12 @@ namespace TL
|
|||
public override Peer Peer => peer_id;
|
||||
}
|
||||
/// <summary>A message <para>See <a href="https://corefork.telegram.org/constructor/message"/></para></summary>
|
||||
[TLDef(0xA66C7EFC)]
|
||||
[TLDef(0x2357BF25)]
|
||||
public sealed partial class Message : MessageBase
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
public Flags flags;
|
||||
public Flags2 flags2;
|
||||
/// <summary>ID of the message</summary>
|
||||
public int id;
|
||||
/// <summary>ID of the sender of the message</summary>
|
||||
|
|
@ -1688,6 +1692,7 @@ namespace TL
|
|||
[IfFlag(2)] public MessageFwdHeader fwd_from;
|
||||
/// <summary>ID of the inline bot that generated the message</summary>
|
||||
[IfFlag(11)] public long via_bot_id;
|
||||
[IfFlag(32)] public long via_business_bot_id;
|
||||
/// <summary>Reply information</summary>
|
||||
[IfFlag(3)] public MessageReplyHeaderBase reply_to;
|
||||
/// <summary>Date of the message</summary>
|
||||
|
|
@ -1782,6 +1787,13 @@ namespace TL
|
|||
has_quick_reply_shortcut_id = 0x40000000,
|
||||
}
|
||||
|
||||
[Flags] public enum Flags2 : uint
|
||||
{
|
||||
/// <summary>Field <see cref="via_business_bot_id"/> has a value</summary>
|
||||
has_via_business_bot_id = 0x1,
|
||||
offline = 0x2,
|
||||
}
|
||||
|
||||
/// <summary>ID of the message</summary>
|
||||
public override int ID => id;
|
||||
/// <summary>ID of the sender of the message</summary>
|
||||
|
|
@ -2604,6 +2616,13 @@ namespace TL
|
|||
{
|
||||
public int boosts;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionRequestedPeerSentMe"/></para></summary>
|
||||
[TLDef(0x93B31848)]
|
||||
public sealed partial class MessageActionRequestedPeerSentMe : MessageAction
|
||||
{
|
||||
public int button_id;
|
||||
public RequestedPeer[] peers;
|
||||
}
|
||||
|
||||
/// <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
|
||||
|
|
@ -3062,7 +3081,7 @@ namespace TL
|
|||
}
|
||||
|
||||
/// <summary>List of actions that are possible when interacting with this user, to be shown as suggested actions in the <a href="https://corefork.telegram.org/api/action-bar">chat action bar »</a>, see <a href="https://corefork.telegram.org/api/action-bar">here »</a> for more info. <para>See <a href="https://corefork.telegram.org/constructor/peerSettings"/></para></summary>
|
||||
[TLDef(0xA518110D)]
|
||||
[TLDef(0xACD66C5E)]
|
||||
public sealed partial class PeerSettings : IObject
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
|
|
@ -3073,6 +3092,8 @@ namespace TL
|
|||
[IfFlag(9)] public string request_chat_title;
|
||||
/// <summary>If set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the timestamp when the <a href="https://corefork.telegram.org/api/invites#join-requests">join request »</a> was sent.</summary>
|
||||
[IfFlag(9)] public DateTime request_chat_date;
|
||||
[IfFlag(13)] public long business_bot_id;
|
||||
[IfFlag(13)] public string business_bot_manage_url;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -3098,6 +3119,10 @@ namespace TL
|
|||
has_request_chat_title = 0x200,
|
||||
/// <summary>This flag is set if <c>request_chat_title</c> and <c>request_chat_date</c> fields are set and the <a href="https://corefork.telegram.org/api/invites#join-requests">join request »</a> is related to a channel (otherwise if only the request fields are set, the <a href="https://corefork.telegram.org/api/invites#join-requests">join request »</a> is related to a chat).</summary>
|
||||
request_chat_broadcast = 0x400,
|
||||
business_bot_paused = 0x800,
|
||||
business_bot_can_reply = 0x1000,
|
||||
/// <summary>Fields <see cref="business_bot_id"/> and <see cref="business_bot_manage_url"/> have a value</summary>
|
||||
has_business_bot_id = 0x2000,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3198,7 +3223,7 @@ namespace TL
|
|||
}
|
||||
|
||||
/// <summary>Extended user info <para>See <a href="https://corefork.telegram.org/constructor/userFull"/></para></summary>
|
||||
[TLDef(0x22FF3E85)]
|
||||
[TLDef(0xCC997720)]
|
||||
public sealed partial class UserFull : IObject
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
|
|
@ -3246,6 +3271,10 @@ namespace TL
|
|||
[IfFlag(33)] public BusinessLocation business_location;
|
||||
[IfFlag(34)] public BusinessGreetingMessage business_greeting_message;
|
||||
[IfFlag(35)] public BusinessAwayMessage business_away_message;
|
||||
[IfFlag(36)] public BusinessIntro business_intro;
|
||||
[IfFlag(37)] public Birthday birthday;
|
||||
[IfFlag(38)] public long personal_channel_id;
|
||||
[IfFlag(38)] public int personal_channel_message;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -3315,6 +3344,12 @@ namespace TL
|
|||
has_business_greeting_message = 0x4,
|
||||
/// <summary>Field <see cref="business_away_message"/> has a value</summary>
|
||||
has_business_away_message = 0x8,
|
||||
/// <summary>Field <see cref="business_intro"/> has a value</summary>
|
||||
has_business_intro = 0x10,
|
||||
/// <summary>Field <see cref="birthday"/> has a value</summary>
|
||||
has_birthday = 0x20,
|
||||
/// <summary>Fields <see cref="personal_channel_id"/> and <see cref="personal_channel_message"/> have a value</summary>
|
||||
has_personal_channel_id = 0x40,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5003,13 +5038,6 @@ namespace TL
|
|||
/// <summary>Media autosave settings have changed and must be refetched using <see cref="SchemaExtensions.Account_GetAutoSaveSettings">Account_GetAutoSaveSettings</see>. <para>See <a href="https://corefork.telegram.org/constructor/updateAutoSaveSettings"/></para></summary>
|
||||
[TLDef(0xEC05B097)]
|
||||
public sealed partial class UpdateAutoSaveSettings : Update { }
|
||||
/// <summary>0-N updates of this type may be returned only when invoking <see cref="SchemaExtensions.Messages_AddChatUser">Messages_AddChatUser</see>, <see cref="SchemaExtensions.Channels_InviteToChannel">Channels_InviteToChannel</see> or <see cref="SchemaExtensions.Messages_CreateChat">Messages_CreateChat</see>: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an <a href="https://corefork.telegram.org/api/invites">invite link</a> can be shared with the user, instead. <para>See <a href="https://corefork.telegram.org/constructor/updateGroupInvitePrivacyForbidden"/></para></summary>
|
||||
[TLDef(0xCCF08AD6)]
|
||||
public sealed partial class UpdateGroupInvitePrivacyForbidden : Update
|
||||
{
|
||||
/// <summary>ID of the user we couldn't add.</summary>
|
||||
public long user_id;
|
||||
}
|
||||
/// <summary>A new story was posted. <para>See <a href="https://corefork.telegram.org/constructor/updateStory"/></para></summary>
|
||||
[TLDef(0x75B3B798)]
|
||||
public sealed partial class UpdateStory : Update
|
||||
|
|
@ -5201,6 +5229,60 @@ namespace TL
|
|||
{
|
||||
public int[] messages;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateBotBusinessConnect"/></para></summary>
|
||||
[TLDef(0x8AE5C97A)]
|
||||
public sealed partial class UpdateBotBusinessConnect : Update
|
||||
{
|
||||
public BotBusinessConnection connection;
|
||||
public int qts;
|
||||
|
||||
public override (long, int, int) GetMBox() => (-1, qts, 1);
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateBotNewBusinessMessage"/></para></summary>
|
||||
[TLDef(0x9DDB347C)]
|
||||
public sealed partial class UpdateBotNewBusinessMessage : Update
|
||||
{
|
||||
public Flags flags;
|
||||
public string connection_id;
|
||||
public MessageBase message;
|
||||
[IfFlag(0)] public MessageBase reply_to_message;
|
||||
public int qts;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_reply_to_message = 0x1,
|
||||
}
|
||||
|
||||
public override (long, int, int) GetMBox() => (-1, qts, 1);
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateBotEditBusinessMessage"/></para></summary>
|
||||
[TLDef(0x07DF587C)]
|
||||
public sealed partial class UpdateBotEditBusinessMessage : Update
|
||||
{
|
||||
public Flags flags;
|
||||
public string connection_id;
|
||||
public MessageBase message;
|
||||
[IfFlag(0)] public MessageBase reply_to_message;
|
||||
public int qts;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_reply_to_message = 0x1,
|
||||
}
|
||||
|
||||
public override (long, int, int) GetMBox() => (-1, qts, 1);
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateBotDeleteBusinessMessage"/></para></summary>
|
||||
[TLDef(0xA02A982E)]
|
||||
public sealed partial class UpdateBotDeleteBusinessMessage : Update
|
||||
{
|
||||
public string connection_id;
|
||||
public Peer peer;
|
||||
public int[] messages;
|
||||
public int qts;
|
||||
|
||||
public override (long, int, int) GetMBox() => (-1, qts, 1);
|
||||
}
|
||||
|
||||
/// <summary>Updates state. <para>See <a href="https://corefork.telegram.org/constructor/updates.state"/></para></summary>
|
||||
[TLDef(0xA56C2A3E)]
|
||||
|
|
@ -6339,6 +6421,8 @@ namespace TL
|
|||
VoiceMessages = 0xAEE69D68,
|
||||
///<summary>Whether people can see your bio</summary>
|
||||
About = 0x3823CC40,
|
||||
///<summary>See <a href="https://corefork.telegram.org/constructor/inputPrivacyKeyBirthday"/></summary>
|
||||
Birthday = 0xD65A11CC,
|
||||
}
|
||||
|
||||
/// <summary>Privacy <strong>keys</strong> together with <a href="https://corefork.telegram.org/api/privacy#privacy-rules">privacy rules »</a> indicate <em>what</em> can or can't someone do and are specified by a <see cref="PrivacyKey"/> constructor, and its input counterpart <see cref="InputPrivacyKey"/>. <para>See <a href="https://corefork.telegram.org/type/PrivacyKey"/></para></summary>
|
||||
|
|
@ -6364,6 +6448,8 @@ namespace TL
|
|||
VoiceMessages = 0x0697F414,
|
||||
///<summary>Whether people can see your bio</summary>
|
||||
About = 0xA486B761,
|
||||
///<summary>See <a href="https://corefork.telegram.org/constructor/privacyKeyBirthday"/></summary>
|
||||
Birthday = 0x2000A518,
|
||||
}
|
||||
|
||||
/// <summary>Privacy <strong>rules</strong> indicate <em>who</em> can or can't do something and are specified by a <see cref="PrivacyRule"/>, and its input counterpart <see cref="InputPrivacyRule"/>. <para>See <a href="https://corefork.telegram.org/type/InputPrivacyRule"/></para> <para>Derived classes: <see cref="InputPrivacyValueAllowContacts"/>, <see cref="InputPrivacyValueAllowAll"/>, <see cref="InputPrivacyValueAllowUsers"/>, <see cref="InputPrivacyValueDisallowContacts"/>, <see cref="InputPrivacyValueDisallowAll"/>, <see cref="InputPrivacyValueDisallowUsers"/>, <see cref="InputPrivacyValueAllowChatParticipants"/>, <see cref="InputPrivacyValueDisallowChatParticipants"/>, <see cref="InputPrivacyValueAllowCloseFriends"/></para></summary>
|
||||
|
|
@ -6411,6 +6497,9 @@ namespace TL
|
|||
/// <summary>Allow only <a href="https://corefork.telegram.org/api/privacy">close friends »</a> <para>See <a href="https://corefork.telegram.org/constructor/inputPrivacyValueAllowCloseFriends"/></para></summary>
|
||||
[TLDef(0x2F453E49)]
|
||||
public sealed partial class InputPrivacyValueAllowCloseFriends : InputPrivacyRule { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputPrivacyValueAllowPremium"/></para></summary>
|
||||
[TLDef(0x77CDC9F1)]
|
||||
public sealed partial class InputPrivacyValueAllowPremium : InputPrivacyRule { }
|
||||
|
||||
/// <summary>Privacy <strong>rules</strong> together with <a href="https://corefork.telegram.org/api/privacy#privacy-keys">privacy keys</a> indicate <em>what</em> can or can't someone do and are specified by a <see cref="PrivacyRule"/> constructor, and its input counterpart <see cref="InputPrivacyRule"/>. <para>See <a href="https://corefork.telegram.org/type/PrivacyRule"/></para> <para>Derived classes: <see cref="PrivacyValueAllowContacts"/>, <see cref="PrivacyValueAllowAll"/>, <see cref="PrivacyValueAllowUsers"/>, <see cref="PrivacyValueDisallowContacts"/>, <see cref="PrivacyValueDisallowAll"/>, <see cref="PrivacyValueDisallowUsers"/>, <see cref="PrivacyValueAllowChatParticipants"/>, <see cref="PrivacyValueDisallowChatParticipants"/>, <see cref="PrivacyValueAllowCloseFriends"/></para></summary>
|
||||
public abstract partial class PrivacyRule : IObject { }
|
||||
|
|
@ -6457,6 +6546,9 @@ namespace TL
|
|||
/// <summary>Allow only <a href="https://corefork.telegram.org/api/privacy">close friends »</a> <para>See <a href="https://corefork.telegram.org/constructor/privacyValueAllowCloseFriends"/></para></summary>
|
||||
[TLDef(0xF7E8D89B)]
|
||||
public sealed partial class PrivacyValueAllowCloseFriends : PrivacyRule { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/privacyValueAllowPremium"/></para></summary>
|
||||
[TLDef(0xECE9814B)]
|
||||
public sealed partial class PrivacyValueAllowPremium : PrivacyRule { }
|
||||
|
||||
/// <summary>Privacy rules <para>See <a href="https://corefork.telegram.org/constructor/account.privacyRules"/></para></summary>
|
||||
[TLDef(0x50A04E45)]
|
||||
|
|
@ -7163,10 +7255,6 @@ namespace TL
|
|||
masks = 0x8,
|
||||
/// <summary>Fields <see cref="thumbs"/>, <see cref="thumb_dc_id"/> and <see cref="thumb_version"/> have a value</summary>
|
||||
has_thumbs = 0x10,
|
||||
/// <summary>Is this an animated stickerpack</summary>
|
||||
animated = 0x20,
|
||||
/// <summary>Is this a video stickerpack</summary>
|
||||
videos = 0x40,
|
||||
/// <summary>This is a custom emoji stickerset</summary>
|
||||
emojis = 0x80,
|
||||
/// <summary>Field <see cref="thumb_document_id"/> has a value</summary>
|
||||
|
|
@ -7175,6 +7263,7 @@ namespace TL
|
|||
text_color = 0x200,
|
||||
/// <summary>If set, this custom emoji stickerset can be used in <a href="https://corefork.telegram.org/api/emoji-status">channel emoji statuses</a>.</summary>
|
||||
channel_emoji_status = 0x400,
|
||||
creator = 0x800,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -7433,6 +7522,25 @@ namespace TL
|
|||
/// <summary>Maximum number of peers that can be chosne.</summary>
|
||||
public int max_quantity;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputKeyboardButtonRequestPeer"/></para></summary>
|
||||
[TLDef(0xC9662D05)]
|
||||
public sealed partial class InputKeyboardButtonRequestPeer : KeyboardButtonBase
|
||||
{
|
||||
public Flags flags;
|
||||
public string text;
|
||||
public int button_id;
|
||||
public RequestPeerType peer_type;
|
||||
public int max_quantity;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
name_requested = 0x1,
|
||||
username_requested = 0x2,
|
||||
photo_requested = 0x4,
|
||||
}
|
||||
|
||||
public override string Text => text;
|
||||
}
|
||||
|
||||
/// <summary>Inline keyboard row <para>See <a href="https://corefork.telegram.org/constructor/keyboardButtonRow"/></para></summary>
|
||||
[TLDef(0x77608B83)]
|
||||
|
|
@ -10413,7 +10521,7 @@ namespace TL
|
|||
public override PhoneCallProtocol Protocol => protocol;
|
||||
}
|
||||
/// <summary>Phone call <para>See <a href="https://corefork.telegram.org/constructor/phoneCall"/></para></summary>
|
||||
[TLDef(0x967F7C67)]
|
||||
[TLDef(0x30535AF5)]
|
||||
public sealed partial class PhoneCall : PhoneCallBase
|
||||
{
|
||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||
|
|
@ -10438,6 +10546,7 @@ namespace TL
|
|||
public PhoneConnectionBase[] connections;
|
||||
/// <summary>When was the call actually started</summary>
|
||||
public DateTime start_date;
|
||||
[IfFlag(7)] public DataJSON custom_parameters;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -10445,6 +10554,8 @@ namespace TL
|
|||
p2p_allowed = 0x20,
|
||||
/// <summary>Whether this is a video call</summary>
|
||||
video = 0x40,
|
||||
/// <summary>Field <see cref="custom_parameters"/> has a value</summary>
|
||||
has_custom_parameters = 0x80,
|
||||
}
|
||||
|
||||
/// <summary>Call ID</summary>
|
||||
|
|
@ -14292,6 +14403,7 @@ namespace TL
|
|||
has_app = 0x400,
|
||||
/// <summary>Field <see cref="button_text"/> has a value</summary>
|
||||
has_button_text = 0x800,
|
||||
can_report = 0x1000,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -17286,12 +17398,12 @@ namespace TL
|
|||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/connectedBot"/></para></summary>
|
||||
[TLDef(0xE7E999E7)]
|
||||
[TLDef(0xBD068601)]
|
||||
public sealed partial class ConnectedBot : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
public long bot_id;
|
||||
public BusinessRecipients recipients;
|
||||
public BusinessBotRecipients recipients;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -17319,4 +17431,384 @@ namespace TL
|
|||
tags_enabled = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/birthday"/></para></summary>
|
||||
[TLDef(0x6C8E1E06)]
|
||||
public sealed partial class Birthday : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
public int day;
|
||||
public int month;
|
||||
[IfFlag(0)] public int year;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_year = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/botBusinessConnection"/></para></summary>
|
||||
[TLDef(0x896433B4)]
|
||||
public sealed partial class BotBusinessConnection : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
public string connection_id;
|
||||
public long user_id;
|
||||
public int dc_id;
|
||||
public DateTime date;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
can_reply = 0x1,
|
||||
disabled = 0x2,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputBusinessIntro"/></para></summary>
|
||||
[TLDef(0x09C469CD)]
|
||||
public sealed partial class InputBusinessIntro : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
public string title;
|
||||
public string description;
|
||||
[IfFlag(0)] public InputDocument sticker;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_sticker = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/businessIntro"/></para></summary>
|
||||
[TLDef(0x5A0A066D)]
|
||||
public sealed partial class BusinessIntro : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
public string title;
|
||||
public string description;
|
||||
[IfFlag(0)] public DocumentBase sticker;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_sticker = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messages.myStickers"/></para></summary>
|
||||
[TLDef(0xFAFF629D)]
|
||||
public sealed partial class Messages_MyStickers : IObject
|
||||
{
|
||||
public int count;
|
||||
public StickerSetCoveredBase[] sets;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/InputCollectible"/></para></summary>
|
||||
public abstract partial class InputCollectible : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputCollectibleUsername"/></para></summary>
|
||||
[TLDef(0xE39460A9)]
|
||||
public sealed partial class InputCollectibleUsername : InputCollectible
|
||||
{
|
||||
public string username;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputCollectiblePhone"/></para></summary>
|
||||
[TLDef(0xA2E214A4)]
|
||||
public sealed partial class InputCollectiblePhone : InputCollectible
|
||||
{
|
||||
public string phone;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/fragment.collectibleInfo"/></para></summary>
|
||||
[TLDef(0x6EBDFF91)]
|
||||
public sealed partial class Fragment_CollectibleInfo : IObject
|
||||
{
|
||||
public DateTime purchase_date;
|
||||
public string currency;
|
||||
public long amount;
|
||||
public string crypto_currency;
|
||||
public long crypto_amount;
|
||||
public string url;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputBusinessBotRecipients"/></para></summary>
|
||||
[TLDef(0xC4E5921E)]
|
||||
public sealed partial class InputBusinessBotRecipients : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
[IfFlag(4)] public InputUserBase[] users;
|
||||
[IfFlag(6)] public InputUserBase[] exclude_users;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
existing_chats = 0x1,
|
||||
new_chats = 0x2,
|
||||
contacts = 0x4,
|
||||
non_contacts = 0x8,
|
||||
has_users = 0x10,
|
||||
exclude_selected = 0x20,
|
||||
has_exclude_users = 0x40,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/businessBotRecipients"/></para></summary>
|
||||
[TLDef(0xB88CF373)]
|
||||
public sealed partial class BusinessBotRecipients : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
[IfFlag(4)] public long[] users;
|
||||
[IfFlag(6)] public long[] exclude_users;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
existing_chats = 0x1,
|
||||
new_chats = 0x2,
|
||||
contacts = 0x4,
|
||||
non_contacts = 0x8,
|
||||
has_users = 0x10,
|
||||
exclude_selected = 0x20,
|
||||
has_exclude_users = 0x40,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/contactBirthday"/></para></summary>
|
||||
[TLDef(0x1D998733)]
|
||||
public sealed partial class ContactBirthday : IObject
|
||||
{
|
||||
public long contact_id;
|
||||
public Birthday birthday;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/contacts.contactBirthdays"/></para></summary>
|
||||
[TLDef(0x114FF30D)]
|
||||
public sealed partial class Contacts_ContactBirthdays : IObject
|
||||
{
|
||||
public ContactBirthday[] contacts;
|
||||
public Dictionary<long, User> users;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/missingInvitee"/></para></summary>
|
||||
[TLDef(0x628C9224)]
|
||||
public sealed partial class MissingInvitee : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
public long user_id;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
premium_would_allow_invite = 0x1,
|
||||
premium_required_for_pm = 0x2,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messages.invitedUsers"/></para></summary>
|
||||
[TLDef(0x7F5DEFA6)]
|
||||
public sealed partial class Messages_InvitedUsers : IObject
|
||||
{
|
||||
public UpdatesBase updates;
|
||||
public MissingInvitee[] missing_invitees;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputBusinessChatLink"/></para></summary>
|
||||
[TLDef(0x11679FA7)]
|
||||
public sealed partial class InputBusinessChatLink : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
public string message;
|
||||
[IfFlag(0)] public MessageEntity[] entities;
|
||||
[IfFlag(1)] public string title;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_entities = 0x1,
|
||||
has_title = 0x2,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/businessChatLink"/></para></summary>
|
||||
[TLDef(0xB4AE666F)]
|
||||
public sealed partial class BusinessChatLink : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
public string link;
|
||||
public string message;
|
||||
[IfFlag(0)] public MessageEntity[] entities;
|
||||
[IfFlag(1)] public string title;
|
||||
public int views;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_entities = 0x1,
|
||||
has_title = 0x2,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/account.businessChatLinks"/></para></summary>
|
||||
[TLDef(0xEC43A2D1)]
|
||||
public sealed partial class Account_BusinessChatLinks : IObject, IPeerResolver
|
||||
{
|
||||
public BusinessChatLink[] links;
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/account.resolvedBusinessChatLinks"/></para></summary>
|
||||
[TLDef(0x9A23AF21)]
|
||||
public sealed partial class Account_ResolvedBusinessChatLinks : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
public Peer peer;
|
||||
public string message;
|
||||
[IfFlag(0)] public MessageEntity[] entities;
|
||||
public Dictionary<long, ChatBase> chats;
|
||||
public Dictionary<long, User> users;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_entities = 0x1,
|
||||
}
|
||||
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the result</summary>
|
||||
public IPeerInfo UserOrChat => peer?.UserOrChat(users, chats);
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/RequestedPeer"/></para></summary>
|
||||
public abstract partial class RequestedPeer : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/requestedPeerUser"/></para></summary>
|
||||
[TLDef(0xD62FF46A)]
|
||||
public sealed partial class RequestedPeerUser : RequestedPeer
|
||||
{
|
||||
public Flags flags;
|
||||
public long user_id;
|
||||
[IfFlag(0)] public string first_name;
|
||||
[IfFlag(0)] public string last_name;
|
||||
[IfFlag(1)] public string username;
|
||||
[IfFlag(2)] public PhotoBase photo;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_first_name = 0x1,
|
||||
has_username = 0x2,
|
||||
has_photo = 0x4,
|
||||
}
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/requestedPeerChat"/></para></summary>
|
||||
[TLDef(0x7307544F)]
|
||||
public sealed partial class RequestedPeerChat : RequestedPeer
|
||||
{
|
||||
public Flags flags;
|
||||
public long chat_id;
|
||||
[IfFlag(0)] public string title;
|
||||
[IfFlag(2)] public PhotoBase photo;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_title = 0x1,
|
||||
has_photo = 0x4,
|
||||
}
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/requestedPeerChannel"/></para></summary>
|
||||
[TLDef(0x8BA403E4)]
|
||||
public sealed partial class RequestedPeerChannel : RequestedPeer
|
||||
{
|
||||
public Flags flags;
|
||||
public long channel_id;
|
||||
[IfFlag(0)] public string title;
|
||||
[IfFlag(1)] public string username;
|
||||
[IfFlag(2)] public PhotoBase photo;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_title = 0x1,
|
||||
has_username = 0x2,
|
||||
has_photo = 0x4,
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/sponsoredMessageReportOption"/></para></summary>
|
||||
[TLDef(0x430D3150)]
|
||||
public sealed partial class SponsoredMessageReportOption : IObject
|
||||
{
|
||||
public string text;
|
||||
public byte[] option;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/channels.SponsoredMessageReportResult"/></para></summary>
|
||||
public abstract partial class Channels_SponsoredMessageReportResult : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/channels.sponsoredMessageReportResultChooseOption"/></para></summary>
|
||||
[TLDef(0x846F9E42)]
|
||||
public sealed partial class Channels_SponsoredMessageReportResultChooseOption : Channels_SponsoredMessageReportResult
|
||||
{
|
||||
public string title;
|
||||
public SponsoredMessageReportOption[] options;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/channels.sponsoredMessageReportResultAdsHidden"/></para></summary>
|
||||
[TLDef(0x3E3BCF2F)]
|
||||
public sealed partial class Channels_SponsoredMessageReportResultAdsHidden : Channels_SponsoredMessageReportResult { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/channels.sponsoredMessageReportResultReported"/></para></summary>
|
||||
[TLDef(0xAD798849)]
|
||||
public sealed partial class Channels_SponsoredMessageReportResultReported : Channels_SponsoredMessageReportResult { }
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/stats.broadcastRevenueStats"/></para></summary>
|
||||
[TLDef(0xD07B4BAD)]
|
||||
public sealed partial class Stats_BroadcastRevenueStats : IObject
|
||||
{
|
||||
public StatsGraphBase top_hours_graph;
|
||||
public StatsGraphBase revenue_graph;
|
||||
public long current_balance;
|
||||
public long available_balance;
|
||||
public long overall_revenue;
|
||||
public double usd_rate;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/stats.broadcastRevenueWithdrawalUrl"/></para></summary>
|
||||
[TLDef(0xEC659737)]
|
||||
public sealed partial class Stats_BroadcastRevenueWithdrawalUrl : IObject
|
||||
{
|
||||
public string url;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/BroadcastRevenueTransaction"/></para></summary>
|
||||
public abstract partial class BroadcastRevenueTransaction : IObject { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/broadcastRevenueTransactionProceeds"/></para></summary>
|
||||
[TLDef(0x557E2CC4)]
|
||||
public sealed partial class BroadcastRevenueTransactionProceeds : BroadcastRevenueTransaction
|
||||
{
|
||||
public long amount;
|
||||
public DateTime from_date;
|
||||
public DateTime to_date;
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/broadcastRevenueTransactionWithdrawal"/></para></summary>
|
||||
[TLDef(0x5A590978)]
|
||||
public sealed partial class BroadcastRevenueTransactionWithdrawal : BroadcastRevenueTransaction
|
||||
{
|
||||
public Flags flags;
|
||||
public long amount;
|
||||
public DateTime date;
|
||||
public string provider;
|
||||
[IfFlag(1)] public DateTime transaction_date;
|
||||
[IfFlag(1)] public string transaction_url;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
pending = 0x1,
|
||||
has_transaction_date = 0x2,
|
||||
failed = 0x4,
|
||||
}
|
||||
}
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/broadcastRevenueTransactionRefund"/></para></summary>
|
||||
[TLDef(0x42D30D2E)]
|
||||
public sealed partial class BroadcastRevenueTransactionRefund : BroadcastRevenueTransaction
|
||||
{
|
||||
public long amount;
|
||||
public DateTime date;
|
||||
public string provider;
|
||||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/stats.broadcastRevenueTransactions"/></para></summary>
|
||||
[TLDef(0x87158466)]
|
||||
public sealed partial class Stats_BroadcastRevenueTransactions : IObject
|
||||
{
|
||||
public int count;
|
||||
public BroadcastRevenueTransaction[] transactions;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,6 +92,14 @@ namespace TL
|
|||
query = query,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/invokeWithBusinessConnection"/></para></summary>
|
||||
public static Task<X> InvokeWithBusinessConnection<X>(this Client client, string connection_id, IMethod<X> query)
|
||||
=> client.Invoke(new InvokeWithBusinessConnection<X>
|
||||
{
|
||||
connection_id = connection_id,
|
||||
query = query,
|
||||
});
|
||||
|
||||
/// <summary>Send the verification code for login <para>See <a href="https://corefork.telegram.org/method/auth.sendCode"/></para> <para>Possible <see cref="RpcException"/> codes: 400,406,500 (<a href="https://corefork.telegram.org/method/auth.sendCode#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="phone_number">Phone number in international format</param>
|
||||
/// <param name="api_id">Application identifier (see <a href="https://corefork.telegram.org/myapp">App configuration</a>)</param>
|
||||
|
|
@ -1228,7 +1236,7 @@ namespace TL
|
|||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.updateConnectedBot"/></para></summary>
|
||||
public static Task<UpdatesBase> Account_UpdateConnectedBot(this Client client, InputUserBase bot, InputBusinessRecipients recipients, bool can_reply = false, bool deleted = false)
|
||||
public static Task<UpdatesBase> Account_UpdateConnectedBot(this Client client, InputUserBase bot, InputBusinessBotRecipients recipients, bool can_reply = false, bool deleted = false)
|
||||
=> client.Invoke(new Account_UpdateConnectedBot
|
||||
{
|
||||
flags = (Account_UpdateConnectedBot.Flags)((can_reply ? 0x1 : 0) | (deleted ? 0x2 : 0)),
|
||||
|
|
@ -1242,6 +1250,86 @@ namespace TL
|
|||
{
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.getBotBusinessConnection"/></para></summary>
|
||||
public static Task<UpdatesBase> Account_GetBotBusinessConnection(this Client client, string connection_id)
|
||||
=> client.Invoke(new Account_GetBotBusinessConnection
|
||||
{
|
||||
connection_id = connection_id,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.updateBusinessIntro"/></para></summary>
|
||||
public static Task<bool> Account_UpdateBusinessIntro(this Client client, InputBusinessIntro intro = null)
|
||||
=> client.Invoke(new Account_UpdateBusinessIntro
|
||||
{
|
||||
flags = (Account_UpdateBusinessIntro.Flags)(intro != null ? 0x1 : 0),
|
||||
intro = intro,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.toggleConnectedBotPaused"/></para></summary>
|
||||
public static Task<bool> Account_ToggleConnectedBotPaused(this Client client, InputPeer peer, bool paused)
|
||||
=> client.Invoke(new Account_ToggleConnectedBotPaused
|
||||
{
|
||||
peer = peer,
|
||||
paused = paused,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.disablePeerConnectedBot"/></para></summary>
|
||||
public static Task<bool> Account_DisablePeerConnectedBot(this Client client, InputPeer peer)
|
||||
=> client.Invoke(new Account_DisablePeerConnectedBot
|
||||
{
|
||||
peer = peer,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.updateBirthday"/></para></summary>
|
||||
public static Task<bool> Account_UpdateBirthday(this Client client, Birthday birthday = null)
|
||||
=> client.Invoke(new Account_UpdateBirthday
|
||||
{
|
||||
flags = (Account_UpdateBirthday.Flags)(birthday != null ? 0x1 : 0),
|
||||
birthday = birthday,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.createBusinessChatLink"/></para></summary>
|
||||
public static Task<BusinessChatLink> Account_CreateBusinessChatLink(this Client client, InputBusinessChatLink link)
|
||||
=> client.Invoke(new Account_CreateBusinessChatLink
|
||||
{
|
||||
link = link,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.editBusinessChatLink"/></para></summary>
|
||||
public static Task<BusinessChatLink> Account_EditBusinessChatLink(this Client client, string slug, InputBusinessChatLink link)
|
||||
=> client.Invoke(new Account_EditBusinessChatLink
|
||||
{
|
||||
slug = slug,
|
||||
link = link,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.deleteBusinessChatLink"/></para></summary>
|
||||
public static Task<bool> Account_DeleteBusinessChatLink(this Client client, string slug)
|
||||
=> client.Invoke(new Account_DeleteBusinessChatLink
|
||||
{
|
||||
slug = slug,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.getBusinessChatLinks"/></para></summary>
|
||||
public static Task<Account_BusinessChatLinks> Account_GetBusinessChatLinks(this Client client)
|
||||
=> client.Invoke(new Account_GetBusinessChatLinks
|
||||
{
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.resolveBusinessChatLink"/></para></summary>
|
||||
public static Task<Account_ResolvedBusinessChatLinks> Account_ResolveBusinessChatLink(this Client client, string slug)
|
||||
=> client.Invoke(new Account_ResolveBusinessChatLink
|
||||
{
|
||||
slug = slug,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.updatePersonalChannel"/></para></summary>
|
||||
public static Task<bool> Account_UpdatePersonalChannel(this Client client, InputChannelBase channel)
|
||||
=> client.Invoke(new Account_UpdatePersonalChannel
|
||||
{
|
||||
channel = channel,
|
||||
});
|
||||
|
||||
/// <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)
|
||||
|
|
@ -1514,6 +1602,12 @@ namespace TL
|
|||
limit = limit,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/contacts.getBirthdays"/></para></summary>
|
||||
public static Task<Contacts_ContactBirthdays> Contacts_GetBirthdays(this Client client)
|
||||
=> client.Invoke(new Contacts_GetBirthdays
|
||||
{
|
||||
});
|
||||
|
||||
/// <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>
|
||||
public static Task<Messages_MessagesBase> Messages_GetMessages(this Client client, params InputMessage[] id)
|
||||
|
|
@ -1819,7 +1913,7 @@ namespace TL
|
|||
/// <param name="chat_id">Chat ID</param>
|
||||
/// <param name="user_id">User ID to be added</param>
|
||||
/// <param name="fwd_limit">Number of last messages to be forwarded</param>
|
||||
public static Task<UpdatesBase> Messages_AddChatUser(this Client client, long chat_id, InputUserBase user_id, int fwd_limit)
|
||||
public static Task<Messages_InvitedUsers> Messages_AddChatUser(this Client client, long chat_id, InputUserBase user_id, int fwd_limit)
|
||||
=> client.Invoke(new Messages_AddChatUser
|
||||
{
|
||||
chat_id = chat_id,
|
||||
|
|
@ -1843,7 +1937,7 @@ namespace TL
|
|||
/// <param name="users">List of user IDs to be invited</param>
|
||||
/// <param name="title">Chat name</param>
|
||||
/// <param name="ttl_period">Time-to-live of all messages that will be sent in the chat: once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use <see cref="Messages_SetDefaultHistoryTTL">Messages_SetDefaultHistoryTTL</see> to edit this value later.</param>
|
||||
public static Task<UpdatesBase> Messages_CreateChat(this Client client, InputUserBase[] users, string title, int? ttl_period = null)
|
||||
public static Task<Messages_InvitedUsers> Messages_CreateChat(this Client client, InputUserBase[] users, string title, int? ttl_period = null)
|
||||
=> client.Invoke(new Messages_CreateChat
|
||||
{
|
||||
flags = (Messages_CreateChat.Flags)(ttl_period != null ? 0x1 : 0),
|
||||
|
|
@ -2583,9 +2677,11 @@ namespace TL
|
|||
/// <param name="peer">The chat, can be <see langword="null"/> for bots and <see cref="InputPeerSelf"/> for users.</param>
|
||||
/// <param name="media">File uploaded in chunks as described in <a href="https://corefork.telegram.org/api/files">files »</a></param>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messageMediaEmpty">messageMediaEmpty</a></returns>
|
||||
public static Task<MessageMedia> Messages_UploadMedia(this Client client, InputPeer peer, InputMedia media)
|
||||
public static Task<MessageMedia> Messages_UploadMedia(this Client client, InputPeer peer, InputMedia media, string business_connection_id = null)
|
||||
=> client.Invoke(new Messages_UploadMedia
|
||||
{
|
||||
flags = (Messages_UploadMedia.Flags)(business_connection_id != null ? 0x1 : 0),
|
||||
business_connection_id = business_connection_id,
|
||||
peer = peer,
|
||||
media = media,
|
||||
});
|
||||
|
|
@ -3977,11 +4073,13 @@ namespace TL
|
|||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.sendQuickReplyMessages"/></para></summary>
|
||||
public static Task<UpdatesBase> Messages_SendQuickReplyMessages(this Client client, InputPeer peer, int shortcut_id)
|
||||
public static Task<UpdatesBase> Messages_SendQuickReplyMessages(this Client client, InputPeer peer, int shortcut_id, int[] id, params long[] random_id)
|
||||
=> client.Invoke(new Messages_SendQuickReplyMessages
|
||||
{
|
||||
peer = peer,
|
||||
shortcut_id = shortcut_id,
|
||||
id = id,
|
||||
random_id = random_id,
|
||||
});
|
||||
|
||||
/// <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> <para>See <a href="https://corefork.telegram.org/method/messages.deleteQuickReplyMessages"/></para></summary>
|
||||
|
|
@ -3999,6 +4097,14 @@ namespace TL
|
|||
enabled = enabled,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getMyStickers"/></para></summary>
|
||||
public static Task<Messages_MyStickers> Messages_GetMyStickers(this Client client, long offset_id = default, int limit = int.MaxValue)
|
||||
=> client.Invoke(new Messages_GetMyStickers
|
||||
{
|
||||
offset_id = offset_id,
|
||||
limit = limit,
|
||||
});
|
||||
|
||||
/// <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
|
||||
|
|
@ -4586,7 +4692,7 @@ namespace TL
|
|||
/// <summary>Invite users to a channel/supergroup <para>See <a href="https://corefork.telegram.org/method/channels.inviteToChannel"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403,406 (<a href="https://corefork.telegram.org/method/channels.inviteToChannel#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel">Channel/supergroup</param>
|
||||
/// <param name="users">Users to invite</param>
|
||||
public static Task<UpdatesBase> Channels_InviteToChannel(this Client client, InputChannelBase channel, params InputUserBase[] users)
|
||||
public static Task<Messages_InvitedUsers> Channels_InviteToChannel(this Client client, InputChannelBase channel, params InputUserBase[] users)
|
||||
=> client.Invoke(new Channels_InviteToChannel
|
||||
{
|
||||
channel = channel,
|
||||
|
|
@ -4627,10 +4733,10 @@ namespace TL
|
|||
/// <summary>Get <a href="https://corefork.telegram.org/api/channel">channels/supergroups/geogroups</a> we're admin in. Usually called when the user exceeds the <see cref="Config">limit</see> for owned public <a href="https://corefork.telegram.org/api/channel">channels/supergroups/geogroups</a>, and the user is given the choice to remove one of his channels/supergroups/geogroups. <para>See <a href="https://corefork.telegram.org/method/channels.getAdminedPublicChannels"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.getAdminedPublicChannels#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="by_location">Get geogroups</param>
|
||||
/// <param name="check_limit">If set and the user has reached the limit of owned public <a href="https://corefork.telegram.org/api/channel">channels/supergroups/geogroups</a>, instead of returning the channel list one of the specified <a href="https://corefork.telegram.org/method/channels.getAdminedPublicChannels#possible-errors">errors</a> will be returned.<br/>Useful to check if a new public channel can indeed be created, even before asking the user to enter a channel username to use in <see cref="Channels_CheckUsername">Channels_CheckUsername</see>/<see cref="Channels_UpdateUsername">Channels_UpdateUsername</see>.</param>
|
||||
public static Task<Messages_Chats> Channels_GetAdminedPublicChannels(this Client client, bool by_location = false, bool check_limit = false)
|
||||
public static Task<Messages_Chats> Channels_GetAdminedPublicChannels(this Client client, bool by_location = false, bool check_limit = false, bool for_personal = false)
|
||||
=> client.Invoke(new Channels_GetAdminedPublicChannels
|
||||
{
|
||||
flags = (Channels_GetAdminedPublicChannels.Flags)((by_location ? 0x1 : 0) | (check_limit ? 0x2 : 0)),
|
||||
flags = (Channels_GetAdminedPublicChannels.Flags)((by_location ? 0x1 : 0) | (check_limit ? 0x2 : 0) | (for_personal ? 0x4 : 0)),
|
||||
});
|
||||
|
||||
/// <summary>Ban/unban/kick a user in a <a href="https://corefork.telegram.org/api/channel">supergroup/channel</a>. <para>See <a href="https://corefork.telegram.org/method/channels.editBanned"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403,406 (<a href="https://corefork.telegram.org/method/channels.editBanned#possible-errors">details</a>)</para></summary>
|
||||
|
|
@ -5076,6 +5182,23 @@ namespace TL
|
|||
stickerset = stickerset,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.reportSponsoredMessage"/></para></summary>
|
||||
public static Task<Channels_SponsoredMessageReportResult> Channels_ReportSponsoredMessage(this Client client, InputChannelBase channel, byte[] random_id, byte[] option)
|
||||
=> client.Invoke(new Channels_ReportSponsoredMessage
|
||||
{
|
||||
channel = channel,
|
||||
random_id = random_id,
|
||||
option = option,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.restrictSponsoredMessages"/></para></summary>
|
||||
public static Task<UpdatesBase> Channels_RestrictSponsoredMessages(this Client client, InputChannelBase channel, bool restricted)
|
||||
=> client.Invoke(new Channels_RestrictSponsoredMessages
|
||||
{
|
||||
channel = channel,
|
||||
restricted = restricted,
|
||||
});
|
||||
|
||||
/// <summary>Sends a custom request; for bots only <para>See <a href="https://corefork.telegram.org/method/bots.sendCustomRequest"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/bots.sendCustomRequest#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="custom_method">The method name</param>
|
||||
/// <param name="params_">JSON-serialized method parameters</param>
|
||||
|
|
@ -5401,8 +5524,6 @@ namespace TL
|
|||
|
||||
/// <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>
|
||||
/// <param name="videos">Whether this is a video 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="text_color">Whether the color of TGS custom emojis contained in this set should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context. For custom emoji stickersets only.</param>
|
||||
/// <param name="user_id">Stickerset owner</param>
|
||||
|
|
@ -5412,10 +5533,10 @@ namespace TL
|
|||
/// <param name="stickers">Stickers</param>
|
||||
/// <param name="software">Used when <a href="https://corefork.telegram.org/import-stickers">importing stickers using the sticker import SDKs</a>, specifies the name of the software that created the stickers</param>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.stickerSetNotModified">messages.stickerSetNotModified</a></returns>
|
||||
public static Task<Messages_StickerSet> Stickers_CreateStickerSet(this Client client, InputUserBase user_id, string title, string short_name, InputStickerSetItem[] stickers, InputDocument thumb = null, string software = null, bool masks = false, bool animated = false, bool videos = false, bool emojis = false, bool text_color = false)
|
||||
public static Task<Messages_StickerSet> Stickers_CreateStickerSet(this Client client, InputUserBase user_id, string title, string short_name, InputStickerSetItem[] stickers, InputDocument thumb = null, string software = null, bool masks = false, bool emojis = false, bool text_color = false)
|
||||
=> client.Invoke(new Stickers_CreateStickerSet
|
||||
{
|
||||
flags = (Stickers_CreateStickerSet.Flags)((thumb != null ? 0x4 : 0) | (software != null ? 0x8 : 0) | (masks ? 0x1 : 0) | (animated ? 0x2 : 0) | (videos ? 0x10 : 0) | (emojis ? 0x20 : 0) | (text_color ? 0x40 : 0)),
|
||||
flags = (Stickers_CreateStickerSet.Flags)((thumb != null ? 0x4 : 0) | (software != null ? 0x8 : 0) | (masks ? 0x1 : 0) | (emojis ? 0x20 : 0) | (text_color ? 0x40 : 0)),
|
||||
user_id = user_id,
|
||||
title = title,
|
||||
short_name = short_name,
|
||||
|
|
@ -5520,6 +5641,15 @@ namespace TL
|
|||
stickerset = stickerset,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/stickers.replaceSticker"/></para></summary>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.stickerSetNotModified">messages.stickerSetNotModified</a></returns>
|
||||
public static Task<Messages_StickerSet> Stickers_ReplaceSticker(this Client client, InputDocument sticker, InputStickerSetItem new_sticker)
|
||||
=> client.Invoke(new Stickers_ReplaceSticker
|
||||
{
|
||||
sticker = sticker,
|
||||
new_sticker = new_sticker,
|
||||
});
|
||||
|
||||
/// <summary>Get phone call configuration to be passed to libtgvoip's shared config <para>See <a href="https://corefork.telegram.org/method/phone.getCallConfig"/></para></summary>
|
||||
public static Task<DataJSON> Phone_GetCallConfig(this Client client)
|
||||
=> client.Invoke(new Phone_GetCallConfig
|
||||
|
|
@ -6018,6 +6148,31 @@ namespace TL
|
|||
limit = limit,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/stats.getBroadcastRevenueStats"/></para></summary>
|
||||
public static Task<Stats_BroadcastRevenueStats> Stats_GetBroadcastRevenueStats(this Client client, InputChannelBase channel, bool dark = false)
|
||||
=> client.Invoke(new Stats_GetBroadcastRevenueStats
|
||||
{
|
||||
flags = (Stats_GetBroadcastRevenueStats.Flags)(dark ? 0x1 : 0),
|
||||
channel = channel,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/stats.getBroadcastRevenueWithdrawalUrl"/></para></summary>
|
||||
public static Task<Stats_BroadcastRevenueWithdrawalUrl> Stats_GetBroadcastRevenueWithdrawalUrl(this Client client, InputChannelBase channel, InputCheckPasswordSRP password)
|
||||
=> client.Invoke(new Stats_GetBroadcastRevenueWithdrawalUrl
|
||||
{
|
||||
channel = channel,
|
||||
password = password,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/stats.getBroadcastRevenueTransactions"/></para></summary>
|
||||
public static Task<Stats_BroadcastRevenueTransactions> Stats_GetBroadcastRevenueTransactions(this Client client, InputChannelBase channel, int offset = default, int limit = int.MaxValue)
|
||||
=> client.Invoke(new Stats_GetBroadcastRevenueTransactions
|
||||
{
|
||||
channel = channel,
|
||||
offset = offset,
|
||||
limit = limit,
|
||||
});
|
||||
|
||||
/// <summary>Export a <a href="https://corefork.telegram.org/api/folders">folder »</a>, creating a <a href="https://corefork.telegram.org/api/links#chat-folder-links">chat folder deep link »</a>. <para>See <a href="https://corefork.telegram.org/method/chatlists.exportChatlistInvite"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/chatlists.exportChatlistInvite#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="chatlist">The folder to export</param>
|
||||
/// <param name="title">An optional name for the link</param>
|
||||
|
|
@ -6507,6 +6662,13 @@ namespace TL
|
|||
job_id = job_id,
|
||||
error = error,
|
||||
});
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/fragment.getCollectibleInfo"/></para></summary>
|
||||
public static Task<Fragment_CollectibleInfo> Fragment_GetCollectibleInfo(this Client client, InputCollectible collectible)
|
||||
=> client.Invoke(new Fragment_GetCollectibleInfo
|
||||
{
|
||||
collectible = collectible,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -6576,6 +6738,13 @@ namespace TL.Methods
|
|||
public IMethod<X> query;
|
||||
}
|
||||
|
||||
[TLDef(0xDD289F8E)]
|
||||
public sealed partial class InvokeWithBusinessConnection<X> : IMethod<X>
|
||||
{
|
||||
public string connection_id;
|
||||
public IMethod<X> query;
|
||||
}
|
||||
|
||||
[TLDef(0xA677244F)]
|
||||
public sealed partial class Auth_SendCode : IMethod<Auth_SentCodeBase>
|
||||
{
|
||||
|
|
@ -7479,12 +7648,12 @@ namespace TL.Methods
|
|||
}
|
||||
}
|
||||
|
||||
[TLDef(0x9C2D527D)]
|
||||
[TLDef(0x43D8521D)]
|
||||
public sealed partial class Account_UpdateConnectedBot : IMethod<UpdatesBase>
|
||||
{
|
||||
public Flags flags;
|
||||
public InputUserBase bot;
|
||||
public InputBusinessRecipients recipients;
|
||||
public InputBusinessBotRecipients recipients;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
|
|
@ -7496,6 +7665,83 @@ namespace TL.Methods
|
|||
[TLDef(0x4EA4C80F)]
|
||||
public sealed partial class Account_GetConnectedBots : IMethod<Account_ConnectedBots> { }
|
||||
|
||||
[TLDef(0x76A86270)]
|
||||
public sealed partial class Account_GetBotBusinessConnection : IMethod<UpdatesBase>
|
||||
{
|
||||
public string connection_id;
|
||||
}
|
||||
|
||||
[TLDef(0xA614D034)]
|
||||
public sealed partial class Account_UpdateBusinessIntro : IMethod<bool>
|
||||
{
|
||||
public Flags flags;
|
||||
[IfFlag(0)] public InputBusinessIntro intro;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_intro = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
[TLDef(0x646E1097)]
|
||||
public sealed partial class Account_ToggleConnectedBotPaused : IMethod<bool>
|
||||
{
|
||||
public InputPeer peer;
|
||||
public bool paused;
|
||||
}
|
||||
|
||||
[TLDef(0x5E437ED9)]
|
||||
public sealed partial class Account_DisablePeerConnectedBot : IMethod<bool>
|
||||
{
|
||||
public InputPeer peer;
|
||||
}
|
||||
|
||||
[TLDef(0xCC6E0C11)]
|
||||
public sealed partial class Account_UpdateBirthday : IMethod<bool>
|
||||
{
|
||||
public Flags flags;
|
||||
[IfFlag(0)] public Birthday birthday;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_birthday = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
[TLDef(0x8851E68E)]
|
||||
public sealed partial class Account_CreateBusinessChatLink : IMethod<BusinessChatLink>
|
||||
{
|
||||
public InputBusinessChatLink link;
|
||||
}
|
||||
|
||||
[TLDef(0x8C3410AF)]
|
||||
public sealed partial class Account_EditBusinessChatLink : IMethod<BusinessChatLink>
|
||||
{
|
||||
public string slug;
|
||||
public InputBusinessChatLink link;
|
||||
}
|
||||
|
||||
[TLDef(0x60073674)]
|
||||
public sealed partial class Account_DeleteBusinessChatLink : IMethod<bool>
|
||||
{
|
||||
public string slug;
|
||||
}
|
||||
|
||||
[TLDef(0x6F70DDE1)]
|
||||
public sealed partial class Account_GetBusinessChatLinks : IMethod<Account_BusinessChatLinks> { }
|
||||
|
||||
[TLDef(0x5492E5EE)]
|
||||
public sealed partial class Account_ResolveBusinessChatLink : IMethod<Account_ResolvedBusinessChatLinks>
|
||||
{
|
||||
public string slug;
|
||||
}
|
||||
|
||||
[TLDef(0xD94305E0)]
|
||||
public sealed partial class Account_UpdatePersonalChannel : IMethod<bool>
|
||||
{
|
||||
public InputChannelBase channel;
|
||||
}
|
||||
|
||||
[TLDef(0x0D91A548)]
|
||||
public sealed partial class Users_GetUsers : IMethod<UserBase[]>
|
||||
{
|
||||
|
|
@ -7727,6 +7973,9 @@ namespace TL.Methods
|
|||
}
|
||||
}
|
||||
|
||||
[TLDef(0xDAEDA864)]
|
||||
public sealed partial class Contacts_GetBirthdays : IMethod<Contacts_ContactBirthdays> { }
|
||||
|
||||
[TLDef(0x63C66506)]
|
||||
public sealed partial class Messages_GetMessages : IMethod<Messages_MessagesBase>
|
||||
{
|
||||
|
|
@ -7989,8 +8238,8 @@ namespace TL.Methods
|
|||
public InputChatPhotoBase photo;
|
||||
}
|
||||
|
||||
[TLDef(0xF24753E3)]
|
||||
public sealed partial class Messages_AddChatUser : IMethod<UpdatesBase>
|
||||
[TLDef(0xCBC6D107)]
|
||||
public sealed partial class Messages_AddChatUser : IMethod<Messages_InvitedUsers>
|
||||
{
|
||||
public long chat_id;
|
||||
public InputUserBase user_id;
|
||||
|
|
@ -8010,8 +8259,8 @@ namespace TL.Methods
|
|||
}
|
||||
}
|
||||
|
||||
[TLDef(0x0034A818)]
|
||||
public sealed partial class Messages_CreateChat : IMethod<UpdatesBase>
|
||||
[TLDef(0x92CEDDD4)]
|
||||
public sealed partial class Messages_CreateChat : IMethod<Messages_InvitedUsers>
|
||||
{
|
||||
public Flags flags;
|
||||
public InputUserBase[] users;
|
||||
|
|
@ -8665,11 +8914,18 @@ namespace TL.Methods
|
|||
}
|
||||
}
|
||||
|
||||
[TLDef(0x519BC2B1)]
|
||||
[TLDef(0x14967978)]
|
||||
public sealed partial class Messages_UploadMedia : IMethod<MessageMedia>
|
||||
{
|
||||
public Flags flags;
|
||||
[IfFlag(0)] public string business_connection_id;
|
||||
public InputPeer peer;
|
||||
public InputMedia media;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
has_business_connection_id = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
[TLDef(0xA1405817)]
|
||||
|
|
@ -9846,11 +10102,13 @@ namespace TL.Methods
|
|||
}
|
||||
}
|
||||
|
||||
[TLDef(0x33153AD4)]
|
||||
[TLDef(0x6C750DE1)]
|
||||
public sealed partial class Messages_SendQuickReplyMessages : IMethod<UpdatesBase>
|
||||
{
|
||||
public InputPeer peer;
|
||||
public int shortcut_id;
|
||||
public int[] id;
|
||||
public long[] random_id;
|
||||
}
|
||||
|
||||
[TLDef(0xE105E910)]
|
||||
|
|
@ -9866,6 +10124,13 @@ namespace TL.Methods
|
|||
public bool enabled;
|
||||
}
|
||||
|
||||
[TLDef(0xD0B5E1FC)]
|
||||
public sealed partial class Messages_GetMyStickers : IMethod<Messages_MyStickers>
|
||||
{
|
||||
public long offset_id;
|
||||
public int limit;
|
||||
}
|
||||
|
||||
[TLDef(0xEDD4882A)]
|
||||
public sealed partial class Updates_GetState : IMethod<Updates_State> { }
|
||||
|
||||
|
|
@ -10299,8 +10564,8 @@ namespace TL.Methods
|
|||
public InputChannelBase channel;
|
||||
}
|
||||
|
||||
[TLDef(0x199F3A6C)]
|
||||
public sealed partial class Channels_InviteToChannel : IMethod<UpdatesBase>
|
||||
[TLDef(0xC9E33D54)]
|
||||
public sealed partial class Channels_InviteToChannel : IMethod<Messages_InvitedUsers>
|
||||
{
|
||||
public InputChannelBase channel;
|
||||
public InputUserBase[] users;
|
||||
|
|
@ -10342,6 +10607,7 @@ namespace TL.Methods
|
|||
{
|
||||
by_location = 0x1,
|
||||
check_limit = 0x2,
|
||||
for_personal = 0x4,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -10691,6 +10957,21 @@ namespace TL.Methods
|
|||
public InputStickerSet stickerset;
|
||||
}
|
||||
|
||||
[TLDef(0xAF8FF6B9)]
|
||||
public sealed partial class Channels_ReportSponsoredMessage : IMethod<Channels_SponsoredMessageReportResult>
|
||||
{
|
||||
public InputChannelBase channel;
|
||||
public byte[] random_id;
|
||||
public byte[] option;
|
||||
}
|
||||
|
||||
[TLDef(0x9AE91519)]
|
||||
public sealed partial class Channels_RestrictSponsoredMessages : IMethod<UpdatesBase>
|
||||
{
|
||||
public InputChannelBase channel;
|
||||
public bool restricted;
|
||||
}
|
||||
|
||||
[TLDef(0xAA2769ED)]
|
||||
public sealed partial class Bots_SendCustomRequest : IMethod<DataJSON>
|
||||
{
|
||||
|
|
@ -10971,10 +11252,8 @@ namespace TL.Methods
|
|||
[Flags] public enum Flags : uint
|
||||
{
|
||||
masks = 0x1,
|
||||
animated = 0x2,
|
||||
has_thumb = 0x4,
|
||||
has_software = 0x8,
|
||||
videos = 0x10,
|
||||
emojis = 0x20,
|
||||
text_color = 0x40,
|
||||
}
|
||||
|
|
@ -11057,6 +11336,13 @@ namespace TL.Methods
|
|||
public InputStickerSet stickerset;
|
||||
}
|
||||
|
||||
[TLDef(0x4696459A)]
|
||||
public sealed partial class Stickers_ReplaceSticker : IMethod<Messages_StickerSet>
|
||||
{
|
||||
public InputDocument sticker;
|
||||
public InputStickerSetItem new_sticker;
|
||||
}
|
||||
|
||||
[TLDef(0x55451FA9)]
|
||||
public sealed partial class Phone_GetCallConfig : IMethod<DataJSON> { }
|
||||
|
||||
|
|
@ -11474,6 +11760,33 @@ namespace TL.Methods
|
|||
public int limit;
|
||||
}
|
||||
|
||||
[TLDef(0x75DFB671)]
|
||||
public sealed partial class Stats_GetBroadcastRevenueStats : IMethod<Stats_BroadcastRevenueStats>
|
||||
{
|
||||
public Flags flags;
|
||||
public InputChannelBase channel;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
dark = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
[TLDef(0x2A65EF73)]
|
||||
public sealed partial class Stats_GetBroadcastRevenueWithdrawalUrl : IMethod<Stats_BroadcastRevenueWithdrawalUrl>
|
||||
{
|
||||
public InputChannelBase channel;
|
||||
public InputCheckPasswordSRP password;
|
||||
}
|
||||
|
||||
[TLDef(0x0069280F)]
|
||||
public sealed partial class Stats_GetBroadcastRevenueTransactions : IMethod<Stats_BroadcastRevenueTransactions>
|
||||
{
|
||||
public InputChannelBase channel;
|
||||
public int offset;
|
||||
public int limit;
|
||||
}
|
||||
|
||||
[TLDef(0x8472478E)]
|
||||
public sealed partial class Chatlists_ExportChatlistInvite : IMethod<Chatlists_ExportedChatlistInvite>
|
||||
{
|
||||
|
|
@ -11878,4 +12191,10 @@ namespace TL.Methods
|
|||
has_error = 0x1,
|
||||
}
|
||||
}
|
||||
|
||||
[TLDef(0xBE1E85BA)]
|
||||
public sealed partial class Fragment_GetCollectibleInfo : IMethod<Fragment_CollectibleInfo>
|
||||
{
|
||||
public InputCollectible collectible;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace TL
|
|||
{
|
||||
public static partial class Layer
|
||||
{
|
||||
public const int Version = 176; // fetched 08/03/2024 11:12:00
|
||||
public const int Version = 177; // fetched 03/04/2024 02:27:33
|
||||
internal const int SecretChats = 144;
|
||||
internal const int MTProto2 = 73;
|
||||
internal const uint VectorCtor = 0x1CB5C415;
|
||||
|
|
@ -145,7 +145,7 @@ namespace TL
|
|||
[0x37C1011C] = null,//ChatPhotoEmpty
|
||||
[0x1C6E1C11] = typeof(ChatPhoto),
|
||||
[0x90A6CA84] = typeof(MessageEmpty),
|
||||
[0xA66C7EFC] = typeof(Message),
|
||||
[0x2357BF25] = typeof(Message),
|
||||
[0x2B085862] = typeof(MessageService),
|
||||
[0x3DED6320] = null,//MessageMediaEmpty
|
||||
[0x695150D7] = typeof(MessageMediaPhoto),
|
||||
|
|
@ -205,6 +205,7 @@ namespace TL
|
|||
[0x332BA9ED] = typeof(MessageActionGiveawayLaunch),
|
||||
[0x2A9FADC5] = typeof(MessageActionGiveawayResults),
|
||||
[0xCC02AA6D] = typeof(MessageActionBoostApply),
|
||||
[0x93B31848] = typeof(MessageActionRequestedPeerSentMe),
|
||||
[0xD58A08C6] = typeof(Dialog),
|
||||
[0x71BD134C] = typeof(DialogFolder),
|
||||
[0x2331B22D] = typeof(PhotoEmpty),
|
||||
|
|
@ -229,10 +230,10 @@ namespace TL
|
|||
[0x5C467992] = typeof(InputNotifyForumTopic),
|
||||
[0xCACB6AE2] = typeof(InputPeerNotifySettings),
|
||||
[0x99622C0C] = typeof(PeerNotifySettings),
|
||||
[0xA518110D] = typeof(PeerSettings),
|
||||
[0xACD66C5E] = typeof(PeerSettings),
|
||||
[0xA437C3ED] = typeof(WallPaper),
|
||||
[0xE0804116] = typeof(WallPaperNoFile),
|
||||
[0x22FF3E85] = typeof(UserFull),
|
||||
[0xCC997720] = typeof(UserFull),
|
||||
[0x145ADE0B] = typeof(Contact),
|
||||
[0xC13E3C50] = typeof(ImportedContact),
|
||||
[0x16D9703B] = typeof(ContactStatus),
|
||||
|
|
@ -380,7 +381,6 @@ namespace TL
|
|||
[0xFE198602] = typeof(UpdateChannelPinnedTopics),
|
||||
[0x20529438] = typeof(UpdateUser),
|
||||
[0xEC05B097] = typeof(UpdateAutoSaveSettings),
|
||||
[0xCCF08AD6] = typeof(UpdateGroupInvitePrivacyForbidden),
|
||||
[0x75B3B798] = typeof(UpdateStory),
|
||||
[0xF74E932B] = typeof(UpdateReadStories),
|
||||
[0x1BF335B9] = typeof(UpdateStoryID),
|
||||
|
|
@ -400,6 +400,10 @@ namespace TL
|
|||
[0x53E6F1EC] = typeof(UpdateDeleteQuickReply),
|
||||
[0x3E050D0F] = typeof(UpdateQuickReplyMessage),
|
||||
[0x566FE7CD] = typeof(UpdateDeleteQuickReplyMessages),
|
||||
[0x8AE5C97A] = typeof(UpdateBotBusinessConnect),
|
||||
[0x9DDB347C] = typeof(UpdateBotNewBusinessMessage),
|
||||
[0x07DF587C] = typeof(UpdateBotEditBusinessMessage),
|
||||
[0xA02A982E] = typeof(UpdateBotDeleteBusinessMessage),
|
||||
[0xA56C2A3E] = typeof(Updates_State),
|
||||
[0x5D75A138] = typeof(Updates_DifferenceEmpty),
|
||||
[0x00F49CA0] = typeof(Updates_Difference),
|
||||
|
|
@ -479,6 +483,7 @@ namespace TL
|
|||
[0x840649CF] = typeof(InputPrivacyValueAllowChatParticipants),
|
||||
[0xE94F0F86] = typeof(InputPrivacyValueDisallowChatParticipants),
|
||||
[0x2F453E49] = typeof(InputPrivacyValueAllowCloseFriends),
|
||||
[0x77CDC9F1] = typeof(InputPrivacyValueAllowPremium),
|
||||
[0xFFFE1BAC] = typeof(PrivacyValueAllowContacts),
|
||||
[0x65427B82] = typeof(PrivacyValueAllowAll),
|
||||
[0xB8905FB2] = typeof(PrivacyValueAllowUsers),
|
||||
|
|
@ -488,6 +493,7 @@ namespace TL
|
|||
[0x6B134E8E] = typeof(PrivacyValueAllowChatParticipants),
|
||||
[0x41C87565] = typeof(PrivacyValueDisallowChatParticipants),
|
||||
[0xF7E8D89B] = typeof(PrivacyValueAllowCloseFriends),
|
||||
[0xECE9814B] = typeof(PrivacyValueAllowPremium),
|
||||
[0x50A04E45] = typeof(Account_PrivacyRules),
|
||||
[0xB8D0AFDF] = typeof(AccountDaysTTL),
|
||||
[0x6C37C15C] = typeof(DocumentAttributeImageSize),
|
||||
|
|
@ -552,6 +558,7 @@ namespace TL
|
|||
[0x13767230] = typeof(KeyboardButtonWebView),
|
||||
[0xA0C0505C] = typeof(KeyboardButtonSimpleWebView),
|
||||
[0x53D7BFD8] = typeof(KeyboardButtonRequestPeer),
|
||||
[0xC9662D05] = typeof(InputKeyboardButtonRequestPeer),
|
||||
[0x77608B83] = typeof(KeyboardButtonRow),
|
||||
[0xA03E5B85] = typeof(ReplyKeyboardHide),
|
||||
[0x86B40B08] = typeof(ReplyKeyboardForceReply),
|
||||
|
|
@ -750,7 +757,7 @@ namespace TL
|
|||
[0xC5226F17] = typeof(PhoneCallWaiting),
|
||||
[0x14B0ED0C] = typeof(PhoneCallRequested),
|
||||
[0x3660C311] = typeof(PhoneCallAccepted),
|
||||
[0x967F7C67] = typeof(PhoneCall),
|
||||
[0x30535AF5] = typeof(PhoneCall),
|
||||
[0x50CA4DE1] = typeof(PhoneCallDiscarded),
|
||||
[0x9CC123C7] = typeof(PhoneConnection),
|
||||
[0x635FE375] = typeof(PhoneConnectionWebrtc),
|
||||
|
|
@ -1220,9 +1227,40 @@ namespace TL
|
|||
[0x01190CF1] = typeof(InputQuickReplyShortcutId),
|
||||
[0xC68D6695] = typeof(Messages_QuickReplies),
|
||||
[0x5F91EB5B] = null,//Messages_QuickRepliesNotModified
|
||||
[0xE7E999E7] = typeof(ConnectedBot),
|
||||
[0xBD068601] = typeof(ConnectedBot),
|
||||
[0x17D7F87B] = typeof(Account_ConnectedBots),
|
||||
[0x2AD93719] = typeof(Messages_DialogFilters),
|
||||
[0x6C8E1E06] = typeof(Birthday),
|
||||
[0x896433B4] = typeof(BotBusinessConnection),
|
||||
[0x09C469CD] = typeof(InputBusinessIntro),
|
||||
[0x5A0A066D] = typeof(BusinessIntro),
|
||||
[0xFAFF629D] = typeof(Messages_MyStickers),
|
||||
[0xE39460A9] = typeof(InputCollectibleUsername),
|
||||
[0xA2E214A4] = typeof(InputCollectiblePhone),
|
||||
[0x6EBDFF91] = typeof(Fragment_CollectibleInfo),
|
||||
[0xC4E5921E] = typeof(InputBusinessBotRecipients),
|
||||
[0xB88CF373] = typeof(BusinessBotRecipients),
|
||||
[0x1D998733] = typeof(ContactBirthday),
|
||||
[0x114FF30D] = typeof(Contacts_ContactBirthdays),
|
||||
[0x628C9224] = typeof(MissingInvitee),
|
||||
[0x7F5DEFA6] = typeof(Messages_InvitedUsers),
|
||||
[0x11679FA7] = typeof(InputBusinessChatLink),
|
||||
[0xB4AE666F] = typeof(BusinessChatLink),
|
||||
[0xEC43A2D1] = typeof(Account_BusinessChatLinks),
|
||||
[0x9A23AF21] = typeof(Account_ResolvedBusinessChatLinks),
|
||||
[0xD62FF46A] = typeof(RequestedPeerUser),
|
||||
[0x7307544F] = typeof(RequestedPeerChat),
|
||||
[0x8BA403E4] = typeof(RequestedPeerChannel),
|
||||
[0x430D3150] = typeof(SponsoredMessageReportOption),
|
||||
[0x846F9E42] = typeof(Channels_SponsoredMessageReportResultChooseOption),
|
||||
[0x3E3BCF2F] = typeof(Channels_SponsoredMessageReportResultAdsHidden),
|
||||
[0xAD798849] = typeof(Channels_SponsoredMessageReportResultReported),
|
||||
[0xD07B4BAD] = typeof(Stats_BroadcastRevenueStats),
|
||||
[0xEC659737] = typeof(Stats_BroadcastRevenueWithdrawalUrl),
|
||||
[0x557E2CC4] = typeof(BroadcastRevenueTransactionProceeds),
|
||||
[0x5A590978] = typeof(BroadcastRevenueTransactionWithdrawal),
|
||||
[0x42D30D2E] = typeof(BroadcastRevenueTransactionRefund),
|
||||
[0x87158466] = typeof(Stats_BroadcastRevenueTransactions),
|
||||
// from TL.Secret:
|
||||
[0x6ABD9782] = typeof(Layer143.DecryptedMessageMediaDocument),
|
||||
[0x91CC4674] = typeof(Layer73.DecryptedMessage),
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<PackageId>WTelegramClient</PackageId>
|
||||
<Version>0.0.0</Version>
|
||||
<Authors>Wizou</Authors>
|
||||
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 176 Release Notes: $(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
|
||||
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 177 Release Notes: $(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
|
||||
<Copyright>Copyright © Olivier Marcoux 2021-2024</Copyright>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<PackageProjectUrl>https://github.com/wiz0u/WTelegramClient</PackageProjectUrl>
|
||||
|
|
|
|||
Loading…
Reference in a new issue