API Layer 165: minor changes to WebPage, channel boost url

This commit is contained in:
Wizou 2023-10-04 19:24:53 +02:00
parent 88e2f5d71e
commit 2b7868ee16
5 changed files with 141 additions and 60 deletions

View file

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

View file

@ -178,7 +178,7 @@ namespace TL
public override string Name { get => name; set => name = value; }
}
/// <summary>Defines media content of a message. <para>See <a href="https://corefork.telegram.org/type/InputMedia"/></para> <para>Derived classes: <see cref="InputMediaUploadedPhoto"/>, <see cref="InputMediaPhoto"/>, <see cref="InputMediaGeoPoint"/>, <see cref="InputMediaContact"/>, <see cref="InputMediaUploadedDocument"/>, <see cref="InputMediaDocument"/>, <see cref="InputMediaVenue"/>, <see cref="InputMediaPhotoExternal"/>, <see cref="InputMediaDocumentExternal"/>, <see cref="InputMediaGame"/>, <see cref="InputMediaInvoice"/>, <see cref="InputMediaGeoLive"/>, <see cref="InputMediaPoll"/>, <see cref="InputMediaDice"/></para></summary>
/// <summary>Defines media content of a message. <para>See <a href="https://corefork.telegram.org/type/InputMedia"/></para> <para>Derived classes: <see cref="InputMediaUploadedPhoto"/>, <see cref="InputMediaPhoto"/>, <see cref="InputMediaGeoPoint"/>, <see cref="InputMediaContact"/>, <see cref="InputMediaUploadedDocument"/>, <see cref="InputMediaDocument"/>, <see cref="InputMediaVenue"/>, <see cref="InputMediaPhotoExternal"/>, <see cref="InputMediaDocumentExternal"/>, <see cref="InputMediaGame"/>, <see cref="InputMediaInvoice"/>, <see cref="InputMediaGeoLive"/>, <see cref="InputMediaPoll"/>, <see cref="InputMediaDice"/>, <see cref="InputMediaStory"/></para></summary>
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/inputMediaEmpty">inputMediaEmpty</a></remarks>
public abstract class InputMedia : IObject { }
/// <summary>Photo <para>See <a href="https://corefork.telegram.org/constructor/inputMediaUploadedPhoto"/></para></summary>
@ -1745,7 +1745,7 @@ namespace TL
public override int TtlPeriod => ttl_period;
}
/// <summary>Media <para>See <a href="https://corefork.telegram.org/type/MessageMedia"/></para> <para>Derived classes: <see cref="MessageMediaPhoto"/>, <see cref="MessageMediaGeo"/>, <see cref="MessageMediaContact"/>, <see cref="MessageMediaUnsupported"/>, <see cref="MessageMediaDocument"/>, <see cref="MessageMediaWebPage"/>, <see cref="MessageMediaVenue"/>, <see cref="MessageMediaGame"/>, <see cref="MessageMediaInvoice"/>, <see cref="MessageMediaGeoLive"/>, <see cref="MessageMediaPoll"/>, <see cref="MessageMediaDice"/></para></summary>
/// <summary>Media <para>See <a href="https://corefork.telegram.org/type/MessageMedia"/></para> <para>Derived classes: <see cref="MessageMediaPhoto"/>, <see cref="MessageMediaGeo"/>, <see cref="MessageMediaContact"/>, <see cref="MessageMediaUnsupported"/>, <see cref="MessageMediaDocument"/>, <see cref="MessageMediaWebPage"/>, <see cref="MessageMediaVenue"/>, <see cref="MessageMediaGame"/>, <see cref="MessageMediaInvoice"/>, <see cref="MessageMediaGeoLive"/>, <see cref="MessageMediaPoll"/>, <see cref="MessageMediaDice"/>, <see cref="MessageMediaStory"/></para></summary>
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/messageMediaEmpty">messageMediaEmpty</a></remarks>
public abstract partial class MessageMedia : IObject { }
/// <summary>Attached photo. <para>See <a href="https://corefork.telegram.org/constructor/messageMediaPhoto"/></para></summary>
@ -1933,6 +1933,7 @@ namespace TL
[TLDef(0x68CB6283)]
public class MessageMediaStory : MessageMedia
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public Peer peer;
public int id;
@ -1940,6 +1941,7 @@ namespace TL
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="story"/> has a value</summary>
has_story = 0x1,
via_mention = 0x2,
}
@ -3342,7 +3344,7 @@ namespace TL
[TLDef(0x1BB00451)]
public class InputMessagesFilterPinned : MessagesFilter { }
/// <summary>Object contains info on events occurred. <para>See <a href="https://corefork.telegram.org/type/Update"/></para> <para>Derived classes: <see cref="UpdateNewMessage"/>, <see cref="UpdateMessageID"/>, <see cref="UpdateDeleteMessages"/>, <see cref="UpdateUserTyping"/>, <see cref="UpdateChatUserTyping"/>, <see cref="UpdateChatParticipants"/>, <see cref="UpdateUserStatus"/>, <see cref="UpdateUserName"/>, <see cref="UpdateNewEncryptedMessage"/>, <see cref="UpdateEncryptedChatTyping"/>, <see cref="UpdateEncryption"/>, <see cref="UpdateEncryptedMessagesRead"/>, <see cref="UpdateChatParticipantAdd"/>, <see cref="UpdateChatParticipantDelete"/>, <see cref="UpdateDcOptions"/>, <see cref="UpdateNotifySettings"/>, <see cref="UpdateServiceNotification"/>, <see cref="UpdatePrivacy"/>, <see cref="UpdateUserPhone"/>, <see cref="UpdateReadHistoryInbox"/>, <see cref="UpdateReadHistoryOutbox"/>, <see cref="UpdateWebPage"/>, <see cref="UpdateReadMessagesContents"/>, <see cref="UpdateChannelTooLong"/>, <see cref="UpdateChannel"/>, <see cref="UpdateNewChannelMessage"/>, <see cref="UpdateReadChannelInbox"/>, <see cref="UpdateDeleteChannelMessages"/>, <see cref="UpdateChannelMessageViews"/>, <see cref="UpdateChatParticipantAdmin"/>, <see cref="UpdateNewStickerSet"/>, <see cref="UpdateStickerSetsOrder"/>, <see cref="UpdateStickerSets"/>, <see cref="UpdateSavedGifs"/>, <see cref="UpdateBotInlineQuery"/>, <see cref="UpdateBotInlineSend"/>, <see cref="UpdateEditChannelMessage"/>, <see cref="UpdateBotCallbackQuery"/>, <see cref="UpdateEditMessage"/>, <see cref="UpdateInlineBotCallbackQuery"/>, <see cref="UpdateReadChannelOutbox"/>, <see cref="UpdateDraftMessage"/>, <see cref="UpdateReadFeaturedStickers"/>, <see cref="UpdateRecentStickers"/>, <see cref="UpdateConfig"/>, <see cref="UpdatePtsChanged"/>, <see cref="UpdateChannelWebPage"/>, <see cref="UpdateDialogPinned"/>, <see cref="UpdatePinnedDialogs"/>, <see cref="UpdateBotWebhookJSON"/>, <see cref="UpdateBotWebhookJSONQuery"/>, <see cref="UpdateBotShippingQuery"/>, <see cref="UpdateBotPrecheckoutQuery"/>, <see cref="UpdatePhoneCall"/>, <see cref="UpdateLangPackTooLong"/>, <see cref="UpdateLangPack"/>, <see cref="UpdateFavedStickers"/>, <see cref="UpdateChannelReadMessagesContents"/>, <see cref="UpdateContactsReset"/>, <see cref="UpdateChannelAvailableMessages"/>, <see cref="UpdateDialogUnreadMark"/>, <see cref="UpdateMessagePoll"/>, <see cref="UpdateChatDefaultBannedRights"/>, <see cref="UpdateFolderPeers"/>, <see cref="UpdatePeerSettings"/>, <see cref="UpdatePeerLocated"/>, <see cref="UpdateNewScheduledMessage"/>, <see cref="UpdateDeleteScheduledMessages"/>, <see cref="UpdateTheme"/>, <see cref="UpdateGeoLiveViewed"/>, <see cref="UpdateLoginToken"/>, <see cref="UpdateMessagePollVote"/>, <see cref="UpdateDialogFilter"/>, <see cref="UpdateDialogFilterOrder"/>, <see cref="UpdateDialogFilters"/>, <see cref="UpdatePhoneCallSignalingData"/>, <see cref="UpdateChannelMessageForwards"/>, <see cref="UpdateReadChannelDiscussionInbox"/>, <see cref="UpdateReadChannelDiscussionOutbox"/>, <see cref="UpdatePeerBlocked"/>, <see cref="UpdateChannelUserTyping"/>, <see cref="UpdatePinnedMessages"/>, <see cref="UpdatePinnedChannelMessages"/>, <see cref="UpdateChat"/>, <see cref="UpdateGroupCallParticipants"/>, <see cref="UpdateGroupCall"/>, <see cref="UpdatePeerHistoryTTL"/>, <see cref="UpdateChatParticipant"/>, <see cref="UpdateChannelParticipant"/>, <see cref="UpdateBotStopped"/>, <see cref="UpdateGroupCallConnection"/>, <see cref="UpdateBotCommands"/>, <see cref="UpdatePendingJoinRequests"/>, <see cref="UpdateBotChatInviteRequester"/>, <see cref="UpdateMessageReactions"/>, <see cref="UpdateAttachMenuBots"/>, <see cref="UpdateWebViewResultSent"/>, <see cref="UpdateBotMenuButton"/>, <see cref="UpdateSavedRingtones"/>, <see cref="UpdateTranscribedAudio"/>, <see cref="UpdateReadFeaturedEmojiStickers"/>, <see cref="UpdateUserEmojiStatus"/>, <see cref="UpdateRecentEmojiStatuses"/>, <see cref="UpdateRecentReactions"/>, <see cref="UpdateMoveStickerSetToTop"/>, <see cref="UpdateMessageExtendedMedia"/>, <see cref="UpdateChannelPinnedTopic"/>, <see cref="UpdateChannelPinnedTopics"/>, <see cref="UpdateUser"/>, <see cref="UpdateAutoSaveSettings"/>, <see cref="UpdateGroupInvitePrivacyForbidden"/></para></summary>
/// <summary>Object contains info on events occurred. <para>See <a href="https://corefork.telegram.org/type/Update"/></para> <para>Derived classes: <see cref="UpdateNewMessage"/>, <see cref="UpdateMessageID"/>, <see cref="UpdateDeleteMessages"/>, <see cref="UpdateUserTyping"/>, <see cref="UpdateChatUserTyping"/>, <see cref="UpdateChatParticipants"/>, <see cref="UpdateUserStatus"/>, <see cref="UpdateUserName"/>, <see cref="UpdateNewAuthorization"/>, <see cref="UpdateNewEncryptedMessage"/>, <see cref="UpdateEncryptedChatTyping"/>, <see cref="UpdateEncryption"/>, <see cref="UpdateEncryptedMessagesRead"/>, <see cref="UpdateChatParticipantAdd"/>, <see cref="UpdateChatParticipantDelete"/>, <see cref="UpdateDcOptions"/>, <see cref="UpdateNotifySettings"/>, <see cref="UpdateServiceNotification"/>, <see cref="UpdatePrivacy"/>, <see cref="UpdateUserPhone"/>, <see cref="UpdateReadHistoryInbox"/>, <see cref="UpdateReadHistoryOutbox"/>, <see cref="UpdateWebPage"/>, <see cref="UpdateReadMessagesContents"/>, <see cref="UpdateChannelTooLong"/>, <see cref="UpdateChannel"/>, <see cref="UpdateNewChannelMessage"/>, <see cref="UpdateReadChannelInbox"/>, <see cref="UpdateDeleteChannelMessages"/>, <see cref="UpdateChannelMessageViews"/>, <see cref="UpdateChatParticipantAdmin"/>, <see cref="UpdateNewStickerSet"/>, <see cref="UpdateStickerSetsOrder"/>, <see cref="UpdateStickerSets"/>, <see cref="UpdateSavedGifs"/>, <see cref="UpdateBotInlineQuery"/>, <see cref="UpdateBotInlineSend"/>, <see cref="UpdateEditChannelMessage"/>, <see cref="UpdateBotCallbackQuery"/>, <see cref="UpdateEditMessage"/>, <see cref="UpdateInlineBotCallbackQuery"/>, <see cref="UpdateReadChannelOutbox"/>, <see cref="UpdateDraftMessage"/>, <see cref="UpdateReadFeaturedStickers"/>, <see cref="UpdateRecentStickers"/>, <see cref="UpdateConfig"/>, <see cref="UpdatePtsChanged"/>, <see cref="UpdateChannelWebPage"/>, <see cref="UpdateDialogPinned"/>, <see cref="UpdatePinnedDialogs"/>, <see cref="UpdateBotWebhookJSON"/>, <see cref="UpdateBotWebhookJSONQuery"/>, <see cref="UpdateBotShippingQuery"/>, <see cref="UpdateBotPrecheckoutQuery"/>, <see cref="UpdatePhoneCall"/>, <see cref="UpdateLangPackTooLong"/>, <see cref="UpdateLangPack"/>, <see cref="UpdateFavedStickers"/>, <see cref="UpdateChannelReadMessagesContents"/>, <see cref="UpdateContactsReset"/>, <see cref="UpdateChannelAvailableMessages"/>, <see cref="UpdateDialogUnreadMark"/>, <see cref="UpdateMessagePoll"/>, <see cref="UpdateChatDefaultBannedRights"/>, <see cref="UpdateFolderPeers"/>, <see cref="UpdatePeerSettings"/>, <see cref="UpdatePeerLocated"/>, <see cref="UpdateNewScheduledMessage"/>, <see cref="UpdateDeleteScheduledMessages"/>, <see cref="UpdateTheme"/>, <see cref="UpdateGeoLiveViewed"/>, <see cref="UpdateLoginToken"/>, <see cref="UpdateMessagePollVote"/>, <see cref="UpdateDialogFilter"/>, <see cref="UpdateDialogFilterOrder"/>, <see cref="UpdateDialogFilters"/>, <see cref="UpdatePhoneCallSignalingData"/>, <see cref="UpdateChannelMessageForwards"/>, <see cref="UpdateReadChannelDiscussionInbox"/>, <see cref="UpdateReadChannelDiscussionOutbox"/>, <see cref="UpdatePeerBlocked"/>, <see cref="UpdateChannelUserTyping"/>, <see cref="UpdatePinnedMessages"/>, <see cref="UpdatePinnedChannelMessages"/>, <see cref="UpdateChat"/>, <see cref="UpdateGroupCallParticipants"/>, <see cref="UpdateGroupCall"/>, <see cref="UpdatePeerHistoryTTL"/>, <see cref="UpdateChatParticipant"/>, <see cref="UpdateChannelParticipant"/>, <see cref="UpdateBotStopped"/>, <see cref="UpdateGroupCallConnection"/>, <see cref="UpdateBotCommands"/>, <see cref="UpdatePendingJoinRequests"/>, <see cref="UpdateBotChatInviteRequester"/>, <see cref="UpdateMessageReactions"/>, <see cref="UpdateAttachMenuBots"/>, <see cref="UpdateWebViewResultSent"/>, <see cref="UpdateBotMenuButton"/>, <see cref="UpdateSavedRingtones"/>, <see cref="UpdateTranscribedAudio"/>, <see cref="UpdateReadFeaturedEmojiStickers"/>, <see cref="UpdateUserEmojiStatus"/>, <see cref="UpdateRecentEmojiStatuses"/>, <see cref="UpdateRecentReactions"/>, <see cref="UpdateMoveStickerSetToTop"/>, <see cref="UpdateMessageExtendedMedia"/>, <see cref="UpdateChannelPinnedTopic"/>, <see cref="UpdateChannelPinnedTopics"/>, <see cref="UpdateUser"/>, <see cref="UpdateAutoSaveSettings"/>, <see cref="UpdateGroupInvitePrivacyForbidden"/>, <see cref="UpdateStory"/>, <see cref="UpdateReadStories"/>, <see cref="UpdateStoryID"/>, <see cref="UpdateStoriesStealthMode"/>, <see cref="UpdateSentStoryReaction"/></para></summary>
public abstract class Update : IObject { }
/// <summary>New message in a private chat or in a <a href="https://corefork.telegram.org/api/channel#basic-groups">basic group</a>. <para>See <a href="https://corefork.telegram.org/constructor/updateNewMessage"/></para></summary>
[TLDef(0x1F2B0AFD)]
@ -3416,14 +3418,19 @@ namespace TL
/// <summary>Usernames.</summary>
public Username[] usernames;
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateNewAuthorization"/></para></summary>
/// <summary>Authorized to the current user's account through an unknown device. <para>See <a href="https://corefork.telegram.org/constructor/updateNewAuthorization"/></para></summary>
[TLDef(0x8951ABEF)]
public class UpdateNewAuthorization : Update
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
/// <summary><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></summary>
public long hash;
/// <summary>Authorization date</summary>
[IfFlag(0)] public DateTime date;
/// <summary>Name of device, for example <em>Android</em></summary>
[IfFlag(0)] public string device;
/// <summary>Location, for example <em>USA, NY (IP=1.2.3.4)</em></summary>
[IfFlag(0)] public string location;
[Flags] public enum Flags : uint
@ -3599,6 +3606,7 @@ namespace TL
[TLDef(0xF8227181)]
public class UpdateReadMessagesContents : Update
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
/// <summary>IDs of read messages</summary>
public int[] messages;
@ -4245,6 +4253,7 @@ namespace TL
[TLDef(0xEBE07752)]
public class UpdatePeerBlocked : Update
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
/// <summary>The blocked peer</summary>
public Peer peer_id;
@ -5857,7 +5866,7 @@ namespace TL
About = 0xA486B761,
}
/// <summary>Privacy rule <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"/></para></summary>
/// <summary>Privacy rule <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>
public abstract class InputPrivacyRule : IObject { }
/// <summary>Allow only contacts <para>See <a href="https://corefork.telegram.org/constructor/inputPrivacyValueAllowContacts"/></para></summary>
[TLDef(0x0D09E07B)]
@ -5903,7 +5912,7 @@ namespace TL
[TLDef(0x2F453E49)]
public class InputPrivacyValueAllowCloseFriends : InputPrivacyRule { }
/// <summary>Privacy rule <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"/></para></summary>
/// <summary>Privacy rule <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 class PrivacyRule : IObject { }
/// <summary>Allow all contacts <para>See <a href="https://corefork.telegram.org/constructor/privacyValueAllowContacts"/></para></summary>
[TLDef(0xFFFE1BAC)]
@ -12310,7 +12319,7 @@ namespace TL
}
}
/// <summary>Webpage attributes <para>See <a href="https://corefork.telegram.org/type/WebPageAttribute"/></para> <para>Derived classes: <see cref="WebPageAttributeTheme"/></para></summary>
/// <summary>Webpage attributes <para>See <a href="https://corefork.telegram.org/type/WebPageAttribute"/></para> <para>Derived classes: <see cref="WebPageAttributeTheme"/>, <see cref="WebPageAttributeStory"/></para></summary>
public abstract class WebPageAttribute : IObject { }
/// <summary>Page theme <para>See <a href="https://corefork.telegram.org/constructor/webPageAttributeTheme"/></para></summary>
[TLDef(0x54B56617)]
@ -12335,6 +12344,7 @@ namespace TL
[TLDef(0x2E94C3E7)]
public class WebPageAttributeStory : WebPageAttribute
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public Peer peer;
public int id;
@ -12342,6 +12352,7 @@ namespace TL
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="story"/> has a value</summary>
has_story = 0x1,
}
}
@ -12925,7 +12936,7 @@ namespace TL
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
}
/// <summary>Reply information <para>See <a href="https://corefork.telegram.org/type/MessageReplyHeader"/></para> <para>Derived classes: <see cref="MessageReplyHeader"/></para></summary>
/// <summary>Reply information <para>See <a href="https://corefork.telegram.org/type/MessageReplyHeader"/></para> <para>Derived classes: <see cref="MessageReplyHeader"/>, <see cref="MessageReplyStoryHeader"/></para></summary>
public abstract class MessageReplyHeaderBase : IObject { }
/// <summary>Message replies and <a href="https://corefork.telegram.org/api/threads">thread</a> information <para>See <a href="https://corefork.telegram.org/constructor/messageReplyHeader"/></para></summary>
[TLDef(0xA6D57763)]
@ -13715,9 +13726,9 @@ namespace TL
public Flags flags;
/// <summary>If set, indicates that the current user also sent this reaction. <br/>The integer value indicates when was the reaction added: the bigger the value, the newer the reaction.</summary>
[IfFlag(0)] public int chosen_order;
/// <summary>Reaction (a UTF8 emoji)</summary>
/// <summary>The reaction.</summary>
public Reaction reaction;
/// <summary>NUmber of users that reacted with this emoji</summary>
/// <summary>Number of users that reacted with this emoji.</summary>
public int count;
[Flags] public enum Flags : uint
@ -14998,7 +15009,7 @@ namespace TL
public string description;
}
/// <summary><para>See <a href="https://corefork.telegram.org/type/MessagePeerVote"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/type/MessagePeerVote"/></para> <para>Derived classes: <see cref="MessagePeerVote"/>, <see cref="MessagePeerVoteInputOption"/>, <see cref="MessagePeerVoteMultiple"/></para></summary>
public abstract class MessagePeerVoteBase : IObject
{
public virtual Peer Peer { get; }
@ -15041,6 +15052,7 @@ namespace TL
[TLDef(0x3DB8EC63)]
public class SponsoredWebPage : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public string url;
public string site_name;
@ -15048,6 +15060,7 @@ namespace TL
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="photo"/> has a value</summary>
has_photo = 0x1,
}
}
@ -15056,6 +15069,7 @@ namespace TL
[TLDef(0x8D595CD6)]
public class StoryViews : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public int views_count;
[IfFlag(2)] public int forwards_count;
@ -15065,15 +15079,19 @@ namespace TL
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="recent_viewers"/> has a value</summary>
has_recent_viewers = 0x1,
has_viewers = 0x2,
/// <summary>Field <see cref="forwards_count"/> has a value</summary>
has_forwards_count = 0x4,
/// <summary>Field <see cref="reactions"/> has a value</summary>
has_reactions = 0x8,
/// <summary>Field <see cref="reactions_count"/> has a value</summary>
has_reactions_count = 0x10,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/type/StoryItem"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/type/StoryItem"/></para> <para>Derived classes: <see cref="StoryItemDeleted"/>, <see cref="StoryItemSkipped"/>, <see cref="StoryItem"/></para></summary>
public abstract class StoryItemBase : IObject
{
public virtual int ID { get; }
@ -15090,6 +15108,7 @@ namespace TL
[TLDef(0xFFADC913)]
public class StoryItemSkipped : StoryItemBase
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public int id;
public DateTime date;
@ -15106,11 +15125,13 @@ namespace TL
[TLDef(0x44C457CE)]
public class StoryItem : StoryItemBase
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public int id;
public DateTime date;
public DateTime expire_date;
[IfFlag(0)] public string caption;
/// <summary><a href="https://corefork.telegram.org/api/entities">Message entities for styled text</a></summary>
[IfFlag(1)] public MessageEntity[] entities;
public MessageMedia media;
[IfFlag(14)] public MediaArea[] media_areas;
@ -15120,9 +15141,13 @@ namespace TL
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="caption"/> has a value</summary>
has_caption = 0x1,
/// <summary>Field <see cref="entities"/> has a value</summary>
has_entities = 0x2,
/// <summary>Field <see cref="privacy"/> has a value</summary>
has_privacy = 0x4,
/// <summary>Field <see cref="views"/> has a value</summary>
has_views = 0x8,
pinned = 0x20,
public_ = 0x80,
@ -15132,7 +15157,9 @@ namespace TL
edited = 0x800,
contacts = 0x1000,
selected_contacts = 0x2000,
/// <summary>Field <see cref="media_areas"/> has a value</summary>
has_media_areas = 0x4000,
/// <summary>Field <see cref="sent_reaction"/> has a value</summary>
has_sent_reaction = 0x8000,
out_ = 0x10000,
}
@ -15140,12 +15167,13 @@ namespace TL
public override int ID => id;
}
/// <summary><para>See <a href="https://corefork.telegram.org/type/stories.AllStories"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/type/stories.AllStories"/></para> <para>Derived classes: <see cref="Stories_AllStoriesNotModified"/>, <see cref="Stories_AllStories"/></para></summary>
public abstract class Stories_AllStoriesBase : IObject { }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/stories.allStoriesNotModified"/></para></summary>
[TLDef(0x1158FE3E)]
public class Stories_AllStoriesNotModified : Stories_AllStoriesBase
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public string state;
public StoriesStealthMode stealth_mode;
@ -15158,6 +15186,7 @@ namespace TL
[TLDef(0x6EFC5E81)]
public class Stories_AllStories : Stories_AllStoriesBase, IPeerResolver
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public int count;
public string state;
@ -15190,6 +15219,7 @@ namespace TL
[TLDef(0xB0BDEAC5)]
public class StoryView : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public long user_id;
public DateTime date;
@ -15199,6 +15229,7 @@ namespace TL
{
blocked = 0x1,
blocked_my_stories_from = 0x2,
/// <summary>Field <see cref="reaction"/> has a value</summary>
has_reaction = 0x4,
}
}
@ -15207,6 +15238,7 @@ namespace TL
[TLDef(0x46E9B9EC)]
public class Stories_StoryViewsList : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public int count;
public int reactions_count;
@ -15216,6 +15248,7 @@ namespace TL
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="next_offset"/> has a value</summary>
has_next_offset = 0x1,
}
}
@ -15228,18 +15261,20 @@ namespace TL
public Dictionary<long, User> users;
}
/// <summary><para>See <a href="https://corefork.telegram.org/type/InputReplyTo"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/type/InputReplyTo"/></para> <para>Derived classes: <see cref="InputReplyToMessage"/>, <see cref="InputReplyToStory"/></para></summary>
public abstract class InputReplyTo : IObject { }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputReplyToMessage"/></para></summary>
[TLDef(0x9C5386E4)]
public class InputReplyToMessage : InputReplyTo
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public int reply_to_msg_id;
[IfFlag(0)] public int top_msg_id;
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="top_msg_id"/> has a value</summary>
has_top_msg_id = 0x1,
}
}
@ -15262,13 +15297,16 @@ namespace TL
[TLDef(0x712E27FD)]
public class StoriesStealthMode : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
[IfFlag(0)] public DateTime active_until_date;
[IfFlag(1)] public DateTime cooldown_until_date;
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="active_until_date"/> has a value</summary>
has_active_until_date = 0x1,
/// <summary>Field <see cref="cooldown_until_date"/> has a value</summary>
has_cooldown_until_date = 0x2,
}
}
@ -15284,7 +15322,7 @@ namespace TL
public double rotation;
}
/// <summary><para>See <a href="https://corefork.telegram.org/type/MediaArea"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/type/MediaArea"/></para> <para>Derived classes: <see cref="MediaAreaVenue"/>, <see cref="InputMediaAreaVenue"/>, <see cref="MediaAreaGeoPoint"/>, <see cref="MediaAreaSuggestedReaction"/></para></summary>
public abstract class MediaArea : IObject { }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/mediaAreaVenue"/></para></summary>
[TLDef(0xBE82DB9C)]
@ -15317,6 +15355,7 @@ namespace TL
[TLDef(0x14455871)]
public class MediaAreaSuggestedReaction : MediaArea
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public MediaAreaCoordinates coordinates;
public Reaction reaction;
@ -15332,6 +15371,7 @@ namespace TL
[TLDef(0x9A35E999)]
public class PeerStories : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public Peer peer;
[IfFlag(0)] public int max_read_id;
@ -15339,6 +15379,7 @@ namespace TL
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="max_read_id"/> has a value</summary>
has_max_read_id = 0x1,
}
}
@ -15355,25 +15396,29 @@ namespace TL
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/stories.boostsStatus"/></para></summary>
[TLDef(0x66EA1FEF)]
[TLDef(0xE5C1AA5C)]
public class Stories_BoostsStatus : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public int level;
public int current_level_boosts;
public int boosts;
[IfFlag(0)] public int next_level_boosts;
[IfFlag(1)] public StatsPercentValue premium_audience;
public string boost_url;
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="next_level_boosts"/> has a value</summary>
has_next_level_boosts = 0x1,
/// <summary>Field <see cref="premium_audience"/> has a value</summary>
has_premium_audience = 0x2,
my_boost = 0x4,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/type/stories.CanApplyBoostResult"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/type/stories.CanApplyBoostResult"/></para> <para>Derived classes: <see cref="Stories_CanApplyBoostOk"/>, <see cref="Stories_CanApplyBoostReplace"/></para></summary>
public abstract class Stories_CanApplyBoostResult : IObject { }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/stories.canApplyBoostOk"/></para></summary>
[TLDef(0xC3173587)]
@ -15398,6 +15443,7 @@ namespace TL
[TLDef(0xF3DD3D1D)]
public class Stories_BoostersList : IObject
{
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
public Flags flags;
public int count;
public Booster[] boosters;
@ -15406,7 +15452,19 @@ namespace TL
[Flags] public enum Flags : uint
{
/// <summary>Field <see cref="next_offset"/> has a value</summary>
has_next_offset = 0x1,
}
}
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messages.webPage"/></para></summary>
[TLDef(0xFD5E12BD)]
public class Messages_WebPage : IObject, IPeerResolver
{
public WebPageBase webpage;
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);
}
}

View file

@ -263,7 +263,7 @@ namespace TL
except_ids = except_ids,
});
/// <summary>Login using a redirected login token, generated in case of DC mismatch during <a href="https://corefork.telegram.org/api/qr-login">QR code login</a>. <para>See <a href="https://corefork.telegram.org/method/auth.importLoginToken"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/auth.importLoginToken#possible-errors">details</a>)</para></summary>
/// <summary>Login using a redirected login token, generated in case of DC mismatch during <a href="https://corefork.telegram.org/api/qr-login">QR code login</a>. <para>See <a href="https://corefork.telegram.org/method/auth.importLoginToken"/></para> <para>Possible <see cref="RpcException"/> codes: 400,500 (<a href="https://corefork.telegram.org/method/auth.importLoginToken#possible-errors">details</a>)</para></summary>
/// <param name="token">Login token</param>
public static Task<Auth_LoginTokenBase> Auth_ImportLoginToken(this Client client, byte[] token)
=> client.Invoke(new Auth_ImportLoginToken
@ -1006,7 +1006,7 @@ namespace TL
authorization_ttl_days = authorization_ttl_days,
});
/// <summary>Change authorization settings <para>See <a href="https://corefork.telegram.org/method/account.changeAuthorizationSettings"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.changeAuthorizationSettings#possible-errors">details</a>)</para></summary>
/// <summary>Change settings related to the current session. <para>See <a href="https://corefork.telegram.org/method/account.changeAuthorizationSettings"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.changeAuthorizationSettings#possible-errors">details</a>)</para></summary>
/// <param name="hash">Session ID from the <see cref="Authorization"/>, fetchable using <see cref="Account_GetAuthorizations">Account_GetAuthorizations</see></param>
/// <param name="encrypted_requests_disabled">Whether to enable or disable receiving encrypted chats: if the flag is not set, the previous setting is not changed</param>
/// <param name="call_requests_disabled">Whether to enable or disable receiving calls: if the flag is not set, the previous setting is not changed</param>
@ -1050,7 +1050,7 @@ namespace TL
mime_type = mime_type,
});
/// <summary>Set an <a href="https://corefork.telegram.org/api/emoji-status">emoji status</a> <para>See <a href="https://corefork.telegram.org/method/account.updateEmojiStatus"/></para></summary>
/// <summary>Set an <a href="https://corefork.telegram.org/api/emoji-status">emoji status</a> <para>See <a href="https://corefork.telegram.org/method/account.updateEmojiStatus"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.updateEmojiStatus#possible-errors">details</a>)</para></summary>
/// <param name="emoji_status"><a href="https://corefork.telegram.org/api/emoji-status">Emoji status</a> to set</param>
public static Task<bool> Account_UpdateEmojiStatus(this Client client, EmojiStatus emoji_status)
=> client.Invoke(new Account_UpdateEmojiStatus
@ -1159,7 +1159,7 @@ namespace TL
id = id,
});
/// <summary>Returns extended user info by ID. <para>See <a href="https://corefork.telegram.org/method/users.getFullUser"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,500 (<a href="https://corefork.telegram.org/method/users.getFullUser#possible-errors">details</a>)</para></summary>
/// <summary>Returns extended user info by ID. <para>See <a href="https://corefork.telegram.org/method/users.getFullUser"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/users.getFullUser#possible-errors">details</a>)</para></summary>
/// <param name="id">User ID</param>
public static Task<Users_UserFull> Users_GetFullUser(this Client client, InputUserBase id)
=> client.Invoke(new Users_GetFullUser
@ -1401,6 +1401,7 @@ namespace TL
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/contacts.setBlocked"/></para></summary>
/// <param name="limit">Maximum number of results to return, <a href="https://corefork.telegram.org/api/offsets">see pagination</a></param>
public static Task<bool> Contacts_SetBlocked(this Client client, InputPeer[] id, int limit = int.MaxValue, bool my_stories_from = false)
=> client.Invoke(new Contacts_SetBlocked
{
@ -1801,7 +1802,7 @@ namespace TL
max_date = max_date,
});
/// <summary>Sends a text message to a secret chat. <para>See <a href="https://corefork.telegram.org/method/messages.sendEncrypted"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.sendEncrypted#possible-errors">details</a>)</para></summary>
/// <summary>Sends a text message to a secret chat. <para>See <a href="https://corefork.telegram.org/method/messages.sendEncrypted"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403,500 (<a href="https://corefork.telegram.org/method/messages.sendEncrypted#possible-errors">details</a>)</para></summary>
/// <param name="silent">Send encrypted message without a notification</param>
/// <param name="peer">Secret chat ID</param>
/// <param name="random_id">Unique client message ID, necessary to avoid message resending <para>You can use <see cref="WTelegram.Helpers.RandomLong"/></para></param>
@ -1999,7 +2000,7 @@ namespace TL
is_admin = is_admin,
});
/// <summary><para>⚠ <b>This method is only for basic Chat</b>. See <see href="https://wiz0u.github.io/WTelegramClient/README#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> Turn a <a href="https://corefork.telegram.org/api/channel#migration">basic group into a supergroup</a> <para>See <a href="https://corefork.telegram.org/method/messages.migrateChat"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.migrateChat#possible-errors">details</a>)</para></summary>
/// <summary><para>⚠ <b>This method is only for basic Chat</b>. See <see href="https://wiz0u.github.io/WTelegramClient/README#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> Turn a <a href="https://corefork.telegram.org/api/channel#migration">basic group into a supergroup</a> <para>See <a href="https://corefork.telegram.org/method/messages.migrateChat"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403,500 (<a href="https://corefork.telegram.org/method/messages.migrateChat#possible-errors">details</a>)</para></summary>
/// <param name="chat_id"><a href="https://corefork.telegram.org/api/channel#basic-groups">Basic group</a> to migrate</param>
public static Task<UpdatesBase> Messages_MigrateChat(this Client client, long chat_id)
=> client.Invoke(new Messages_MigrateChat
@ -2146,7 +2147,7 @@ namespace TL
id = id,
});
/// <summary>Edit message <para>See <a href="https://corefork.telegram.org/method/messages.editMessage"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403,406 (<a href="https://corefork.telegram.org/method/messages.editMessage#possible-errors">details</a>)</para></summary>
/// <summary>Edit message <para>See <a href="https://corefork.telegram.org/method/messages.editMessage"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403,406,500 (<a href="https://corefork.telegram.org/method/messages.editMessage#possible-errors">details</a>)</para></summary>
/// <param name="no_webpage">Disable webpage preview</param>
/// <param name="peer">Where was the message sent</param>
/// <param name="id">ID of the message to edit</param>
@ -2396,7 +2397,7 @@ namespace TL
/// <summary>Get <a href="https://instantview.telegram.org">instant view</a> page <para>See <a href="https://corefork.telegram.org/method/messages.getWebPage"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getWebPage#possible-errors">details</a>)</para></summary>
/// <param name="url">URL of IV page to fetch</param>
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
public static Task<WebPageBase> Messages_GetWebPage(this Client client, string url, int hash = default)
public static Task<Messages_WebPage> Messages_GetWebPage(this Client client, string url, int hash = default)
=> client.Invoke(new Messages_GetWebPage
{
url = url,
@ -3080,7 +3081,7 @@ namespace TL
/// <param name="link">Invite link</param>
/// <param name="q">Search for a user in the pending <a href="https://corefork.telegram.org/api/invites#join-requests">join requests »</a> list: only available when the <c>requested</c> flag is set, cannot be used together with a specific <c>link</c>.</param>
/// <param name="offset_date"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param>
/// <param name="offset_user">User ID for <a href="https://corefork.telegram.org/api/offsets">pagination</a>: if set, <c>offset_date</c> <strong>must also be set</strong>.</param>
/// <param name="offset_user">User ID for <a href="https://corefork.telegram.org/api/offsets">pagination</a>: if set, <c>offset_date</c> must also be set.</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_ChatInviteImporters> Messages_GetChatInviteImporters(this Client client, InputPeer peer, DateTime offset_date = default, InputUserBase offset_user = null, int limit = int.MaxValue, string link = null, string q = null, bool requested = false)
=> client.Invoke(new Messages_GetChatInviteImporters
@ -4620,7 +4621,7 @@ namespace TL
order = order,
});
/// <summary>Enable or disable the <a href="https://corefork.telegram.org/api/antispam">native antispam system</a>. <para>See <a href="https://corefork.telegram.org/method/channels.toggleAntiSpam"/> [bots: ✓]</para></summary>
/// <summary>Enable or disable the <a href="https://corefork.telegram.org/api/antispam">native antispam system</a>. <para>See <a href="https://corefork.telegram.org/method/channels.toggleAntiSpam"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.toggleAntiSpam#possible-errors">details</a>)</para></summary>
/// <param name="channel">Supergroup ID. The specified supergroup must have at least <c>telegram_antispam_group_size_min</c> members to enable antispam functionality, as specified by the <a href="https://corefork.telegram.org/api/config#client-configuration">client configuration parameters</a>.</param>
/// <param name="enabled">Enable or disable the native antispam system.</param>
public static Task<UpdatesBase> Channels_ToggleAntiSpam(this Client client, InputChannelBase channel, bool enabled)
@ -4650,7 +4651,7 @@ namespace TL
enabled = enabled,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.clickSponsoredMessage"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.clickSponsoredMessage"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.clickSponsoredMessage#possible-errors">details</a>)</para></summary>
public static Task<bool> Channels_ClickSponsoredMessage(this Client client, InputChannelBase channel, byte[] random_id)
=> client.Invoke(new Channels_ClickSponsoredMessage
{
@ -4795,21 +4796,21 @@ namespace TL
active = active,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/bots.canSendMessage"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/bots.canSendMessage"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.canSendMessage#possible-errors">details</a>)</para></summary>
public static Task<bool> Bots_CanSendMessage(this Client client, InputUserBase bot)
=> client.Invoke(new Bots_CanSendMessage
{
bot = bot,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/bots.allowSendMessage"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/bots.allowSendMessage"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.allowSendMessage#possible-errors">details</a>)</para></summary>
public static Task<UpdatesBase> Bots_AllowSendMessage(this Client client, InputUserBase bot)
=> client.Invoke(new Bots_AllowSendMessage
{
bot = bot,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/bots.invokeWebViewCustomMethod"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/bots.invokeWebViewCustomMethod"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.invokeWebViewCustomMethod#possible-errors">details</a>)</para></summary>
public static Task<DataJSON> Bots_InvokeWebViewCustomMethod(this Client client, InputUserBase bot, string custom_method, DataJSON params_)
=> client.Invoke(new Bots_InvokeWebViewCustomMethod
{
@ -5072,7 +5073,7 @@ namespace TL
protocol = protocol,
});
/// <summary>Accept incoming call <para>See <a href="https://corefork.telegram.org/method/phone.acceptCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400,500 (<a href="https://corefork.telegram.org/method/phone.acceptCall#possible-errors">details</a>)</para></summary>
/// <summary>Accept incoming call <para>See <a href="https://corefork.telegram.org/method/phone.acceptCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400,406,500 (<a href="https://corefork.telegram.org/method/phone.acceptCall#possible-errors">details</a>)</para></summary>
/// <param name="peer">The call to accept</param>
/// <param name="g_b"><a href="https://corefork.telegram.org/api/end-to-end/voice-calls">Parameter for E2E encryption key exchange »</a></param>
/// <param name="protocol">Phone call settings</param>
@ -5172,7 +5173,7 @@ namespace TL
schedule_date = schedule_date.GetValueOrDefault(),
});
/// <summary>Join a group call <para>See <a href="https://corefork.telegram.org/method/phone.joinGroupCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/phone.joinGroupCall#possible-errors">details</a>)</para></summary>
/// <summary>Join a group call <para>See <a href="https://corefork.telegram.org/method/phone.joinGroupCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403,500 (<a href="https://corefork.telegram.org/method/phone.joinGroupCall#possible-errors">details</a>)</para></summary>
/// <param name="muted">If set, the user will be muted by default upon joining.</param>
/// <param name="video_stopped">If set, the user's video will be disabled by default upon joining.</param>
/// <param name="call">The group call</param>
@ -5633,14 +5634,19 @@ namespace TL
peers = peers,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.canSendStory"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.canSendStory"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.canSendStory#possible-errors">details</a>)</para></summary>
public static Task<bool> Stories_CanSendStory(this Client client, InputPeer peer)
=> client.Invoke(new Stories_CanSendStory
{
peer = peer,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.sendStory"/></para></summary>
/// <summary>Uploads a <a href="https://corefork.telegram.org/api/stories">Telegram Story</a>. <para>See <a href="https://corefork.telegram.org/method/stories.sendStory"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.sendStory#possible-errors">details</a>)</para></summary>
/// <param name="noforwards">If set, disables forwards and story download functionality.</param>
/// <param name="media">The media file.</param>
/// <param name="caption">Story caption.</param>
/// <param name="entities"><a href="https://corefork.telegram.org/api/entities">Message entities for styled text</a></param>
/// <param name="random_id">Unique client message ID required to prevent message resending. <para>You can use <see cref="WTelegram.Helpers.RandomLong"/></para></param>
public static Task<UpdatesBase> Stories_SendStory(this Client client, InputPeer peer, InputMedia media, InputPrivacyRule[] privacy_rules, long random_id, string caption = null, MessageEntity[] entities = null, int? period = null, MediaArea[] media_areas = null, bool pinned = false, bool noforwards = false)
=> client.Invoke(new Stories_SendStory
{
@ -5655,7 +5661,8 @@ namespace TL
period = period.GetValueOrDefault(),
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.editStory"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.editStory"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.editStory#possible-errors">details</a>)</para></summary>
/// <param name="entities"><a href="https://corefork.telegram.org/api/entities">Message entities for styled text</a></param>
public static Task<UpdatesBase> Stories_EditStory(this Client client, InputPeer peer, int id, InputMedia media = null, string caption = null, MessageEntity[] entities = null, InputPrivacyRule[] privacy_rules = null, MediaArea[] media_areas = null)
=> client.Invoke(new Stories_EditStory
{
@ -5669,7 +5676,9 @@ namespace TL
privacy_rules = privacy_rules,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.deleteStories"/></para></summary>
/// <summary>Deletes some posted <a href="https://corefork.telegram.org/api/stories">stories</a>. <para>See <a href="https://corefork.telegram.org/method/stories.deleteStories"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.deleteStories#possible-errors">details</a>)</para></summary>
/// <param name="peer">Channel/user from where to delete stories.</param>
/// <param name="id">IDs of stories to delete.</param>
public static Task<int[]> Stories_DeleteStories(this Client client, InputPeer peer, params int[] id)
=> client.Invoke(new Stories_DeleteStories
{
@ -5677,7 +5686,7 @@ namespace TL
id = id,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.togglePinned"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.togglePinned"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.togglePinned#possible-errors">details</a>)</para></summary>
public static Task<int[]> Stories_TogglePinned(this Client client, InputPeer peer, int[] id, bool pinned)
=> client.Invoke(new Stories_TogglePinned
{
@ -5694,7 +5703,9 @@ namespace TL
state = state,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getPinnedStories"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getPinnedStories"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.getPinnedStories#possible-errors">details</a>)</para></summary>
/// <param name="offset_id"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></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<Stories_Stories> Stories_GetPinnedStories(this Client client, InputPeer peer, int offset_id = default, int limit = int.MaxValue)
=> client.Invoke(new Stories_GetPinnedStories
{
@ -5703,7 +5714,9 @@ namespace TL
limit = limit,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getStoriesArchive"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getStoriesArchive"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.getStoriesArchive#possible-errors">details</a>)</para></summary>
/// <param name="offset_id"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></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<Stories_Stories> Stories_GetStoriesArchive(this Client client, InputPeer peer, int offset_id = default, int limit = int.MaxValue)
=> client.Invoke(new Stories_GetStoriesArchive
{
@ -5712,7 +5725,7 @@ namespace TL
limit = limit,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getStoriesByID"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getStoriesByID"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.getStoriesByID#possible-errors">details</a>)</para></summary>
public static Task<Stories_Stories> Stories_GetStoriesByID(this Client client, InputPeer peer, params int[] id)
=> client.Invoke(new Stories_GetStoriesByID
{
@ -5727,7 +5740,8 @@ namespace TL
hidden = hidden,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.readStories"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.readStories"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.readStories#possible-errors">details</a>)</para></summary>
/// <param name="peer">The peer whose stories should be marked as read.</param>
public static Task<int[]> Stories_ReadStories(this Client client, InputPeer peer, int max_id = default)
=> client.Invoke(new Stories_ReadStories
{
@ -5735,7 +5749,9 @@ namespace TL
max_id = max_id,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.incrementStoryViews"/></para></summary>
/// <summary>Increment the view counter of one or more stories. <para>See <a href="https://corefork.telegram.org/method/stories.incrementStoryViews"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.incrementStoryViews#possible-errors">details</a>)</para></summary>
/// <param name="peer">Peer where the stories were posted.</param>
/// <param name="id">IDs of the stories.</param>
public static Task<bool> Stories_IncrementStoryViews(this Client client, InputPeer peer, params int[] id)
=> client.Invoke(new Stories_IncrementStoryViews
{
@ -5743,7 +5759,8 @@ namespace TL
id = id,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getStoryViewsList"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getStoryViewsList"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.getStoryViewsList#possible-errors">details</a>)</para></summary>
/// <param name="limit">Maximum number of results to return, <a href="https://corefork.telegram.org/api/offsets">see pagination</a></param>
public static Task<Stories_StoryViewsList> Stories_GetStoryViewsList(this Client client, InputPeer peer, int id, string offset, int limit = int.MaxValue, string q = null, bool just_contacts = false, bool reactions_first = false)
=> client.Invoke(new Stories_GetStoryViewsList
{
@ -5755,7 +5772,7 @@ namespace TL
limit = limit,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getStoriesViews"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getStoriesViews"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.getStoriesViews#possible-errors">details</a>)</para></summary>
public static Task<Stories_StoryViews> Stories_GetStoriesViews(this Client client, InputPeer peer, params int[] id)
=> client.Invoke(new Stories_GetStoriesViews
{
@ -5763,7 +5780,7 @@ namespace TL
id = id,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.exportStoryLink"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.exportStoryLink"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.exportStoryLink#possible-errors">details</a>)</para></summary>
public static Task<ExportedStoryLink> Stories_ExportStoryLink(this Client client, InputPeer peer, int id)
=> client.Invoke(new Stories_ExportStoryLink
{
@ -5771,7 +5788,11 @@ namespace TL
id = id,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.report"/></para></summary>
/// <summary>Report a story. <para>See <a href="https://corefork.telegram.org/method/stories.report"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.report#possible-errors">details</a>)</para></summary>
/// <param name="peer">The peer that uploaded the story.</param>
/// <param name="id">IDs of the stories to report.</param>
/// <param name="reason">Why are these storeis being reported.</param>
/// <param name="message">Comment for report moderation</param>
public static Task<bool> Stories_Report(this Client client, InputPeer peer, int[] id, ReportReason reason, string message)
=> client.Invoke(new Stories_Report
{
@ -5788,7 +5809,7 @@ namespace TL
flags = (Stories_ActivateStealthMode.Flags)((past ? 0x1 : 0) | (future ? 0x2 : 0)),
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.sendReaction"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.sendReaction"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.sendReaction#possible-errors">details</a>)</para></summary>
public static Task<UpdatesBase> Stories_SendReaction(this Client client, InputPeer peer, int story_id, Reaction reaction, bool add_to_recent = false)
=> client.Invoke(new Stories_SendReaction
{
@ -5798,7 +5819,7 @@ namespace TL
reaction = reaction,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getPeerStories"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getPeerStories"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.getPeerStories#possible-errors">details</a>)</para></summary>
public static Task<Stories_PeerStories> Stories_GetPeerStories(this Client client, InputPeer peer)
=> client.Invoke(new Stories_GetPeerStories
{
@ -5824,7 +5845,7 @@ namespace TL
{
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.togglePeerStoriesHidden"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.togglePeerStoriesHidden"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.togglePeerStoriesHidden#possible-errors">details</a>)</para></summary>
public static Task<bool> Stories_TogglePeerStoriesHidden(this Client client, InputPeer peer, bool hidden)
=> client.Invoke(new Stories_TogglePeerStoriesHidden
{
@ -5832,14 +5853,15 @@ namespace TL
hidden = hidden,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getBoostsStatus"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getBoostsStatus"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.getBoostsStatus#possible-errors">details</a>)</para></summary>
public static Task<Stories_BoostsStatus> Stories_GetBoostsStatus(this Client client, InputPeer peer)
=> client.Invoke(new Stories_GetBoostsStatus
{
peer = peer,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getBoostersList"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.getBoostersList"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.getBoostersList#possible-errors">details</a>)</para></summary>
/// <param name="limit">Maximum number of results to return, <a href="https://corefork.telegram.org/api/offsets">see pagination</a></param>
public static Task<Stories_BoostersList> Stories_GetBoostersList(this Client client, InputPeer peer, string offset, int limit = int.MaxValue)
=> client.Invoke(new Stories_GetBoostersList
{
@ -5848,14 +5870,14 @@ namespace TL
limit = limit,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.canApplyBoost"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.canApplyBoost"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.canApplyBoost#possible-errors">details</a>)</para></summary>
public static Task<Stories_CanApplyBoostResult> Stories_CanApplyBoost(this Client client, InputPeer peer)
=> client.Invoke(new Stories_CanApplyBoost
{
peer = peer,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.applyBoost"/></para></summary>
/// <summary><para>See <a href="https://corefork.telegram.org/method/stories.applyBoost"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stories.applyBoost#possible-errors">details</a>)</para></summary>
public static Task<bool> Stories_ApplyBoost(this Client client, InputPeer peer)
=> client.Invoke(new Stories_ApplyBoost
{
@ -7821,8 +7843,8 @@ namespace TL.Methods
public int limit;
}
[TLDef(0x32CA8F91)]
public class Messages_GetWebPage : IMethod<WebPageBase>
[TLDef(0x8D9692A3)]
public class Messages_GetWebPage : IMethod<Messages_WebPage>
{
public string url;
public int hash;

View file

@ -6,7 +6,7 @@ namespace TL
{
public static class Layer
{
public const int Version = 164; // fetched 22/09/2023 19:03:28
public const int Version = 165; // fetched 04/10/2023 17:10:52
internal const int SecretChats = 144;
internal const int MTProto2 = 73;
internal const uint VectorCtor = 0x1CB5C415;
@ -1127,11 +1127,12 @@ namespace TL
[0x14455871] = typeof(MediaAreaSuggestedReaction),
[0x9A35E999] = typeof(PeerStories),
[0xCAE68768] = typeof(Stories_PeerStories),
[0x66EA1FEF] = typeof(Stories_BoostsStatus),
[0xE5C1AA5C] = typeof(Stories_BoostsStatus),
[0xC3173587] = typeof(Stories_CanApplyBoostOk),
[0x712C4655] = typeof(Stories_CanApplyBoostReplace),
[0x0E9E6380] = typeof(Booster),
[0xF3DD3D1D] = typeof(Stories_BoostersList),
[0xFD5E12BD] = typeof(Messages_WebPage),
// from TL.Secret:
[0x6ABD9782] = typeof(Layer143.DecryptedMessageMediaDocument),
[0x91CC4674] = typeof(Layer73.DecryptedMessage),

View file

@ -13,7 +13,7 @@
<PackageId>WTelegramClient</PackageId>
<Version>0.0.0</Version>
<Authors>Wizou</Authors>
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 164&#10;&#10;Release Notes:&#10;$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
<Description>Telegram Client API (MTProto) library written 100% in C# and .NET Standard | Latest API layer: 165&#10;&#10;Release Notes:&#10;$(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))</Description>
<Copyright>Copyright © Olivier Marcoux 2021-2023</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/wiz0u/WTelegramClient</PackageProjectUrl>