mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
api doc
This commit is contained in:
parent
5f51b1f77e
commit
cce7a64cd9
208
src/TL.Schema.cs
208
src/TL.Schema.cs
|
|
@ -178,7 +178,7 @@ namespace TL
|
||||||
public override string Name { get => name; set => name = value; }
|
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"/>, <see cref="InputMediaStory"/></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"/>, <see cref="InputMediaWebPage"/></para></summary>
|
||||||
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/inputMediaEmpty">inputMediaEmpty</a></remarks>
|
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/inputMediaEmpty">inputMediaEmpty</a></remarks>
|
||||||
public abstract class InputMedia : IObject { }
|
public abstract class InputMedia : IObject { }
|
||||||
/// <summary>Photo <para>See <a href="https://corefork.telegram.org/constructor/inputMediaUploadedPhoto"/></para></summary>
|
/// <summary>Photo <para>See <a href="https://corefork.telegram.org/constructor/inputMediaUploadedPhoto"/></para></summary>
|
||||||
|
|
@ -468,6 +468,7 @@ namespace TL
|
||||||
[TLDef(0xC21B8849)]
|
[TLDef(0xC21B8849)]
|
||||||
public class InputMediaWebPage : InputMedia
|
public class InputMediaWebPage : InputMedia
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
public string url;
|
public string url;
|
||||||
|
|
||||||
|
|
@ -597,7 +598,7 @@ namespace TL
|
||||||
/// <summary>⚠ <b>REQUIRED FIELD</b>. See <see href="https://wiz0u.github.io/WTelegramClient/FAQ#access-hash">how to obtain it</see><br/>Checksum, <strong>access_hash</strong> parameter value from <see cref="SecureFile"/></summary>
|
/// <summary>⚠ <b>REQUIRED FIELD</b>. See <see href="https://wiz0u.github.io/WTelegramClient/FAQ#access-hash">how to obtain it</see><br/>Checksum, <strong>access_hash</strong> parameter value from <see cref="SecureFile"/></summary>
|
||||||
public long access_hash;
|
public long access_hash;
|
||||||
}
|
}
|
||||||
/// <summary>Empty constructor for takeout <para>See <a href="https://corefork.telegram.org/constructor/inputTakeoutFileLocation"/></para></summary>
|
/// <summary>Used to download a JSON file that will contain all personal data related to features that do not have a specialized <a href="https://corefork.telegram.org/api/takeout">takeout method</a> yet, see <a href="https://corefork.telegram.org/api/takeout">here »</a> for more info on the takeout API. <para>See <a href="https://corefork.telegram.org/constructor/inputTakeoutFileLocation"/></para></summary>
|
||||||
[TLDef(0x29BE5899)]
|
[TLDef(0x29BE5899)]
|
||||||
public class InputTakeoutFileLocation : InputFileLocationBase { }
|
public class InputTakeoutFileLocation : InputFileLocationBase { }
|
||||||
/// <summary>Use this object to download a photo with <see cref="SchemaExtensions.Upload_GetFile">Upload_GetFile</see> method <para>See <a href="https://corefork.telegram.org/constructor/inputPhotoFileLocation"/></para></summary>
|
/// <summary>Use this object to download a photo with <see cref="SchemaExtensions.Upload_GetFile">Upload_GetFile</see> method <para>See <a href="https://corefork.telegram.org/constructor/inputPhotoFileLocation"/></para></summary>
|
||||||
|
|
@ -1707,6 +1708,7 @@ namespace TL
|
||||||
has_ttl_period = 0x2000000,
|
has_ttl_period = 0x2000000,
|
||||||
/// <summary>Whether this message is <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">protected</a> and thus cannot be forwarded; clients should also prevent users from saving attached media (i.e. videos should only be streamed, photos should be kept in RAM, et cetera).</summary>
|
/// <summary>Whether this message is <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">protected</a> and thus cannot be forwarded; clients should also prevent users from saving attached media (i.e. videos should only be streamed, photos should be kept in RAM, et cetera).</summary>
|
||||||
noforwards = 0x4000000,
|
noforwards = 0x4000000,
|
||||||
|
/// <summary>If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</summary>
|
||||||
invert_media = 0x8000000,
|
invert_media = 0x8000000,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1780,7 +1782,7 @@ namespace TL
|
||||||
public override int TtlPeriod => ttl_period;
|
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"/>, <see cref="MessageMediaStory"/></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"/>, <see cref="MessageMediaGiveaway"/></para></summary>
|
||||||
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/messageMediaEmpty">messageMediaEmpty</a></remarks>
|
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/messageMediaEmpty">messageMediaEmpty</a></remarks>
|
||||||
public abstract partial class MessageMedia : IObject { }
|
public abstract partial class MessageMedia : IObject { }
|
||||||
/// <summary>Attached photo. <para>See <a href="https://corefork.telegram.org/constructor/messageMediaPhoto"/></para></summary>
|
/// <summary>Attached photo. <para>See <a href="https://corefork.telegram.org/constructor/messageMediaPhoto"/></para></summary>
|
||||||
|
|
@ -1860,6 +1862,7 @@ namespace TL
|
||||||
[TLDef(0xDDF10C3B)]
|
[TLDef(0xDDF10C3B)]
|
||||||
public partial class MessageMediaWebPage : MessageMedia
|
public partial class MessageMediaWebPage : MessageMedia
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
/// <summary>Webpage preview</summary>
|
/// <summary>Webpage preview</summary>
|
||||||
public WebPageBase webpage;
|
public WebPageBase webpage;
|
||||||
|
|
@ -1999,6 +2002,7 @@ namespace TL
|
||||||
[TLDef(0x58260664)]
|
[TLDef(0x58260664)]
|
||||||
public class MessageMediaGiveaway : MessageMedia
|
public class MessageMediaGiveaway : MessageMedia
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
public long[] channels;
|
public long[] channels;
|
||||||
[IfFlag(1)] public string[] countries_iso2;
|
[IfFlag(1)] public string[] countries_iso2;
|
||||||
|
|
@ -2009,11 +2013,12 @@ namespace TL
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
only_new_subscribers = 0x1,
|
only_new_subscribers = 0x1,
|
||||||
|
/// <summary>Field <see cref="countries_iso2"/> has a value</summary>
|
||||||
has_countries_iso2 = 0x2,
|
has_countries_iso2 = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Object describing actions connected to a service message. <para>See <a href="https://corefork.telegram.org/type/MessageAction"/></para> <para>Derived classes: <see cref="MessageActionChatCreate"/>, <see cref="MessageActionChatEditTitle"/>, <see cref="MessageActionChatEditPhoto"/>, <see cref="MessageActionChatDeletePhoto"/>, <see cref="MessageActionChatAddUser"/>, <see cref="MessageActionChatDeleteUser"/>, <see cref="MessageActionChatJoinedByLink"/>, <see cref="MessageActionChannelCreate"/>, <see cref="MessageActionChatMigrateTo"/>, <see cref="MessageActionChannelMigrateFrom"/>, <see cref="MessageActionPinMessage"/>, <see cref="MessageActionHistoryClear"/>, <see cref="MessageActionGameScore"/>, <see cref="MessageActionPaymentSentMe"/>, <see cref="MessageActionPaymentSent"/>, <see cref="MessageActionPhoneCall"/>, <see cref="MessageActionScreenshotTaken"/>, <see cref="MessageActionCustomAction"/>, <see cref="MessageActionBotAllowed"/>, <see cref="MessageActionSecureValuesSentMe"/>, <see cref="MessageActionSecureValuesSent"/>, <see cref="MessageActionContactSignUp"/>, <see cref="MessageActionGeoProximityReached"/>, <see cref="MessageActionGroupCall"/>, <see cref="MessageActionInviteToGroupCall"/>, <see cref="MessageActionSetMessagesTTL"/>, <see cref="MessageActionGroupCallScheduled"/>, <see cref="MessageActionSetChatTheme"/>, <see cref="MessageActionChatJoinedByRequest"/>, <see cref="MessageActionWebViewDataSentMe"/>, <see cref="MessageActionWebViewDataSent"/>, <see cref="MessageActionGiftPremium"/>, <see cref="MessageActionTopicCreate"/>, <see cref="MessageActionTopicEdit"/>, <see cref="MessageActionSuggestProfilePhoto"/>, <see cref="MessageActionRequestedPeer"/>, <see cref="MessageActionSetChatWallPaper"/>, <see cref="MessageActionSetSameChatWallPaper"/></para></summary>
|
/// <summary>Object describing actions connected to a service message. <para>See <a href="https://corefork.telegram.org/type/MessageAction"/></para> <para>Derived classes: <see cref="MessageActionChatCreate"/>, <see cref="MessageActionChatEditTitle"/>, <see cref="MessageActionChatEditPhoto"/>, <see cref="MessageActionChatDeletePhoto"/>, <see cref="MessageActionChatAddUser"/>, <see cref="MessageActionChatDeleteUser"/>, <see cref="MessageActionChatJoinedByLink"/>, <see cref="MessageActionChannelCreate"/>, <see cref="MessageActionChatMigrateTo"/>, <see cref="MessageActionChannelMigrateFrom"/>, <see cref="MessageActionPinMessage"/>, <see cref="MessageActionHistoryClear"/>, <see cref="MessageActionGameScore"/>, <see cref="MessageActionPaymentSentMe"/>, <see cref="MessageActionPaymentSent"/>, <see cref="MessageActionPhoneCall"/>, <see cref="MessageActionScreenshotTaken"/>, <see cref="MessageActionCustomAction"/>, <see cref="MessageActionBotAllowed"/>, <see cref="MessageActionSecureValuesSentMe"/>, <see cref="MessageActionSecureValuesSent"/>, <see cref="MessageActionContactSignUp"/>, <see cref="MessageActionGeoProximityReached"/>, <see cref="MessageActionGroupCall"/>, <see cref="MessageActionInviteToGroupCall"/>, <see cref="MessageActionSetMessagesTTL"/>, <see cref="MessageActionGroupCallScheduled"/>, <see cref="MessageActionSetChatTheme"/>, <see cref="MessageActionChatJoinedByRequest"/>, <see cref="MessageActionWebViewDataSentMe"/>, <see cref="MessageActionWebViewDataSent"/>, <see cref="MessageActionGiftPremium"/>, <see cref="MessageActionTopicCreate"/>, <see cref="MessageActionTopicEdit"/>, <see cref="MessageActionSuggestProfilePhoto"/>, <see cref="MessageActionRequestedPeer"/>, <see cref="MessageActionSetChatWallPaper"/>, <see cref="MessageActionGiftCode"/>, <see cref="MessageActionGiveawayLaunch"/>, <see cref="MessageActionGiveawayResults"/></para></summary>
|
||||||
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/messageActionEmpty">messageActionEmpty</a></remarks>
|
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/messageActionEmpty">messageActionEmpty</a></remarks>
|
||||||
public abstract class MessageAction : IObject { }
|
public abstract class MessageAction : IObject { }
|
||||||
/// <summary>Group created <para>See <a href="https://corefork.telegram.org/constructor/messageActionChatCreate"/></para></summary>
|
/// <summary>Group created <para>See <a href="https://corefork.telegram.org/constructor/messageActionChatCreate"/></para></summary>
|
||||||
|
|
@ -2406,13 +2411,16 @@ namespace TL
|
||||||
[TLDef(0x5060A3F4)]
|
[TLDef(0x5060A3F4)]
|
||||||
public class MessageActionSetChatWallPaper : MessageAction
|
public class MessageActionSetChatWallPaper : MessageAction
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
/// <summary>New <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a></summary>
|
/// <summary>New <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a></summary>
|
||||||
public WallPaperBase wallpaper;
|
public WallPaperBase wallpaper;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>If set, indicates the user applied a <a href="https://corefork.telegram.org/api/wallpapers">wallpaper »</a> previously sent by the other user in a <see cref="MessageActionSetChatWallPaper"/> message.</summary>
|
||||||
same = 0x1,
|
same = 0x1,
|
||||||
|
/// <summary>If set, indicates the wallpaper was forcefully applied for both sides, without explicit confirmation from the other side. <br/>If the message is incoming, and we did not like the new wallpaper the other user has chosen for us, we can re-set our previous wallpaper just on our side, by invoking <see cref="SchemaExtensions.Messages_SetChatWallPaper">Messages_SetChatWallPaper</see>, providing only the <c>revert</c> flag (and obviously the <c>peer</c> parameter).</summary>
|
||||||
for_both = 0x2,
|
for_both = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2420,6 +2428,7 @@ namespace TL
|
||||||
[TLDef(0xD2CFDB0E)]
|
[TLDef(0xD2CFDB0E)]
|
||||||
public class MessageActionGiftCode : MessageAction
|
public class MessageActionGiftCode : MessageAction
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
[IfFlag(1)] public Peer boost_peer;
|
[IfFlag(1)] public Peer boost_peer;
|
||||||
public int months;
|
public int months;
|
||||||
|
|
@ -2428,6 +2437,7 @@ namespace TL
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
via_giveaway = 0x1,
|
via_giveaway = 0x1,
|
||||||
|
/// <summary>Field <see cref="boost_peer"/> has a value</summary>
|
||||||
has_boost_peer = 0x2,
|
has_boost_peer = 0x2,
|
||||||
unclaimed = 0x4,
|
unclaimed = 0x4,
|
||||||
}
|
}
|
||||||
|
|
@ -3131,6 +3141,7 @@ namespace TL
|
||||||
stories_pinned_available = 0x4000000,
|
stories_pinned_available = 0x4000000,
|
||||||
/// <summary>Whether we've <a href="https://corefork.telegram.org/api/block">blocked this user, preventing them from seeing our stories »</a>.</summary>
|
/// <summary>Whether we've <a href="https://corefork.telegram.org/api/block">blocked this user, preventing them from seeing our stories »</a>.</summary>
|
||||||
blocked_my_stories_from = 0x8000000,
|
blocked_my_stories_from = 0x8000000,
|
||||||
|
/// <summary>Whether the other user has chosen a custom wallpaper for us using <see cref="SchemaExtensions.Messages_SetChatWallPaper">Messages_SetChatWallPaper</see> and the <c>for_both</c> flag, see <a href="https://corefork.telegram.org/api/wallpapers#installing-wallpapers-in-a-specific-chat">here »</a> for more info.</summary>
|
||||||
wallpaper_overridden = 0x10000000,
|
wallpaper_overridden = 0x10000000,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3454,7 +3465,7 @@ namespace TL
|
||||||
[TLDef(0x1BB00451)]
|
[TLDef(0x1BB00451)]
|
||||||
public class InputMessagesFilterPinned : MessagesFilter { }
|
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="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>
|
/// <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"/>, <see cref="UpdateBotChatBoost"/>, <see cref="UpdateChannelViewForumAsMessages"/>, <see cref="UpdatePeerWallpaper"/></para></summary>
|
||||||
public abstract class Update : IObject
|
public abstract class Update : IObject
|
||||||
{
|
{
|
||||||
public virtual (long mbox_id, int pts, int pts_count) GetMBox() => default;
|
public virtual (long mbox_id, int pts, int pts_count) GetMBox() => default;
|
||||||
|
|
@ -3655,6 +3666,7 @@ namespace TL
|
||||||
popup = 0x1,
|
popup = 0x1,
|
||||||
/// <summary>Field <see cref="inbox_date"/> has a value</summary>
|
/// <summary>Field <see cref="inbox_date"/> has a value</summary>
|
||||||
has_inbox_date = 0x2,
|
has_inbox_date = 0x2,
|
||||||
|
/// <summary>If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</summary>
|
||||||
invert_media = 0x4,
|
invert_media = 0x4,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -4890,16 +4902,19 @@ namespace TL
|
||||||
{
|
{
|
||||||
public bool enabled;
|
public bool enabled;
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updatePeerWallpaper"/></para></summary>
|
/// <summary>The <a href="https://corefork.telegram.org/api/wallpapers">wallpaper »</a> of a given peer has changed. <para>See <a href="https://corefork.telegram.org/constructor/updatePeerWallpaper"/></para></summary>
|
||||||
[TLDef(0xAE3F101D)]
|
[TLDef(0xAE3F101D)]
|
||||||
public class UpdatePeerWallpaper : Update
|
public class UpdatePeerWallpaper : Update
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
/// <summary>The peer where the wallpaper has changed.</summary>
|
||||||
public Peer peer;
|
public Peer peer;
|
||||||
[IfFlag(0)] public WallPaperBase wallpaper;
|
[IfFlag(0)] public WallPaperBase wallpaper;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Field <see cref="wallpaper"/> has a value</summary>
|
||||||
has_wallpaper = 0x1,
|
has_wallpaper = 0x1,
|
||||||
wallpaper_overridden = 0x2,
|
wallpaper_overridden = 0x2,
|
||||||
}
|
}
|
||||||
|
|
@ -6355,6 +6370,7 @@ namespace TL
|
||||||
[TLDef(0x211A1788)]
|
[TLDef(0x211A1788)]
|
||||||
public class WebPageEmpty : WebPageBase
|
public class WebPageEmpty : WebPageBase
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
/// <summary>Preview ID</summary>
|
/// <summary>Preview ID</summary>
|
||||||
public long id;
|
public long id;
|
||||||
|
|
@ -6374,6 +6390,7 @@ namespace TL
|
||||||
[TLDef(0xB0D13E47)]
|
[TLDef(0xB0D13E47)]
|
||||||
public class WebPagePending : WebPageBase
|
public class WebPagePending : WebPageBase
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
/// <summary>ID of preview</summary>
|
/// <summary>ID of preview</summary>
|
||||||
public long id;
|
public long id;
|
||||||
|
|
@ -7195,7 +7212,7 @@ namespace TL
|
||||||
public KeyboardButtonRow[] rows;
|
public KeyboardButtonRow[] rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Message entities, representing styled text in a message <para>See <a href="https://corefork.telegram.org/type/MessageEntity"/></para> <para>Derived classes: <see cref="MessageEntityUnknown"/>, <see cref="MessageEntityMention"/>, <see cref="MessageEntityHashtag"/>, <see cref="MessageEntityBotCommand"/>, <see cref="MessageEntityUrl"/>, <see cref="MessageEntityEmail"/>, <see cref="MessageEntityBold"/>, <see cref="MessageEntityItalic"/>, <see cref="MessageEntityCode"/>, <see cref="MessageEntityPre"/>, <see cref="MessageEntityTextUrl"/>, <see cref="MessageEntityMentionName"/>, <see cref="InputMessageEntityMentionName"/>, <see cref="MessageEntityPhone"/>, <see cref="MessageEntityCashtag"/>, <see cref="MessageEntityUnderline"/>, <see cref="MessageEntityStrike"/>, <see cref="MessageEntityBankCard"/>, <see cref="MessageEntitySpoiler"/>, <see cref="MessageEntityCustomEmoji"/></para></summary>
|
/// <summary>Message entities, representing styled text in a message <para>See <a href="https://corefork.telegram.org/type/MessageEntity"/></para> <para>Derived classes: <see cref="MessageEntityUnknown"/>, <see cref="MessageEntityMention"/>, <see cref="MessageEntityHashtag"/>, <see cref="MessageEntityBotCommand"/>, <see cref="MessageEntityUrl"/>, <see cref="MessageEntityEmail"/>, <see cref="MessageEntityBold"/>, <see cref="MessageEntityItalic"/>, <see cref="MessageEntityCode"/>, <see cref="MessageEntityPre"/>, <see cref="MessageEntityTextUrl"/>, <see cref="MessageEntityMentionName"/>, <see cref="InputMessageEntityMentionName"/>, <see cref="MessageEntityPhone"/>, <see cref="MessageEntityCashtag"/>, <see cref="MessageEntityUnderline"/>, <see cref="MessageEntityStrike"/>, <see cref="MessageEntityBankCard"/>, <see cref="MessageEntitySpoiler"/>, <see cref="MessageEntityCustomEmoji"/>, <see cref="MessageEntityBlockquote"/></para></summary>
|
||||||
public abstract partial class MessageEntity : IObject
|
public abstract partial class MessageEntity : IObject
|
||||||
{
|
{
|
||||||
/// <summary>Offset of message entity within message (in <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16 code units</a>)</summary>
|
/// <summary>Offset of message entity within message (in <a href="https://corefork.telegram.org/api/entities#entity-length">UTF-16 code units</a>)</summary>
|
||||||
|
|
@ -7678,7 +7695,7 @@ namespace TL
|
||||||
public DocumentBase[] gifs;
|
public DocumentBase[] gifs;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Represents a sent inline message from the perspective of a bot <para>See <a href="https://corefork.telegram.org/type/InputBotInlineMessage"/></para> <para>Derived classes: <see cref="InputBotInlineMessageMediaAuto"/>, <see cref="InputBotInlineMessageText"/>, <see cref="InputBotInlineMessageMediaGeo"/>, <see cref="InputBotInlineMessageMediaVenue"/>, <see cref="InputBotInlineMessageMediaContact"/>, <see cref="InputBotInlineMessageGame"/>, <see cref="InputBotInlineMessageMediaInvoice"/></para></summary>
|
/// <summary>Represents a sent inline message from the perspective of a bot <para>See <a href="https://corefork.telegram.org/type/InputBotInlineMessage"/></para> <para>Derived classes: <see cref="InputBotInlineMessageMediaAuto"/>, <see cref="InputBotInlineMessageText"/>, <see cref="InputBotInlineMessageMediaGeo"/>, <see cref="InputBotInlineMessageMediaVenue"/>, <see cref="InputBotInlineMessageMediaContact"/>, <see cref="InputBotInlineMessageGame"/>, <see cref="InputBotInlineMessageMediaInvoice"/>, <see cref="InputBotInlineMessageMediaWebPage"/></para></summary>
|
||||||
public abstract class InputBotInlineMessage : IObject { }
|
public abstract class InputBotInlineMessage : IObject { }
|
||||||
/// <summary>A media <para>See <a href="https://corefork.telegram.org/constructor/inputBotInlineMessageMediaAuto"/></para></summary>
|
/// <summary>A media <para>See <a href="https://corefork.telegram.org/constructor/inputBotInlineMessageMediaAuto"/></para></summary>
|
||||||
[TLDef(0x3380C786)]
|
[TLDef(0x3380C786)]
|
||||||
|
|
@ -7699,6 +7716,7 @@ namespace TL
|
||||||
has_entities = 0x2,
|
has_entities = 0x2,
|
||||||
/// <summary>Field <see cref="reply_markup"/> has a value</summary>
|
/// <summary>Field <see cref="reply_markup"/> has a value</summary>
|
||||||
has_reply_markup = 0x4,
|
has_reply_markup = 0x4,
|
||||||
|
/// <summary>If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</summary>
|
||||||
invert_media = 0x8,
|
invert_media = 0x8,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -7723,6 +7741,7 @@ namespace TL
|
||||||
has_entities = 0x2,
|
has_entities = 0x2,
|
||||||
/// <summary>Field <see cref="reply_markup"/> has a value</summary>
|
/// <summary>Field <see cref="reply_markup"/> has a value</summary>
|
||||||
has_reply_markup = 0x4,
|
has_reply_markup = 0x4,
|
||||||
|
/// <summary>If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</summary>
|
||||||
invert_media = 0x8,
|
invert_media = 0x8,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -7855,16 +7874,21 @@ namespace TL
|
||||||
[TLDef(0xBDDCC510)]
|
[TLDef(0xBDDCC510)]
|
||||||
public class InputBotInlineMessageMediaWebPage : InputBotInlineMessage
|
public class InputBotInlineMessageMediaWebPage : InputBotInlineMessage
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
public string message;
|
public string message;
|
||||||
|
/// <summary><a href="https://corefork.telegram.org/api/entities">Message entities for styled text</a></summary>
|
||||||
[IfFlag(1)] public MessageEntity[] entities;
|
[IfFlag(1)] public MessageEntity[] entities;
|
||||||
public string url;
|
public string url;
|
||||||
[IfFlag(2)] public ReplyMarkup reply_markup;
|
[IfFlag(2)] public ReplyMarkup reply_markup;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Field <see cref="entities"/> has a value</summary>
|
||||||
has_entities = 0x2,
|
has_entities = 0x2,
|
||||||
|
/// <summary>Field <see cref="reply_markup"/> has a value</summary>
|
||||||
has_reply_markup = 0x4,
|
has_reply_markup = 0x4,
|
||||||
|
/// <summary>If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</summary>
|
||||||
invert_media = 0x8,
|
invert_media = 0x8,
|
||||||
force_large_media = 0x10,
|
force_large_media = 0x10,
|
||||||
force_small_media = 0x20,
|
force_small_media = 0x20,
|
||||||
|
|
@ -7989,7 +8013,7 @@ namespace TL
|
||||||
public override InputBotInlineMessage SendMessage { get => send_message; set => send_message = value; }
|
public override InputBotInlineMessage SendMessage { get => send_message; set => send_message = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Inline message <para>See <a href="https://corefork.telegram.org/type/BotInlineMessage"/></para> <para>Derived classes: <see cref="BotInlineMessageMediaAuto"/>, <see cref="BotInlineMessageText"/>, <see cref="BotInlineMessageMediaGeo"/>, <see cref="BotInlineMessageMediaVenue"/>, <see cref="BotInlineMessageMediaContact"/>, <see cref="BotInlineMessageMediaInvoice"/></para></summary>
|
/// <summary>Inline message <para>See <a href="https://corefork.telegram.org/type/BotInlineMessage"/></para> <para>Derived classes: <see cref="BotInlineMessageMediaAuto"/>, <see cref="BotInlineMessageText"/>, <see cref="BotInlineMessageMediaGeo"/>, <see cref="BotInlineMessageMediaVenue"/>, <see cref="BotInlineMessageMediaContact"/>, <see cref="BotInlineMessageMediaInvoice"/>, <see cref="BotInlineMessageMediaWebPage"/></para></summary>
|
||||||
public abstract class BotInlineMessage : IObject { }
|
public abstract class BotInlineMessage : IObject { }
|
||||||
/// <summary>Send whatever media is attached to the <see cref="BotInlineMediaResult"/> <para>See <a href="https://corefork.telegram.org/constructor/botInlineMessageMediaAuto"/></para></summary>
|
/// <summary>Send whatever media is attached to the <see cref="BotInlineMediaResult"/> <para>See <a href="https://corefork.telegram.org/constructor/botInlineMessageMediaAuto"/></para></summary>
|
||||||
[TLDef(0x764CF810)]
|
[TLDef(0x764CF810)]
|
||||||
|
|
@ -8010,6 +8034,7 @@ namespace TL
|
||||||
has_entities = 0x2,
|
has_entities = 0x2,
|
||||||
/// <summary>Field <see cref="reply_markup"/> has a value</summary>
|
/// <summary>Field <see cref="reply_markup"/> has a value</summary>
|
||||||
has_reply_markup = 0x4,
|
has_reply_markup = 0x4,
|
||||||
|
/// <summary>If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</summary>
|
||||||
invert_media = 0x8,
|
invert_media = 0x8,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -8034,6 +8059,7 @@ namespace TL
|
||||||
has_entities = 0x2,
|
has_entities = 0x2,
|
||||||
/// <summary>Field <see cref="reply_markup"/> has a value</summary>
|
/// <summary>Field <see cref="reply_markup"/> has a value</summary>
|
||||||
has_reply_markup = 0x4,
|
has_reply_markup = 0x4,
|
||||||
|
/// <summary>If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</summary>
|
||||||
invert_media = 0x8,
|
invert_media = 0x8,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -8151,16 +8177,21 @@ namespace TL
|
||||||
[TLDef(0x809AD9A6)]
|
[TLDef(0x809AD9A6)]
|
||||||
public class BotInlineMessageMediaWebPage : BotInlineMessage
|
public class BotInlineMessageMediaWebPage : BotInlineMessage
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
public string message;
|
public string message;
|
||||||
|
/// <summary><a href="https://corefork.telegram.org/api/entities">Message entities for styled text</a></summary>
|
||||||
[IfFlag(1)] public MessageEntity[] entities;
|
[IfFlag(1)] public MessageEntity[] entities;
|
||||||
public string url;
|
public string url;
|
||||||
[IfFlag(2)] public ReplyMarkup reply_markup;
|
[IfFlag(2)] public ReplyMarkup reply_markup;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Field <see cref="entities"/> has a value</summary>
|
||||||
has_entities = 0x2,
|
has_entities = 0x2,
|
||||||
|
/// <summary>Field <see cref="reply_markup"/> has a value</summary>
|
||||||
has_reply_markup = 0x4,
|
has_reply_markup = 0x4,
|
||||||
|
/// <summary>If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</summary>
|
||||||
invert_media = 0x8,
|
invert_media = 0x8,
|
||||||
force_large_media = 0x10,
|
force_large_media = 0x10,
|
||||||
force_small_media = 0x20,
|
force_small_media = 0x20,
|
||||||
|
|
@ -8703,6 +8734,7 @@ namespace TL
|
||||||
has_reply_to = 0x10,
|
has_reply_to = 0x10,
|
||||||
/// <summary>Field <see cref="media"/> has a value</summary>
|
/// <summary>Field <see cref="media"/> has a value</summary>
|
||||||
has_media = 0x20,
|
has_media = 0x20,
|
||||||
|
/// <summary>If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</summary>
|
||||||
invert_media = 0x40,
|
invert_media = 0x40,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -10398,7 +10430,7 @@ namespace TL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Channel admin log event <para>See <a href="https://corefork.telegram.org/type/ChannelAdminLogEventAction"/></para> <para>Derived classes: <see cref="ChannelAdminLogEventActionChangeTitle"/>, <see cref="ChannelAdminLogEventActionChangeAbout"/>, <see cref="ChannelAdminLogEventActionChangeUsername"/>, <see cref="ChannelAdminLogEventActionChangePhoto"/>, <see cref="ChannelAdminLogEventActionToggleInvites"/>, <see cref="ChannelAdminLogEventActionToggleSignatures"/>, <see cref="ChannelAdminLogEventActionUpdatePinned"/>, <see cref="ChannelAdminLogEventActionEditMessage"/>, <see cref="ChannelAdminLogEventActionDeleteMessage"/>, <see cref="ChannelAdminLogEventActionParticipantJoin"/>, <see cref="ChannelAdminLogEventActionParticipantLeave"/>, <see cref="ChannelAdminLogEventActionParticipantInvite"/>, <see cref="ChannelAdminLogEventActionParticipantToggleBan"/>, <see cref="ChannelAdminLogEventActionParticipantToggleAdmin"/>, <see cref="ChannelAdminLogEventActionChangeStickerSet"/>, <see cref="ChannelAdminLogEventActionTogglePreHistoryHidden"/>, <see cref="ChannelAdminLogEventActionDefaultBannedRights"/>, <see cref="ChannelAdminLogEventActionStopPoll"/>, <see cref="ChannelAdminLogEventActionChangeLinkedChat"/>, <see cref="ChannelAdminLogEventActionChangeLocation"/>, <see cref="ChannelAdminLogEventActionToggleSlowMode"/>, <see cref="ChannelAdminLogEventActionStartGroupCall"/>, <see cref="ChannelAdminLogEventActionDiscardGroupCall"/>, <see cref="ChannelAdminLogEventActionParticipantMute"/>, <see cref="ChannelAdminLogEventActionParticipantUnmute"/>, <see cref="ChannelAdminLogEventActionToggleGroupCallSetting"/>, <see cref="ChannelAdminLogEventActionParticipantJoinByInvite"/>, <see cref="ChannelAdminLogEventActionExportedInviteDelete"/>, <see cref="ChannelAdminLogEventActionExportedInviteRevoke"/>, <see cref="ChannelAdminLogEventActionExportedInviteEdit"/>, <see cref="ChannelAdminLogEventActionParticipantVolume"/>, <see cref="ChannelAdminLogEventActionChangeHistoryTTL"/>, <see cref="ChannelAdminLogEventActionParticipantJoinByRequest"/>, <see cref="ChannelAdminLogEventActionToggleNoForwards"/>, <see cref="ChannelAdminLogEventActionSendMessage"/>, <see cref="ChannelAdminLogEventActionChangeAvailableReactions"/>, <see cref="ChannelAdminLogEventActionChangeUsernames"/>, <see cref="ChannelAdminLogEventActionToggleForum"/>, <see cref="ChannelAdminLogEventActionCreateTopic"/>, <see cref="ChannelAdminLogEventActionEditTopic"/>, <see cref="ChannelAdminLogEventActionDeleteTopic"/>, <see cref="ChannelAdminLogEventActionPinTopic"/>, <see cref="ChannelAdminLogEventActionToggleAntiSpam"/></para></summary>
|
/// <summary>Channel admin log event <para>See <a href="https://corefork.telegram.org/type/ChannelAdminLogEventAction"/></para> <para>Derived classes: <see cref="ChannelAdminLogEventActionChangeTitle"/>, <see cref="ChannelAdminLogEventActionChangeAbout"/>, <see cref="ChannelAdminLogEventActionChangeUsername"/>, <see cref="ChannelAdminLogEventActionChangePhoto"/>, <see cref="ChannelAdminLogEventActionToggleInvites"/>, <see cref="ChannelAdminLogEventActionToggleSignatures"/>, <see cref="ChannelAdminLogEventActionUpdatePinned"/>, <see cref="ChannelAdminLogEventActionEditMessage"/>, <see cref="ChannelAdminLogEventActionDeleteMessage"/>, <see cref="ChannelAdminLogEventActionParticipantJoin"/>, <see cref="ChannelAdminLogEventActionParticipantLeave"/>, <see cref="ChannelAdminLogEventActionParticipantInvite"/>, <see cref="ChannelAdminLogEventActionParticipantToggleBan"/>, <see cref="ChannelAdminLogEventActionParticipantToggleAdmin"/>, <see cref="ChannelAdminLogEventActionChangeStickerSet"/>, <see cref="ChannelAdminLogEventActionTogglePreHistoryHidden"/>, <see cref="ChannelAdminLogEventActionDefaultBannedRights"/>, <see cref="ChannelAdminLogEventActionStopPoll"/>, <see cref="ChannelAdminLogEventActionChangeLinkedChat"/>, <see cref="ChannelAdminLogEventActionChangeLocation"/>, <see cref="ChannelAdminLogEventActionToggleSlowMode"/>, <see cref="ChannelAdminLogEventActionStartGroupCall"/>, <see cref="ChannelAdminLogEventActionDiscardGroupCall"/>, <see cref="ChannelAdminLogEventActionParticipantMute"/>, <see cref="ChannelAdminLogEventActionParticipantUnmute"/>, <see cref="ChannelAdminLogEventActionToggleGroupCallSetting"/>, <see cref="ChannelAdminLogEventActionParticipantJoinByInvite"/>, <see cref="ChannelAdminLogEventActionExportedInviteDelete"/>, <see cref="ChannelAdminLogEventActionExportedInviteRevoke"/>, <see cref="ChannelAdminLogEventActionExportedInviteEdit"/>, <see cref="ChannelAdminLogEventActionParticipantVolume"/>, <see cref="ChannelAdminLogEventActionChangeHistoryTTL"/>, <see cref="ChannelAdminLogEventActionParticipantJoinByRequest"/>, <see cref="ChannelAdminLogEventActionToggleNoForwards"/>, <see cref="ChannelAdminLogEventActionSendMessage"/>, <see cref="ChannelAdminLogEventActionChangeAvailableReactions"/>, <see cref="ChannelAdminLogEventActionChangeUsernames"/>, <see cref="ChannelAdminLogEventActionToggleForum"/>, <see cref="ChannelAdminLogEventActionCreateTopic"/>, <see cref="ChannelAdminLogEventActionEditTopic"/>, <see cref="ChannelAdminLogEventActionDeleteTopic"/>, <see cref="ChannelAdminLogEventActionPinTopic"/>, <see cref="ChannelAdminLogEventActionToggleAntiSpam"/>, <see cref="ChannelAdminLogEventActionChangeColor"/>, <see cref="ChannelAdminLogEventActionChangeBackgroundEmoji"/></para></summary>
|
||||||
public abstract class ChannelAdminLogEventAction : IObject { }
|
public abstract class ChannelAdminLogEventAction : IObject { }
|
||||||
/// <summary>Channel/supergroup title was changed <para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionChangeTitle"/></para></summary>
|
/// <summary>Channel/supergroup title was changed <para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionChangeTitle"/></para></summary>
|
||||||
[TLDef(0xE6DFB825)]
|
[TLDef(0xE6DFB825)]
|
||||||
|
|
@ -10749,14 +10781,14 @@ namespace TL
|
||||||
/// <summary>Whether antispam functionality was enabled or disabled.</summary>
|
/// <summary>Whether antispam functionality was enabled or disabled.</summary>
|
||||||
public bool new_value;
|
public bool new_value;
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionChangeColor"/></para></summary>
|
/// <summary>The <a href="https://corefork.telegram.org/api/colors">background profile color »</a> of a channel was changed. <para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionChangeColor"/></para></summary>
|
||||||
[TLDef(0x3C2B247B)]
|
[TLDef(0x3C2B247B)]
|
||||||
public class ChannelAdminLogEventActionChangeColor : ChannelAdminLogEventAction
|
public class ChannelAdminLogEventActionChangeColor : ChannelAdminLogEventAction
|
||||||
{
|
{
|
||||||
public int prev_value;
|
public int prev_value;
|
||||||
public int new_value;
|
public int new_value;
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionChangeBackgroundEmoji"/></para></summary>
|
/// <summary>The <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji</a> used to generate the pattern of the <a href="https://corefork.telegram.org/api/colors">background profile color »</a> of a channel was changed. <para>See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionChangeBackgroundEmoji"/></para></summary>
|
||||||
[TLDef(0x445FC434)]
|
[TLDef(0x445FC434)]
|
||||||
public class ChannelAdminLogEventActionChangeBackgroundEmoji : ChannelAdminLogEventAction
|
public class ChannelAdminLogEventActionChangeBackgroundEmoji : ChannelAdminLogEventAction
|
||||||
{
|
{
|
||||||
|
|
@ -13208,7 +13240,7 @@ namespace TL
|
||||||
{
|
{
|
||||||
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
/// <summary>Discussion messages</summary>
|
/// <summary>The messages from which the thread starts. The messages are returned in reverse chronological order (i.e., in order of decreasing message ID).</summary>
|
||||||
public MessageBase[] messages;
|
public MessageBase[] messages;
|
||||||
/// <summary>Message ID of latest reply in this <a href="https://corefork.telegram.org/api/threads">thread</a></summary>
|
/// <summary>Message ID of latest reply in this <a href="https://corefork.telegram.org/api/threads">thread</a></summary>
|
||||||
[IfFlag(0)] public int max_id;
|
[IfFlag(0)] public int max_id;
|
||||||
|
|
@ -13253,6 +13285,7 @@ namespace TL
|
||||||
/// <summary>ID of the message that started this <a href="https://corefork.telegram.org/api/threads">message thread</a></summary>
|
/// <summary>ID of the message that started this <a href="https://corefork.telegram.org/api/threads">message thread</a></summary>
|
||||||
[IfFlag(1)] public int reply_to_top_id;
|
[IfFlag(1)] public int reply_to_top_id;
|
||||||
[IfFlag(6)] public string quote_text;
|
[IfFlag(6)] public string quote_text;
|
||||||
|
/// <summary><a href="https://corefork.telegram.org/api/entities">Message entities for styled text</a></summary>
|
||||||
[IfFlag(7)] public MessageEntity[] quote_entities;
|
[IfFlag(7)] public MessageEntity[] quote_entities;
|
||||||
[IfFlag(10)] public int quote_offset;
|
[IfFlag(10)] public int quote_offset;
|
||||||
|
|
||||||
|
|
@ -14414,7 +14447,7 @@ namespace TL
|
||||||
Broadcast = 0x7BFBDEFC,
|
Broadcast = 0x7BFBDEFC,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>An invoice <para>See <a href="https://corefork.telegram.org/type/InputInvoice"/></para> <para>Derived classes: <see cref="InputInvoiceMessage"/>, <see cref="InputInvoiceSlug"/></para></summary>
|
/// <summary>An invoice <para>See <a href="https://corefork.telegram.org/type/InputInvoice"/></para> <para>Derived classes: <see cref="InputInvoiceMessage"/>, <see cref="InputInvoiceSlug"/>, <see cref="InputInvoicePremiumGiftCode"/></para></summary>
|
||||||
public abstract class InputInvoice : IObject { }
|
public abstract class InputInvoice : IObject { }
|
||||||
/// <summary>An invoice contained in a <see cref="MessageMediaInvoice"/> message. <para>See <a href="https://corefork.telegram.org/constructor/inputInvoiceMessage"/></para></summary>
|
/// <summary>An invoice contained in a <see cref="MessageMediaInvoice"/> message. <para>See <a href="https://corefork.telegram.org/constructor/inputInvoiceMessage"/></para></summary>
|
||||||
[TLDef(0xC5B56859)]
|
[TLDef(0xC5B56859)]
|
||||||
|
|
@ -14458,7 +14491,9 @@ namespace TL
|
||||||
public long transcription_id;
|
public long transcription_id;
|
||||||
/// <summary>Transcripted text</summary>
|
/// <summary>Transcripted text</summary>
|
||||||
public string text;
|
public string text;
|
||||||
|
/// <summary>For non-<a href="https://corefork.telegram.org/api/premium">Premium</a> users, this flag will be set, indicating the remaining transcriptions in the free trial period.</summary>
|
||||||
[IfFlag(1)] public int trial_remains_num;
|
[IfFlag(1)] public int trial_remains_num;
|
||||||
|
/// <summary>For non-<a href="https://corefork.telegram.org/api/premium">Premium</a> users, this flag will be set, indicating the date when the <c>trial_remains_num</c> counter will be reset to the maximum value of <a href="https://corefork.telegram.org/api/config#transcribe-audio-trial-weekly-number">transcribe_audio_trial_weekly_number</a>.</summary>
|
||||||
[IfFlag(1)] public DateTime trial_remains_until_date;
|
[IfFlag(1)] public DateTime trial_remains_until_date;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
|
|
@ -14488,7 +14523,7 @@ namespace TL
|
||||||
public Dictionary<long, User> users;
|
public Dictionary<long, User> users;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Info about a Telegram Premium purchase <para>See <a href="https://corefork.telegram.org/type/InputStorePaymentPurpose"/></para> <para>Derived classes: <see cref="InputStorePaymentPremiumSubscription"/>, <see cref="InputStorePaymentGiftPremium"/></para></summary>
|
/// <summary>Info about a Telegram Premium purchase <para>See <a href="https://corefork.telegram.org/type/InputStorePaymentPurpose"/></para> <para>Derived classes: <see cref="InputStorePaymentPremiumSubscription"/>, <see cref="InputStorePaymentGiftPremium"/>, <see cref="InputStorePaymentPremiumGiftCode"/>, <see cref="InputStorePaymentPremiumGiveaway"/></para></summary>
|
||||||
public abstract class InputStorePaymentPurpose : IObject { }
|
public abstract class InputStorePaymentPurpose : IObject { }
|
||||||
/// <summary>Info about a Telegram Premium purchase <para>See <a href="https://corefork.telegram.org/constructor/inputStorePaymentPremiumSubscription"/></para></summary>
|
/// <summary>Info about a Telegram Premium purchase <para>See <a href="https://corefork.telegram.org/constructor/inputStorePaymentPremiumSubscription"/></para></summary>
|
||||||
[TLDef(0xA6751E66)]
|
[TLDef(0xA6751E66)]
|
||||||
|
|
@ -14520,6 +14555,7 @@ namespace TL
|
||||||
[TLDef(0xA3805F3F)]
|
[TLDef(0xA3805F3F)]
|
||||||
public class InputStorePaymentPremiumGiftCode : InputStorePaymentPurpose
|
public class InputStorePaymentPremiumGiftCode : InputStorePaymentPurpose
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
public InputUserBase[] users;
|
public InputUserBase[] users;
|
||||||
[IfFlag(0)] public InputPeer boost_peer;
|
[IfFlag(0)] public InputPeer boost_peer;
|
||||||
|
|
@ -14528,6 +14564,7 @@ namespace TL
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Field <see cref="boost_peer"/> has a value</summary>
|
||||||
has_boost_peer = 0x1,
|
has_boost_peer = 0x1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -14535,6 +14572,7 @@ namespace TL
|
||||||
[TLDef(0x7C9375E6)]
|
[TLDef(0x7C9375E6)]
|
||||||
public class InputStorePaymentPremiumGiveaway : InputStorePaymentPurpose
|
public class InputStorePaymentPremiumGiveaway : InputStorePaymentPurpose
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
public InputPeer boost_peer;
|
public InputPeer boost_peer;
|
||||||
[IfFlag(1)] public InputPeer[] additional_peers;
|
[IfFlag(1)] public InputPeer[] additional_peers;
|
||||||
|
|
@ -14547,7 +14585,9 @@ namespace TL
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
only_new_subscribers = 0x1,
|
only_new_subscribers = 0x1,
|
||||||
|
/// <summary>Field <see cref="additional_peers"/> has a value</summary>
|
||||||
has_additional_peers = 0x2,
|
has_additional_peers = 0x2,
|
||||||
|
/// <summary>Field <see cref="countries_iso2"/> has a value</summary>
|
||||||
has_countries_iso2 = 0x4,
|
has_countries_iso2 = 0x4,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -15540,6 +15580,7 @@ namespace TL
|
||||||
public int id;
|
public int id;
|
||||||
/// <summary>When was the story posted.</summary>
|
/// <summary>When was the story posted.</summary>
|
||||||
public DateTime date;
|
public DateTime date;
|
||||||
|
/// <summary>For <a href="https://corefork.telegram.org/api/stories#reposting-stories">reposted stories »</a>, contains info about the original story.</summary>
|
||||||
[IfFlag(17)] public StoryFwdHeader fwd_from;
|
[IfFlag(17)] public StoryFwdHeader fwd_from;
|
||||||
/// <summary>When does the story expire.</summary>
|
/// <summary>When does the story expire.</summary>
|
||||||
public DateTime expire_date;
|
public DateTime expire_date;
|
||||||
|
|
@ -15731,6 +15772,7 @@ namespace TL
|
||||||
[IfFlag(0)] public int top_msg_id;
|
[IfFlag(0)] public int top_msg_id;
|
||||||
[IfFlag(1)] public InputPeer reply_to_peer_id;
|
[IfFlag(1)] public InputPeer reply_to_peer_id;
|
||||||
[IfFlag(2)] public string quote_text;
|
[IfFlag(2)] public string quote_text;
|
||||||
|
/// <summary><a href="https://corefork.telegram.org/api/entities">Message entities for styled text</a></summary>
|
||||||
[IfFlag(3)] public MessageEntity[] quote_entities;
|
[IfFlag(3)] public MessageEntity[] quote_entities;
|
||||||
[IfFlag(4)] public int quote_offset;
|
[IfFlag(4)] public int quote_offset;
|
||||||
|
|
||||||
|
|
@ -15912,6 +15954,7 @@ namespace TL
|
||||||
[TLDef(0x257E962B)]
|
[TLDef(0x257E962B)]
|
||||||
public class PremiumGiftCodeOption : IObject
|
public class PremiumGiftCodeOption : IObject
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
public int users;
|
public int users;
|
||||||
public int months;
|
public int months;
|
||||||
|
|
@ -15922,7 +15965,9 @@ namespace TL
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Field <see cref="store_product"/> has a value</summary>
|
||||||
has_store_product = 0x1,
|
has_store_product = 0x1,
|
||||||
|
/// <summary>Field <see cref="store_quantity"/> has a value</summary>
|
||||||
has_store_quantity = 0x2,
|
has_store_quantity = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -15931,6 +15976,7 @@ namespace TL
|
||||||
[TLDef(0xB722F158)]
|
[TLDef(0xB722F158)]
|
||||||
public class Payments_CheckedGiftCode : IObject, IPeerResolver
|
public class Payments_CheckedGiftCode : IObject, IPeerResolver
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
public Peer from_id;
|
public Peer from_id;
|
||||||
[IfFlag(3)] public int giveaway_msg_id;
|
[IfFlag(3)] public int giveaway_msg_id;
|
||||||
|
|
@ -15943,16 +15989,19 @@ namespace TL
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Field <see cref="to_id"/> has a value</summary>
|
||||||
has_to_id = 0x1,
|
has_to_id = 0x1,
|
||||||
|
/// <summary>Field <see cref="used_date"/> has a value</summary>
|
||||||
has_used_date = 0x2,
|
has_used_date = 0x2,
|
||||||
via_giveaway = 0x4,
|
via_giveaway = 0x4,
|
||||||
|
/// <summary>Field <see cref="giveaway_msg_id"/> has a value</summary>
|
||||||
has_giveaway_msg_id = 0x8,
|
has_giveaway_msg_id = 0x8,
|
||||||
}
|
}
|
||||||
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
|
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
|
||||||
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
|
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/payments.GiveawayInfo"/></para></summary>
|
/// <summary>Info about a <a href="https://corefork.telegram.org/api/giveaways">Telegram Premium Giveaway</a>. <para>See <a href="https://corefork.telegram.org/type/payments.GiveawayInfo"/></para> <para>Derived classes: <see cref="Payments_GiveawayInfo"/>, <see cref="Payments_GiveawayInfoResults"/></para></summary>
|
||||||
public abstract class Payments_GiveawayInfoBase : IObject
|
public abstract class Payments_GiveawayInfoBase : IObject
|
||||||
{
|
{
|
||||||
public virtual DateTime StartDate { get; }
|
public virtual DateTime StartDate { get; }
|
||||||
|
|
@ -15961,6 +16010,7 @@ namespace TL
|
||||||
[TLDef(0x4367DAA0)]
|
[TLDef(0x4367DAA0)]
|
||||||
public class Payments_GiveawayInfo : Payments_GiveawayInfoBase
|
public class Payments_GiveawayInfo : Payments_GiveawayInfoBase
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
public DateTime start_date;
|
public DateTime start_date;
|
||||||
[IfFlag(1)] public DateTime joined_too_early_date;
|
[IfFlag(1)] public DateTime joined_too_early_date;
|
||||||
|
|
@ -15970,9 +16020,12 @@ namespace TL
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
participating = 0x1,
|
participating = 0x1,
|
||||||
|
/// <summary>Field <see cref="joined_too_early_date"/> has a value</summary>
|
||||||
has_joined_too_early_date = 0x2,
|
has_joined_too_early_date = 0x2,
|
||||||
|
/// <summary>Field <see cref="admin_disallowed_chat_id"/> has a value</summary>
|
||||||
has_admin_disallowed_chat_id = 0x4,
|
has_admin_disallowed_chat_id = 0x4,
|
||||||
preparing_results = 0x8,
|
preparing_results = 0x8,
|
||||||
|
/// <summary>Field <see cref="disallowed_country"/> has a value</summary>
|
||||||
has_disallowed_country = 0x10,
|
has_disallowed_country = 0x10,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -15982,6 +16035,7 @@ namespace TL
|
||||||
[TLDef(0x00CD5570)]
|
[TLDef(0x00CD5570)]
|
||||||
public class Payments_GiveawayInfoResults : Payments_GiveawayInfoBase
|
public class Payments_GiveawayInfoResults : Payments_GiveawayInfoBase
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
public DateTime start_date;
|
public DateTime start_date;
|
||||||
[IfFlag(0)] public string gift_code_slug;
|
[IfFlag(0)] public string gift_code_slug;
|
||||||
|
|
@ -16008,236 +16062,318 @@ namespace TL
|
||||||
public DateTime date;
|
public DateTime date;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/boost"/></para></summary>
|
/// <summary>Info about one or more <a href="https://corefork.telegram.org/api/boost">boosts</a> applied by a specific user. <para>See <a href="https://corefork.telegram.org/constructor/boost"/></para></summary>
|
||||||
[TLDef(0x2A1C8C71)]
|
[TLDef(0x2A1C8C71)]
|
||||||
public class Boost : IObject
|
public class Boost : IObject
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
/// <summary>Unique ID for this set of boosts.</summary>
|
||||||
public string id;
|
public string id;
|
||||||
|
/// <summary>ID of the user that applied the boost.</summary>
|
||||||
[IfFlag(0)] public long user_id;
|
[IfFlag(0)] public long user_id;
|
||||||
[IfFlag(2)] public int giveaway_msg_id;
|
[IfFlag(2)] public int giveaway_msg_id;
|
||||||
|
/// <summary>When was the boost applied</summary>
|
||||||
public DateTime date;
|
public DateTime date;
|
||||||
|
/// <summary>When does the boost expire</summary>
|
||||||
public DateTime expires;
|
public DateTime expires;
|
||||||
[IfFlag(4)] public string used_gift_slug;
|
[IfFlag(4)] public string used_gift_slug;
|
||||||
|
/// <summary>If set, this boost counts as <c>multiplier</c> boosts, otherwise it counts as a single boost.</summary>
|
||||||
[IfFlag(5)] public int multiplier;
|
[IfFlag(5)] public int multiplier;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Field <see cref="user_id"/> has a value</summary>
|
||||||
has_user_id = 0x1,
|
has_user_id = 0x1,
|
||||||
gift = 0x2,
|
gift = 0x2,
|
||||||
giveaway = 0x4,
|
giveaway = 0x4,
|
||||||
unclaimed = 0x8,
|
unclaimed = 0x8,
|
||||||
|
/// <summary>Field <see cref="used_gift_slug"/> has a value</summary>
|
||||||
has_used_gift_slug = 0x10,
|
has_used_gift_slug = 0x10,
|
||||||
|
/// <summary>Field <see cref="multiplier"/> has a value</summary>
|
||||||
has_multiplier = 0x20,
|
has_multiplier = 0x20,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/premium.boostsList"/></para></summary>
|
/// <summary>List of <a href="https://corefork.telegram.org/api/boost">boosts</a> that were applied to a peer by multiple users. <para>See <a href="https://corefork.telegram.org/constructor/premium.boostsList"/></para></summary>
|
||||||
[TLDef(0x86F8613C)]
|
[TLDef(0x86F8613C)]
|
||||||
public class Premium_BoostsList : IObject
|
public class Premium_BoostsList : IObject
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
/// <summary>Total number of results</summary>
|
||||||
public int count;
|
public int count;
|
||||||
|
/// <summary><a href="https://corefork.telegram.org/api/boost">Boosts</a></summary>
|
||||||
public Boost[] boosts;
|
public Boost[] boosts;
|
||||||
|
/// <summary>Offset that can be used for <a href="https://corefork.telegram.org/api/offsets">pagination</a>.</summary>
|
||||||
[IfFlag(0)] public string next_offset;
|
[IfFlag(0)] public string next_offset;
|
||||||
|
/// <summary>Mentioned users</summary>
|
||||||
public Dictionary<long, User> users;
|
public Dictionary<long, User> users;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Field <see cref="next_offset"/> has a value</summary>
|
||||||
has_next_offset = 0x1,
|
has_next_offset = 0x1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/myBoost"/></para></summary>
|
/// <summary>Contains information about a single <a href="https://corefork.telegram.org/api/boost">boost slot »</a>. <para>See <a href="https://corefork.telegram.org/constructor/myBoost"/></para></summary>
|
||||||
[TLDef(0xC448415C)]
|
[TLDef(0xC448415C)]
|
||||||
public class MyBoost : IObject
|
public class MyBoost : IObject
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
/// <summary><a href="https://corefork.telegram.org/api/boost">Boost slot ID »</a></summary>
|
||||||
public int slot;
|
public int slot;
|
||||||
|
/// <summary>If set, indicates this slot is currently occupied, i.e. we are <a href="https://corefork.telegram.org/api/boost">boosting</a> this peer. <br/>Note that we can assign multiple boost slots to the same peer.</summary>
|
||||||
[IfFlag(0)] public Peer peer;
|
[IfFlag(0)] public Peer peer;
|
||||||
|
/// <summary>When (unixtime) we started boosting the <c>peer</c>, <c>0</c> otherwise.</summary>
|
||||||
public DateTime date;
|
public DateTime date;
|
||||||
|
/// <summary>Indicates the (unixtime) expiration date of the boost in <c>peer</c> (<c>0</c> if <c>peer</c> is not set).</summary>
|
||||||
public DateTime expires;
|
public DateTime expires;
|
||||||
|
/// <summary>If <c>peer</c> is set, indicates the (unixtime) date after which this boost can be reassigned to another channel.</summary>
|
||||||
[IfFlag(1)] public DateTime cooldown_until_date;
|
[IfFlag(1)] public DateTime cooldown_until_date;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Field <see cref="peer"/> has a value</summary>
|
||||||
has_peer = 0x1,
|
has_peer = 0x1,
|
||||||
|
/// <summary>Field <see cref="cooldown_until_date"/> has a value</summary>
|
||||||
has_cooldown_until_date = 0x2,
|
has_cooldown_until_date = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/premium.myBoosts"/></para></summary>
|
/// <summary>A list of peers we are currently <a href="https://corefork.telegram.org/api/boost">boosting</a>, and how many <a href="https://corefork.telegram.org/api/boost">boost slots</a> we have left. <para>See <a href="https://corefork.telegram.org/constructor/premium.myBoosts"/></para></summary>
|
||||||
[TLDef(0x9AE228E2)]
|
[TLDef(0x9AE228E2)]
|
||||||
public class Premium_MyBoosts : IObject, IPeerResolver
|
public class Premium_MyBoosts : IObject, IPeerResolver
|
||||||
{
|
{
|
||||||
|
/// <summary>Info about boosted peers and remaining boost slots.</summary>
|
||||||
public MyBoost[] my_boosts;
|
public MyBoost[] my_boosts;
|
||||||
|
/// <summary>Referenced chats</summary>
|
||||||
public Dictionary<long, ChatBase> chats;
|
public Dictionary<long, ChatBase> chats;
|
||||||
|
/// <summary>Referenced users</summary>
|
||||||
public Dictionary<long, User> users;
|
public Dictionary<long, User> users;
|
||||||
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
|
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
|
||||||
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
|
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/premium.boostsStatus"/></para></summary>
|
/// <summary>Contains info about the current <a href="https://corefork.telegram.org/api/boost">boost status</a> of a peer. <para>See <a href="https://corefork.telegram.org/constructor/premium.boostsStatus"/></para></summary>
|
||||||
[TLDef(0x4959427A)]
|
[TLDef(0x4959427A)]
|
||||||
public class Premium_BoostsStatus : IObject
|
public class Premium_BoostsStatus : IObject
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
/// <summary>The current boost level of the channel.</summary>
|
||||||
public int level;
|
public int level;
|
||||||
|
/// <summary>The number of boosts acquired so far in the current level.</summary>
|
||||||
public int current_level_boosts;
|
public int current_level_boosts;
|
||||||
|
/// <summary>Total number of boosts acquired so far.</summary>
|
||||||
public int boosts;
|
public int boosts;
|
||||||
|
/// <summary>The number of boosts acquired from created Telegram Premium <a href="https://corefork.telegram.org/api/giveaways">gift codes</a> and <a href="https://corefork.telegram.org/api/giveaways">giveaways</a>; only returned to channel admins.</summary>
|
||||||
[IfFlag(4)] public int gift_boosts;
|
[IfFlag(4)] public int gift_boosts;
|
||||||
|
/// <summary>Total number of boosts needed to reach the next level; if absent, the next level isn't available.</summary>
|
||||||
[IfFlag(0)] public int next_level_boosts;
|
[IfFlag(0)] public int next_level_boosts;
|
||||||
|
/// <summary>Only returned to channel admins: contains the approximated number of Premium users subscribed to the channel, related to the total number of subscribers.</summary>
|
||||||
[IfFlag(1)] public StatsPercentValue premium_audience;
|
[IfFlag(1)] public StatsPercentValue premium_audience;
|
||||||
|
/// <summary><a href="https://corefork.telegram.org/api/links#boost-links">Boost deep link »</a> that can be used to boost the chat.</summary>
|
||||||
public string boost_url;
|
public string boost_url;
|
||||||
|
/// <summary>A list of prepaid <a href="https://corefork.telegram.org/api/giveaways">giveaways</a> available for the chat; only returned to channel admins.</summary>
|
||||||
[IfFlag(3)] public PrepaidGiveaway[] prepaid_giveaways;
|
[IfFlag(3)] public PrepaidGiveaway[] prepaid_giveaways;
|
||||||
|
/// <summary>Indicates which of our <a href="https://corefork.telegram.org/api/boost">boost slots</a> we've assigned to this peer (populated if <c>my_boost</c> is set).</summary>
|
||||||
[IfFlag(2)] public int[] my_boost_slots;
|
[IfFlag(2)] public int[] my_boost_slots;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Field <see cref="next_level_boosts"/> has a value</summary>
|
||||||
has_next_level_boosts = 0x1,
|
has_next_level_boosts = 0x1,
|
||||||
|
/// <summary>Field <see cref="premium_audience"/> has a value</summary>
|
||||||
has_premium_audience = 0x2,
|
has_premium_audience = 0x2,
|
||||||
|
/// <summary>Whether we're currently boosting this channel, <c>my_boost_slots</c> will also be set.</summary>
|
||||||
my_boost = 0x4,
|
my_boost = 0x4,
|
||||||
|
/// <summary>Field <see cref="prepaid_giveaways"/> has a value</summary>
|
||||||
has_prepaid_giveaways = 0x8,
|
has_prepaid_giveaways = 0x8,
|
||||||
|
/// <summary>Field <see cref="gift_boosts"/> has a value</summary>
|
||||||
has_gift_boosts = 0x10,
|
has_gift_boosts = 0x10,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/storyFwdHeader"/></para></summary>
|
/// <summary>Contains info about the original poster of a reposted story. <para>See <a href="https://corefork.telegram.org/constructor/storyFwdHeader"/></para></summary>
|
||||||
[TLDef(0xB826E150)]
|
[TLDef(0xB826E150)]
|
||||||
public class StoryFwdHeader : IObject
|
public class StoryFwdHeader : IObject
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
/// <summary>Peer that originally posted the story; will be empty for stories forwarded from a user with forwards privacy enabled, in which case <c>from_name</c> will be set, instead.</summary>
|
||||||
[IfFlag(0)] public Peer from;
|
[IfFlag(0)] public Peer from;
|
||||||
|
/// <summary>Will be set for stories forwarded from a user with forwards privacy enabled, in which case <c>from</c> will also be empty.</summary>
|
||||||
[IfFlag(1)] public string from_name;
|
[IfFlag(1)] public string from_name;
|
||||||
|
/// <summary>, contains the story ID</summary>
|
||||||
[IfFlag(2)] public int story_id;
|
[IfFlag(2)] public int story_id;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Field <see cref="from"/> has a value</summary>
|
||||||
has_from = 0x1,
|
has_from = 0x1,
|
||||||
|
/// <summary>Field <see cref="from_name"/> has a value</summary>
|
||||||
has_from_name = 0x2,
|
has_from_name = 0x2,
|
||||||
|
/// <summary>Field <see cref="story_id"/> has a value</summary>
|
||||||
has_story_id = 0x4,
|
has_story_id = 0x4,
|
||||||
|
/// <summary>Whether the story media was modified before reposting it (for example by overlaying a round video with a reaction).</summary>
|
||||||
modified = 0x8,
|
modified = 0x8,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/PostInteractionCounters"/></para></summary>
|
/// <summary>Interaction counters <para>See <a href="https://corefork.telegram.org/type/PostInteractionCounters"/></para> <para>Derived classes: <see cref="PostInteractionCountersMessage"/>, <see cref="PostInteractionCountersStory"/></para></summary>
|
||||||
public abstract class PostInteractionCounters : IObject
|
public abstract class PostInteractionCounters : IObject
|
||||||
{
|
{
|
||||||
|
/// <summary>Number of views</summary>
|
||||||
public int views;
|
public int views;
|
||||||
|
/// <summary>Number of forwards to public channels</summary>
|
||||||
public int forwards;
|
public int forwards;
|
||||||
|
/// <summary>Number of reactions</summary>
|
||||||
public int reactions;
|
public int reactions;
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/postInteractionCountersMessage"/></para></summary>
|
/// <summary>Interaction counters for a message. <para>See <a href="https://corefork.telegram.org/constructor/postInteractionCountersMessage"/></para></summary>
|
||||||
[TLDef(0xE7058E7F)]
|
[TLDef(0xE7058E7F)]
|
||||||
public class PostInteractionCountersMessage : PostInteractionCounters
|
public class PostInteractionCountersMessage : PostInteractionCounters
|
||||||
{
|
{
|
||||||
|
/// <summary>Message ID</summary>
|
||||||
public int msg_id;
|
public int msg_id;
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/postInteractionCountersStory"/></para></summary>
|
/// <summary>Interaction counters for a story. <para>See <a href="https://corefork.telegram.org/constructor/postInteractionCountersStory"/></para></summary>
|
||||||
[TLDef(0x8A480E27)]
|
[TLDef(0x8A480E27)]
|
||||||
public class PostInteractionCountersStory : PostInteractionCounters
|
public class PostInteractionCountersStory : PostInteractionCounters
|
||||||
{
|
{
|
||||||
|
/// <summary>Story ID</summary>
|
||||||
public int story_id;
|
public int story_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/stats.storyStats"/></para></summary>
|
/// <summary>Contains <a href="https://corefork.telegram.org/api/stats">statistics</a> about a <a href="https://corefork.telegram.org/api/stories">story</a>. <para>See <a href="https://corefork.telegram.org/constructor/stats.storyStats"/></para></summary>
|
||||||
[TLDef(0x50CD067C)]
|
[TLDef(0x50CD067C)]
|
||||||
public class Stats_StoryStats : IObject
|
public class Stats_StoryStats : IObject
|
||||||
{
|
{
|
||||||
|
/// <summary>A graph containing the number of story views and shares</summary>
|
||||||
public StatsGraphBase views_graph;
|
public StatsGraphBase views_graph;
|
||||||
|
/// <summary>A bar graph containing the number of story reactions categorized by "emotion" (i.e. Positive, Negative, Other, etc...)</summary>
|
||||||
public StatsGraphBase reactions_by_emotion_graph;
|
public StatsGraphBase reactions_by_emotion_graph;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/PublicForward"/></para></summary>
|
/// <summary>Contains info about the forwards of a <a href="https://corefork.telegram.org/api/stories">story</a> as a message to public chats and reposts by public channels. <para>See <a href="https://corefork.telegram.org/type/PublicForward"/></para> <para>Derived classes: <see cref="PublicForwardMessage"/>, <see cref="PublicForwardStory"/></para></summary>
|
||||||
public abstract class PublicForward : IObject { }
|
public abstract class PublicForward : IObject { }
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/publicForwardMessage"/></para></summary>
|
/// <summary>Contains info about a forward of a <a href="https://corefork.telegram.org/api/stories">story</a> as a message. <para>See <a href="https://corefork.telegram.org/constructor/publicForwardMessage"/></para></summary>
|
||||||
[TLDef(0x01F2BF4A)]
|
[TLDef(0x01F2BF4A)]
|
||||||
public class PublicForwardMessage : PublicForward
|
public class PublicForwardMessage : PublicForward
|
||||||
{
|
{
|
||||||
|
/// <summary>Info about the message with the reposted story.</summary>
|
||||||
public MessageBase message;
|
public MessageBase message;
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/publicForwardStory"/></para></summary>
|
/// <summary>Contains info about a forward of a <a href="https://corefork.telegram.org/api/stories">story</a> as a repost by a public channel. <para>See <a href="https://corefork.telegram.org/constructor/publicForwardStory"/></para></summary>
|
||||||
[TLDef(0xEDF3ADD0)]
|
[TLDef(0xEDF3ADD0)]
|
||||||
public class PublicForwardStory : PublicForward
|
public class PublicForwardStory : PublicForward
|
||||||
{
|
{
|
||||||
|
/// <summary>The channel that reposted the story.</summary>
|
||||||
public Peer peer;
|
public Peer peer;
|
||||||
|
/// <summary>The reposted story (may be different from the original story).</summary>
|
||||||
public StoryItemBase story;
|
public StoryItemBase story;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/stats.publicForwards"/></para></summary>
|
/// <summary>Contains info about the forwards of a <a href="https://corefork.telegram.org/api/stories">story</a> as a message to public chats and reposts by public channels. <para>See <a href="https://corefork.telegram.org/constructor/stats.publicForwards"/></para></summary>
|
||||||
[TLDef(0x93037E20)]
|
[TLDef(0x93037E20)]
|
||||||
public class Stats_PublicForwards : IObject, IPeerResolver
|
public class Stats_PublicForwards : IObject, IPeerResolver
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
/// <summary>Total number of results</summary>
|
||||||
public int count;
|
public int count;
|
||||||
|
/// <summary>Info about the forwards of a story.</summary>
|
||||||
public PublicForward[] forwards;
|
public PublicForward[] forwards;
|
||||||
|
/// <summary>Offset used for <a href="https://corefork.telegram.org/api/offsets">pagination</a>.</summary>
|
||||||
[IfFlag(0)] public string next_offset;
|
[IfFlag(0)] public string next_offset;
|
||||||
public Dictionary<long, ChatBase> chats;
|
public Dictionary<long, ChatBase> chats;
|
||||||
public Dictionary<long, User> users;
|
public Dictionary<long, User> users;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Field <see cref="next_offset"/> has a value</summary>
|
||||||
has_next_offset = 0x1,
|
has_next_offset = 0x1,
|
||||||
}
|
}
|
||||||
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
|
/// <summary>returns a <see cref="User"/> or <see cref="ChatBase"/> for the given Peer</summary>
|
||||||
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
|
public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/peerColor"/></para></summary>
|
/// <summary>Represents a <a href="https://corefork.telegram.org/api/colors">color palette »</a>. <para>See <a href="https://corefork.telegram.org/constructor/peerColor"/></para></summary>
|
||||||
[TLDef(0xB54B5ACF)]
|
[TLDef(0xB54B5ACF)]
|
||||||
public class PeerColor : IObject
|
public class PeerColor : IObject
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
/// <summary><a href="https://corefork.telegram.org/api/colors">Color palette ID, see here »</a> for more info.</summary>
|
||||||
[IfFlag(0)] public int color;
|
[IfFlag(0)] public int color;
|
||||||
|
/// <summary><a href="https://corefork.telegram.org/api/custom-emoji">Custom emoji ID</a> used to generate the pattern.</summary>
|
||||||
[IfFlag(1)] public long background_emoji_id;
|
[IfFlag(1)] public long background_emoji_id;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Field <see cref="color"/> has a value</summary>
|
||||||
has_color = 0x1,
|
has_color = 0x1,
|
||||||
|
/// <summary>Field <see cref="background_emoji_id"/> has a value</summary>
|
||||||
has_background_emoji_id = 0x2,
|
has_background_emoji_id = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/type/help.PeerColorSet"/></para></summary>
|
/// <summary>Contains info about a <a href="https://corefork.telegram.org/api/colors">color palette »</a>. <para>See <a href="https://corefork.telegram.org/type/help.PeerColorSet"/></para> <para>Derived classes: <see cref="Help_PeerColorSet"/>, <see cref="Help_PeerColorProfileSet"/></para></summary>
|
||||||
public abstract class Help_PeerColorSetBase : IObject { }
|
public abstract class Help_PeerColorSetBase : IObject { }
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/help.peerColorSet"/></para></summary>
|
/// <summary>Represents a <a href="https://corefork.telegram.org/api/colors">color palette that can be used in message accents »</a>. <para>See <a href="https://corefork.telegram.org/constructor/help.peerColorSet"/></para></summary>
|
||||||
[TLDef(0x26219A58)]
|
[TLDef(0x26219A58)]
|
||||||
public class Help_PeerColorSet : Help_PeerColorSetBase
|
public class Help_PeerColorSet : Help_PeerColorSetBase
|
||||||
{
|
{
|
||||||
|
/// <summary>A list of 1-3 colors in RGB format, describing the accent color.</summary>
|
||||||
public int[] colors;
|
public int[] colors;
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/help.peerColorProfileSet"/></para></summary>
|
/// <summary>Represents a <a href="https://corefork.telegram.org/api/colors">color palette that can be used in profile pages »</a>. <para>See <a href="https://corefork.telegram.org/constructor/help.peerColorProfileSet"/></para></summary>
|
||||||
[TLDef(0x767D61EB)]
|
[TLDef(0x767D61EB)]
|
||||||
public class Help_PeerColorProfileSet : Help_PeerColorSetBase
|
public class Help_PeerColorProfileSet : Help_PeerColorSetBase
|
||||||
{
|
{
|
||||||
|
/// <summary>A list of 1-2 colors in RGB format, shown in the color palette settings to describe the current palette.</summary>
|
||||||
public int[] palette_colors;
|
public int[] palette_colors;
|
||||||
|
/// <summary>A list of 1-2 colors in RGB format describing the colors used to generate the actual background used in the profile page.</summary>
|
||||||
public int[] bg_colors;
|
public int[] bg_colors;
|
||||||
|
/// <summary>A list of 2 colors in RGB format describing the colors of the gradient used for the unread active story indicator around the profile photo.</summary>
|
||||||
public int[] story_colors;
|
public int[] story_colors;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/help.peerColorOption"/></para></summary>
|
/// <summary>Contains info about a <a href="https://corefork.telegram.org/api/colors">color palette »</a>. <para>See <a href="https://corefork.telegram.org/constructor/help.peerColorOption"/></para></summary>
|
||||||
[TLDef(0x135BD42F)]
|
[TLDef(0x135BD42F)]
|
||||||
public class Help_PeerColorOption : IObject
|
public class Help_PeerColorOption : IObject
|
||||||
{
|
{
|
||||||
|
/// <summary>Extra bits of information, use <c>flags.HasFlag(...)</c> to test for those</summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
/// <summary>Palette ID.</summary>
|
||||||
public int color_id;
|
public int color_id;
|
||||||
|
/// <summary>Light mode palette. <br/>Will be empty for IDs <c>0</c> to <c>6</c> inclusive, in which case a palette containing a single color from the following colors should be used: red, orange, violet, green, cyan, blue, pink for indexes 0 to 6.</summary>
|
||||||
[IfFlag(1)] public Help_PeerColorSetBase colors;
|
[IfFlag(1)] public Help_PeerColorSetBase colors;
|
||||||
|
/// <summary>Dark mode palette. Optional, defaults to the palette in <c>colors</c> (or the autogenerated palette for IDs <c>0</c> to <c>6</c>) if absent.</summary>
|
||||||
[IfFlag(2)] public Help_PeerColorSetBase dark_colors;
|
[IfFlag(2)] public Help_PeerColorSetBase dark_colors;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Whether this palette should not be displayed as an option to the user when choosing a palette to apply to profile pages or message accents.</summary>
|
||||||
hidden = 0x1,
|
hidden = 0x1,
|
||||||
|
/// <summary>Field <see cref="colors"/> has a value</summary>
|
||||||
has_colors = 0x2,
|
has_colors = 0x2,
|
||||||
|
/// <summary>Field <see cref="dark_colors"/> has a value</summary>
|
||||||
has_dark_colors = 0x4,
|
has_dark_colors = 0x4,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/help.peerColors"/></para></summary>
|
/// <summary>Contains info about multiple <a href="https://corefork.telegram.org/api/colors">color palettes »</a>. <para>See <a href="https://corefork.telegram.org/constructor/help.peerColors"/></para></summary>
|
||||||
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/help.peerColorsNotModified">help.peerColorsNotModified</a></remarks>
|
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/help.peerColorsNotModified">help.peerColorsNotModified</a></remarks>
|
||||||
[TLDef(0x00F8ED08)]
|
[TLDef(0x00F8ED08)]
|
||||||
public class Help_PeerColors : IObject
|
public class Help_PeerColors : IObject
|
||||||
{
|
{
|
||||||
|
/// <summary><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></summary>
|
||||||
public int hash;
|
public int hash;
|
||||||
|
/// <summary>Usable <a href="https://corefork.telegram.org/api/colors">color palettes</a>.</summary>
|
||||||
public Help_PeerColorOption[] colors;
|
public Help_PeerColorOption[] colors;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -82,8 +82,8 @@ namespace TL
|
||||||
query = query,
|
query = query,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Invoke a method within a takeout session <para>See <a href="https://corefork.telegram.org/method/invokeWithTakeout"/></para></summary>
|
/// <summary>Invoke a method within a <a href="https://corefork.telegram.org/api/takeout">takeout session, see here » for more info</a>. <para>See <a href="https://corefork.telegram.org/method/invokeWithTakeout"/></para></summary>
|
||||||
/// <param name="takeout_id">Takeout session ID</param>
|
/// <param name="takeout_id"><a href="https://corefork.telegram.org/api/takeout">Takeout session ID »</a></param>
|
||||||
/// <param name="query">Query</param>
|
/// <param name="query">Query</param>
|
||||||
public static Task<X> InvokeWithTakeout<X>(this Client client, long takeout_id, IMethod<X> query)
|
public static Task<X> InvokeWithTakeout<X>(this Client client, long takeout_id, IMethod<X> query)
|
||||||
=> client.Invoke(new InvokeWithTakeout<X>
|
=> client.Invoke(new InvokeWithTakeout<X>
|
||||||
|
|
@ -699,7 +699,7 @@ namespace TL
|
||||||
verification = verification,
|
verification = verification,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Initialize account takeout session <para>See <a href="https://corefork.telegram.org/method/account.initTakeoutSession"/></para> <para>Possible <see cref="RpcException"/> codes: 420 (<a href="https://corefork.telegram.org/method/account.initTakeoutSession#possible-errors">details</a>)</para></summary>
|
/// <summary>Initialize a <a href="https://corefork.telegram.org/api/takeout">takeout session, see here » for more info</a>. <para>See <a href="https://corefork.telegram.org/method/account.initTakeoutSession"/></para> <para>Possible <see cref="RpcException"/> codes: 420 (<a href="https://corefork.telegram.org/method/account.initTakeoutSession#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="contacts">Whether to export contacts</param>
|
/// <param name="contacts">Whether to export contacts</param>
|
||||||
/// <param name="message_users">Whether to export messages in private chats</param>
|
/// <param name="message_users">Whether to export messages in private chats</param>
|
||||||
/// <param name="message_chats">Whether to export messages in <a href="https://corefork.telegram.org/api/channel#basic-groups">basic groups</a></param>
|
/// <param name="message_chats">Whether to export messages in <a href="https://corefork.telegram.org/api/channel#basic-groups">basic groups</a></param>
|
||||||
|
|
@ -714,7 +714,7 @@ namespace TL
|
||||||
file_max_size = file_max_size.GetValueOrDefault(),
|
file_max_size = file_max_size.GetValueOrDefault(),
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Finish account takeout session <para>See <a href="https://corefork.telegram.org/method/account.finishTakeoutSession"/></para> <para>Possible <see cref="RpcException"/> codes: 403 (<a href="https://corefork.telegram.org/method/account.finishTakeoutSession#possible-errors">details</a>)</para></summary>
|
/// <summary>Terminate a <a href="https://corefork.telegram.org/api/takeout">takeout session, see here » for more info</a>. <para>See <a href="https://corefork.telegram.org/method/account.finishTakeoutSession"/></para> <para>Possible <see cref="RpcException"/> codes: 403 (<a href="https://corefork.telegram.org/method/account.finishTakeoutSession#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="success">Data exported successfully</param>
|
/// <param name="success">Data exported successfully</param>
|
||||||
public static Task<bool> Account_FinishTakeoutSession(this Client client, bool success = false)
|
public static Task<bool> Account_FinishTakeoutSession(this Client client, bool success = false)
|
||||||
=> client.Invoke(new Account_FinishTakeoutSession
|
=> client.Invoke(new Account_FinishTakeoutSession
|
||||||
|
|
@ -1154,7 +1154,10 @@ namespace TL
|
||||||
codes = codes,
|
codes = codes,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.updateColor"/></para></summary>
|
/// <summary>Update the <a href="https://corefork.telegram.org/api/colors">accent color and background custom emoji »</a> of the current account. <para>See <a href="https://corefork.telegram.org/method/account.updateColor"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.updateColor#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="for_profile">Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed.</param>
|
||||||
|
/// <param name="color"><a href="https://corefork.telegram.org/api/colors">ID of the accent color palette »</a> to use (not RGB24, see <a href="https://corefork.telegram.org/api/colors">here »</a> for more info).</param>
|
||||||
|
/// <param name="background_emoji_id">Custom emoji ID used in the accent color pattern.</param>
|
||||||
public static Task<bool> Account_UpdateColor(this Client client, long? background_emoji_id = null, int? color = null, bool for_profile = false)
|
public static Task<bool> Account_UpdateColor(this Client client, long? background_emoji_id = null, int? color = null, bool for_profile = false)
|
||||||
=> client.Invoke(new Account_UpdateColor
|
=> client.Invoke(new Account_UpdateColor
|
||||||
{
|
{
|
||||||
|
|
@ -1163,7 +1166,8 @@ namespace TL
|
||||||
background_emoji_id = background_emoji_id.GetValueOrDefault(),
|
background_emoji_id = background_emoji_id.GetValueOrDefault(),
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.getDefaultBackgroundEmojis"/></para></summary>
|
/// <summary>Get a set of suggested <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji stickers</a> that can be used in an <a href="https://corefork.telegram.org/api/colors">accent color pattern</a>. <para>See <a href="https://corefork.telegram.org/method/account.getDefaultBackgroundEmojis"/></para></summary>
|
||||||
|
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
||||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/emojiListNotModified">emojiListNotModified</a></returns>
|
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/emojiListNotModified">emojiListNotModified</a></returns>
|
||||||
public static Task<EmojiList> Account_GetDefaultBackgroundEmojis(this Client client, long hash = default)
|
public static Task<EmojiList> Account_GetDefaultBackgroundEmojis(this Client client, long hash = default)
|
||||||
=> client.Invoke(new Account_GetDefaultBackgroundEmojis
|
=> client.Invoke(new Account_GetDefaultBackgroundEmojis
|
||||||
|
|
@ -1332,7 +1336,7 @@ namespace TL
|
||||||
{
|
{
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Get all contacts <para>See <a href="https://corefork.telegram.org/method/contacts.getSaved"/></para> <para>Possible <see cref="RpcException"/> codes: 403 (<a href="https://corefork.telegram.org/method/contacts.getSaved#possible-errors">details</a>)</para></summary>
|
/// <summary>Get all contacts, requires a <a href="https://corefork.telegram.org/api/takeout">takeout session, see here » for more info</a>. <para>See <a href="https://corefork.telegram.org/method/contacts.getSaved"/></para> <para>Possible <see cref="RpcException"/> codes: 403 (<a href="https://corefork.telegram.org/method/contacts.getSaved#possible-errors">details</a>)</para></summary>
|
||||||
public static Task<SavedContact[]> Contacts_GetSaved(this Client client)
|
public static Task<SavedContact[]> Contacts_GetSaved(this Client client)
|
||||||
=> client.Invoke(new Contacts_GetSaved
|
=> client.Invoke(new Contacts_GetSaved
|
||||||
{
|
{
|
||||||
|
|
@ -1382,11 +1386,11 @@ namespace TL
|
||||||
self_expires = self_expires.GetValueOrDefault(),
|
self_expires = self_expires.GetValueOrDefault(),
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Stop getting notifications about <a href="https://corefork.telegram.org/api/threads">thread replies</a> of a certain user in <c>@replies</c> <para>See <a href="https://corefork.telegram.org/method/contacts.blockFromReplies"/></para></summary>
|
/// <summary>Stop getting notifications about <a href="https://corefork.telegram.org/api/discussion">discussion replies</a> of a certain user in <c>@replies</c> <para>See <a href="https://corefork.telegram.org/method/contacts.blockFromReplies"/></para></summary>
|
||||||
/// <param name="delete_message">Whether to delete the specified message as well</param>
|
/// <param name="delete_message">Whether to delete the specified message as well</param>
|
||||||
/// <param name="delete_history">Whether to delete all <c>@replies</c> messages from this user as well</param>
|
/// <param name="delete_history">Whether to delete all <c>@replies</c> messages from this user as well</param>
|
||||||
/// <param name="report_spam">Whether to also report this user for spam</param>
|
/// <param name="report_spam">Whether to also report this user for spam</param>
|
||||||
/// <param name="msg_id">ID of the message in the <a href="https://corefork.telegram.org/api/threads#replies">@replies</a> chat</param>
|
/// <param name="msg_id">ID of the message in the <a href="https://corefork.telegram.org/api/discussion#replies">@replies</a> chat</param>
|
||||||
public static Task<UpdatesBase> Contacts_BlockFromReplies(this Client client, int msg_id, bool delete_message = false, bool delete_history = false, bool report_spam = false)
|
public static Task<UpdatesBase> Contacts_BlockFromReplies(this Client client, int msg_id, bool delete_message = false, bool delete_history = false, bool report_spam = false)
|
||||||
=> client.Invoke(new Contacts_BlockFromReplies
|
=> client.Invoke(new Contacts_BlockFromReplies
|
||||||
{
|
{
|
||||||
|
|
@ -1584,6 +1588,7 @@ namespace TL
|
||||||
/// <param name="clear_draft">Clear the draft field</param>
|
/// <param name="clear_draft">Clear the draft field</param>
|
||||||
/// <param name="noforwards">Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">content protection</a> enabled</param>
|
/// <param name="noforwards">Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">content protection</a> enabled</param>
|
||||||
/// <param name="update_stickersets_order">Whether to move used stickersets to top, <a href="https://corefork.telegram.org/api/stickers#recent-stickersets">see here for more info on this flag »</a></param>
|
/// <param name="update_stickersets_order">Whether to move used stickersets to top, <a href="https://corefork.telegram.org/api/stickers#recent-stickersets">see here for more info on this flag »</a></param>
|
||||||
|
/// <param name="invert_media">If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</param>
|
||||||
/// <param name="peer">The destination where the message will be sent</param>
|
/// <param name="peer">The destination where the message will be sent</param>
|
||||||
/// <param name="reply_to">If set, indicates that the message should be sent in reply to the specified message or story.</param>
|
/// <param name="reply_to">If set, indicates that the message should be sent in reply to the specified message or story.</param>
|
||||||
/// <param name="message">The message</param>
|
/// <param name="message">The message</param>
|
||||||
|
|
@ -1612,6 +1617,7 @@ namespace TL
|
||||||
/// <param name="clear_draft">Clear the draft</param>
|
/// <param name="clear_draft">Clear the draft</param>
|
||||||
/// <param name="noforwards">Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">content protection</a> enabled</param>
|
/// <param name="noforwards">Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">content protection</a> enabled</param>
|
||||||
/// <param name="update_stickersets_order">Whether to move used stickersets to top, <a href="https://corefork.telegram.org/api/stickers#recent-stickersets">see here for more info on this flag »</a></param>
|
/// <param name="update_stickersets_order">Whether to move used stickersets to top, <a href="https://corefork.telegram.org/api/stickers#recent-stickersets">see here for more info on this flag »</a></param>
|
||||||
|
/// <param name="invert_media">If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</param>
|
||||||
/// <param name="peer">Destination</param>
|
/// <param name="peer">Destination</param>
|
||||||
/// <param name="reply_to">If set, indicates that the message should be sent in reply to the specified message or story.</param>
|
/// <param name="reply_to">If set, indicates that the message should be sent in reply to the specified message or story.</param>
|
||||||
/// <param name="media">Attached media</param>
|
/// <param name="media">Attached media</param>
|
||||||
|
|
@ -2178,6 +2184,7 @@ namespace TL
|
||||||
|
|
||||||
/// <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>
|
/// <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="no_webpage">Disable webpage preview</param>
|
||||||
|
/// <param name="invert_media">If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</param>
|
||||||
/// <param name="peer">Where was the message sent</param>
|
/// <param name="peer">Where was the message sent</param>
|
||||||
/// <param name="id">ID of the message to edit</param>
|
/// <param name="id">ID of the message to edit</param>
|
||||||
/// <param name="message">New message</param>
|
/// <param name="message">New message</param>
|
||||||
|
|
@ -2200,6 +2207,7 @@ namespace TL
|
||||||
|
|
||||||
/// <summary>Edit an inline bot message <para>See <a href="https://corefork.telegram.org/method/messages.editInlineBotMessage"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.editInlineBotMessage#possible-errors">details</a>)</para></summary>
|
/// <summary>Edit an inline bot message <para>See <a href="https://corefork.telegram.org/method/messages.editInlineBotMessage"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.editInlineBotMessage#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="no_webpage">Disable webpage preview</param>
|
/// <param name="no_webpage">Disable webpage preview</param>
|
||||||
|
/// <param name="invert_media">If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</param>
|
||||||
/// <param name="id">Sent inline message ID</param>
|
/// <param name="id">Sent inline message ID</param>
|
||||||
/// <param name="message">Message</param>
|
/// <param name="message">Message</param>
|
||||||
/// <param name="media">Media</param>
|
/// <param name="media">Media</param>
|
||||||
|
|
@ -2258,9 +2266,12 @@ namespace TL
|
||||||
|
|
||||||
/// <summary>Save a message <a href="https://corefork.telegram.org/api/drafts">draft</a> associated to a chat. <para>See <a href="https://corefork.telegram.org/method/messages.saveDraft"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.saveDraft#possible-errors">details</a>)</para></summary>
|
/// <summary>Save a message <a href="https://corefork.telegram.org/api/drafts">draft</a> associated to a chat. <para>See <a href="https://corefork.telegram.org/method/messages.saveDraft"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.saveDraft#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="no_webpage">Disable generation of the webpage preview</param>
|
/// <param name="no_webpage">Disable generation of the webpage preview</param>
|
||||||
|
/// <param name="invert_media">If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</param>
|
||||||
|
/// <param name="reply_to">If set, indicates that the message should be sent in reply to the specified message or story.</param>
|
||||||
/// <param name="peer">Destination of the message that should be sent</param>
|
/// <param name="peer">Destination of the message that should be sent</param>
|
||||||
/// <param name="message">The draft</param>
|
/// <param name="message">The draft</param>
|
||||||
/// <param name="entities">Message <a href="https://corefork.telegram.org/api/entities">entities</a> for styled text</param>
|
/// <param name="entities">Message <a href="https://corefork.telegram.org/api/entities">entities</a> for styled text</param>
|
||||||
|
/// <param name="media">Attached media</param>
|
||||||
public static Task<bool> Messages_SaveDraft(this Client client, InputPeer peer, string message, MessageEntity[] entities = null, InputReplyTo reply_to = null, InputMedia media = null, bool no_webpage = false, bool invert_media = false)
|
public static Task<bool> Messages_SaveDraft(this Client client, InputPeer peer, string message, MessageEntity[] entities = null, InputReplyTo reply_to = null, InputMedia media = null, bool no_webpage = false, bool invert_media = false)
|
||||||
=> client.Invoke(new Messages_SaveDraft
|
=> client.Invoke(new Messages_SaveDraft
|
||||||
{
|
{
|
||||||
|
|
@ -2578,6 +2589,7 @@ namespace TL
|
||||||
/// <param name="clear_draft">Whether to clear <a href="https://corefork.telegram.org/api/drafts">drafts</a></param>
|
/// <param name="clear_draft">Whether to clear <a href="https://corefork.telegram.org/api/drafts">drafts</a></param>
|
||||||
/// <param name="noforwards">Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">content protection</a> enabled</param>
|
/// <param name="noforwards">Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">content protection</a> enabled</param>
|
||||||
/// <param name="update_stickersets_order">Whether to move used stickersets to top, <a href="https://corefork.telegram.org/api/stickers#recent-stickersets">see here for more info on this flag »</a></param>
|
/// <param name="update_stickersets_order">Whether to move used stickersets to top, <a href="https://corefork.telegram.org/api/stickers#recent-stickersets">see here for more info on this flag »</a></param>
|
||||||
|
/// <param name="invert_media">If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.</param>
|
||||||
/// <param name="peer">The destination chat</param>
|
/// <param name="peer">The destination chat</param>
|
||||||
/// <param name="reply_to">If set, indicates that the message should be sent in reply to the specified message or story.</param>
|
/// <param name="reply_to">If set, indicates that the message should be sent in reply to the specified message or story.</param>
|
||||||
/// <param name="multi_media">The medias to send: note that they must be separately uploaded using <see cref="Messages_UploadMedia">Messages_UploadMedia</see> first, using raw <c>inputMediaUploaded*</c> constructors is not supported.</param>
|
/// <param name="multi_media">The medias to send: note that they must be separately uploaded using <see cref="Messages_UploadMedia">Messages_UploadMedia</see> first, using raw <c>inputMediaUploaded*</c> constructors is not supported.</param>
|
||||||
|
|
@ -3681,6 +3693,8 @@ namespace TL
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Set a custom <a href="https://corefork.telegram.org/api/wallpapers">wallpaper »</a> in a specific private chat with another user. <para>See <a href="https://corefork.telegram.org/method/messages.setChatWallPaper"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setChatWallPaper#possible-errors">details</a>)</para></summary>
|
/// <summary>Set a custom <a href="https://corefork.telegram.org/api/wallpapers">wallpaper »</a> in a specific private chat with another user. <para>See <a href="https://corefork.telegram.org/method/messages.setChatWallPaper"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setChatWallPaper#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="for_both">Only for <a href="https://corefork.telegram.org/api/premium">Premium</a> users, sets the specified wallpaper for both users of the chat, without requiring confirmation from the other user.</param>
|
||||||
|
/// <param name="revert">If we don't like the new wallpaper the other user of the chat has chosen for us using the <c>for_both</c> flag, we can re-set our previous wallpaper just on our side using this flag.</param>
|
||||||
/// <param name="peer">The private chat where the wallpaper will be set</param>
|
/// <param name="peer">The private chat where the wallpaper will be set</param>
|
||||||
/// <param name="wallpaper">The <a href="https://corefork.telegram.org/api/wallpapers">wallpaper »</a>, obtained as described in the <a href="https://corefork.telegram.org/api/wallpapers#uploading-wallpapers">wallpaper documentation »</a>; must <strong>not</strong> be provided when installing a wallpaper obtained from a <see cref="MessageActionSetChatWallPaper"/> service message (<c>id</c> must be provided, instead).</param>
|
/// <param name="wallpaper">The <a href="https://corefork.telegram.org/api/wallpapers">wallpaper »</a>, obtained as described in the <a href="https://corefork.telegram.org/api/wallpapers#uploading-wallpapers">wallpaper documentation »</a>; must <strong>not</strong> be provided when installing a wallpaper obtained from a <see cref="MessageActionSetChatWallPaper"/> service message (<c>id</c> must be provided, instead).</param>
|
||||||
/// <param name="settings">Wallpaper settings, obtained as described in the <a href="https://corefork.telegram.org/api/wallpapers#uploading-wallpapers">wallpaper documentation »</a> or from <see cref="MessageActionSetChatWallPaper"/>.<c>wallpaper</c>.<c>settings</c>.</param>
|
/// <param name="settings">Wallpaper settings, obtained as described in the <a href="https://corefork.telegram.org/api/wallpapers#uploading-wallpapers">wallpaper documentation »</a> or from <see cref="MessageActionSetChatWallPaper"/>.<c>wallpaper</c>.<c>settings</c>.</param>
|
||||||
|
|
@ -3695,7 +3709,10 @@ namespace TL
|
||||||
id = id.GetValueOrDefault(),
|
id = id.GetValueOrDefault(),
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.searchEmojiStickerSets"/></para></summary>
|
/// <summary>Search for <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji stickersets »</a> <para>See <a href="https://corefork.telegram.org/method/messages.searchEmojiStickerSets"/></para></summary>
|
||||||
|
/// <param name="exclude_featured">Exclude featured stickersets from results</param>
|
||||||
|
/// <param name="q">Query string</param>
|
||||||
|
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
||||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.foundStickerSetsNotModified">messages.foundStickerSetsNotModified</a></returns>
|
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.foundStickerSetsNotModified">messages.foundStickerSetsNotModified</a></returns>
|
||||||
public static Task<Messages_FoundStickerSets> Messages_SearchEmojiStickerSets(this Client client, string q, long hash = default, bool exclude_featured = false)
|
public static Task<Messages_FoundStickerSets> Messages_SearchEmojiStickerSets(this Client client, string q, long hash = default, bool exclude_featured = false)
|
||||||
=> client.Invoke(new Messages_SearchEmojiStickerSets
|
=> client.Invoke(new Messages_SearchEmojiStickerSets
|
||||||
|
|
@ -4093,7 +4110,8 @@ namespace TL
|
||||||
{
|
{
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/help.getPeerColors"/></para></summary>
|
/// <summary>Get the set of <a href="https://corefork.telegram.org/api/colors">accent color palettes »</a> that can be used for message accents. <para>See <a href="https://corefork.telegram.org/method/help.getPeerColors"/></para></summary>
|
||||||
|
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
||||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/help.peerColorsNotModified">help.peerColorsNotModified</a></returns>
|
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/help.peerColorsNotModified">help.peerColorsNotModified</a></returns>
|
||||||
public static Task<Help_PeerColors> Help_GetPeerColors(this Client client, int hash = default)
|
public static Task<Help_PeerColors> Help_GetPeerColors(this Client client, int hash = default)
|
||||||
=> client.Invoke(new Help_GetPeerColors
|
=> client.Invoke(new Help_GetPeerColors
|
||||||
|
|
@ -4101,7 +4119,8 @@ namespace TL
|
||||||
hash = hash,
|
hash = hash,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/help.getPeerProfileColors"/></para></summary>
|
/// <summary>Get the set of <a href="https://corefork.telegram.org/api/colors">accent color palettes »</a> that can be used in profile page backgrounds. <para>See <a href="https://corefork.telegram.org/method/help.getPeerProfileColors"/></para></summary>
|
||||||
|
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
||||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/help.peerColorsNotModified">help.peerColorsNotModified</a></returns>
|
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/help.peerColorsNotModified">help.peerColorsNotModified</a></returns>
|
||||||
public static Task<Help_PeerColors> Help_GetPeerProfileColors(this Client client, int hash = default)
|
public static Task<Help_PeerColors> Help_GetPeerProfileColors(this Client client, int hash = default)
|
||||||
=> client.Invoke(new Help_GetPeerProfileColors
|
=> client.Invoke(new Help_GetPeerProfileColors
|
||||||
|
|
@ -4410,7 +4429,7 @@ namespace TL
|
||||||
enabled = enabled,
|
enabled = enabled,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Get a list of <a href="https://corefork.telegram.org/api/channel">channels/supergroups</a> we left <para>See <a href="https://corefork.telegram.org/method/channels.getLeftChannels"/></para> <para>Possible <see cref="RpcException"/> codes: 403 (<a href="https://corefork.telegram.org/method/channels.getLeftChannels#possible-errors">details</a>)</para></summary>
|
/// <summary>Get a list of <a href="https://corefork.telegram.org/api/channel">channels/supergroups</a> we left, requires a <a href="https://corefork.telegram.org/api/takeout">takeout session, see here » for more info</a>. <para>See <a href="https://corefork.telegram.org/method/channels.getLeftChannels"/></para> <para>Possible <see cref="RpcException"/> codes: 403 (<a href="https://corefork.telegram.org/method/channels.getLeftChannels#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="offset">Offset for <a href="https://corefork.telegram.org/api/offsets">pagination</a></param>
|
/// <param name="offset">Offset for <a href="https://corefork.telegram.org/api/offsets">pagination</a></param>
|
||||||
public static Task<Messages_Chats> Channels_GetLeftChannels(this Client client, int offset = default)
|
public static Task<Messages_Chats> Channels_GetLeftChannels(this Client client, int offset = default)
|
||||||
=> client.Invoke(new Channels_GetLeftChannels
|
=> client.Invoke(new Channels_GetLeftChannels
|
||||||
|
|
@ -4720,7 +4739,10 @@ namespace TL
|
||||||
random_id = random_id,
|
random_id = random_id,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.updateColor"/></para></summary>
|
/// <summary>Update the <a href="https://corefork.telegram.org/api/colors">accent color and background custom emoji »</a> of a channel. <para>See <a href="https://corefork.telegram.org/method/channels.updateColor"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.updateColor#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="channel">Channel whose accent color should be changed.</param>
|
||||||
|
/// <param name="color"><a href="https://corefork.telegram.org/api/colors">ID of the accent color palette »</a> to use (not RGB24, see <a href="https://corefork.telegram.org/api/colors">here »</a> for more info).</param>
|
||||||
|
/// <param name="background_emoji_id">Custom emoji ID used in the accent color pattern.</param>
|
||||||
public static Task<UpdatesBase> Channels_UpdateColor(this Client client, InputChannelBase channel, int color, long? background_emoji_id = null)
|
public static Task<UpdatesBase> Channels_UpdateColor(this Client client, InputChannelBase channel, int color, long? background_emoji_id = null)
|
||||||
=> client.Invoke(new Channels_UpdateColor
|
=> client.Invoke(new Channels_UpdateColor
|
||||||
{
|
{
|
||||||
|
|
@ -4730,7 +4752,7 @@ namespace TL
|
||||||
background_emoji_id = background_emoji_id.GetValueOrDefault(),
|
background_emoji_id = background_emoji_id.GetValueOrDefault(),
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.toggleViewForumAsMessages"/></para></summary>
|
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.toggleViewForumAsMessages"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.toggleViewForumAsMessages#possible-errors">details</a>)</para></summary>
|
||||||
public static Task<UpdatesBase> Channels_ToggleViewForumAsMessages(this Client client, InputChannelBase channel, bool enabled)
|
public static Task<UpdatesBase> Channels_ToggleViewForumAsMessages(this Client client, InputChannelBase channel, bool enabled)
|
||||||
=> client.Invoke(new Channels_ToggleViewForumAsMessages
|
=> client.Invoke(new Channels_ToggleViewForumAsMessages
|
||||||
{
|
{
|
||||||
|
|
@ -4738,7 +4760,8 @@ namespace TL
|
||||||
enabled = enabled,
|
enabled = enabled,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/channels.getChannelRecommendations"/></para></summary>
|
/// <summary>Obtain a list of similarly themed public channels, selected based on similarities in their <strong>subscriber bases</strong>. <para>See <a href="https://corefork.telegram.org/method/channels.getChannelRecommendations"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.getChannelRecommendations#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="channel">The method will return channels related to the passed <c>channel</c>.</param>
|
||||||
public static Task<Messages_Chats> Channels_GetChannelRecommendations(this Client client, InputChannelBase channel)
|
public static Task<Messages_Chats> Channels_GetChannelRecommendations(this Client client, InputChannelBase channel)
|
||||||
=> client.Invoke(new Channels_GetChannelRecommendations
|
=> client.Invoke(new Channels_GetChannelRecommendations
|
||||||
{
|
{
|
||||||
|
|
@ -4898,7 +4921,7 @@ namespace TL
|
||||||
bot = bot,
|
bot = bot,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Send a custom request from a <a href="https://corefork.telegram.org/api/bots/webapps">mini bot app</a> <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>
|
/// <summary>Send a custom request from a <a href="https://corefork.telegram.org/api/bots/webapps">mini bot app</a>, triggered by a <a href="https://corefork.telegram.org/api/web-events#web-app-invoke-custom-method">web_app_invoke_custom_method event »</a>. <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>
|
||||||
/// <param name="bot">Identifier of the bot associated to the <a href="https://corefork.telegram.org/api/bots/webapps">mini bot app</a></param>
|
/// <param name="bot">Identifier of the bot associated to the <a href="https://corefork.telegram.org/api/bots/webapps">mini bot app</a></param>
|
||||||
/// <param name="custom_method">Identifier of the custom method to invoke</param>
|
/// <param name="custom_method">Identifier of the custom method to invoke</param>
|
||||||
/// <param name="params_">Method parameters</param>
|
/// <param name="params_">Method parameters</param>
|
||||||
|
|
@ -5021,7 +5044,7 @@ namespace TL
|
||||||
purpose = purpose,
|
purpose = purpose,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.getPremiumGiftCodeOptions"/></para></summary>
|
/// <summary>Obtain a list of Telegram Premium <a href="https://corefork.telegram.org/api/giveaways">giveaway/gift code »</a> options. <para>See <a href="https://corefork.telegram.org/method/payments.getPremiumGiftCodeOptions"/></para></summary>
|
||||||
public static Task<PremiumGiftCodeOption[]> Payments_GetPremiumGiftCodeOptions(this Client client, InputPeer boost_peer = null)
|
public static Task<PremiumGiftCodeOption[]> Payments_GetPremiumGiftCodeOptions(this Client client, InputPeer boost_peer = null)
|
||||||
=> client.Invoke(new Payments_GetPremiumGiftCodeOptions
|
=> client.Invoke(new Payments_GetPremiumGiftCodeOptions
|
||||||
{
|
{
|
||||||
|
|
@ -5029,21 +5052,25 @@ namespace TL
|
||||||
boost_peer = boost_peer,
|
boost_peer = boost_peer,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.checkGiftCode"/></para></summary>
|
/// <summary>Obtain information about a <a href="https://corefork.telegram.org/api/giveaways">Telegram Premium giftcode »</a> <para>See <a href="https://corefork.telegram.org/method/payments.checkGiftCode"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/payments.checkGiftCode#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="slug">The giftcode to check</param>
|
||||||
public static Task<Payments_CheckedGiftCode> Payments_CheckGiftCode(this Client client, string slug)
|
public static Task<Payments_CheckedGiftCode> Payments_CheckGiftCode(this Client client, string slug)
|
||||||
=> client.Invoke(new Payments_CheckGiftCode
|
=> client.Invoke(new Payments_CheckGiftCode
|
||||||
{
|
{
|
||||||
slug = slug,
|
slug = slug,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.applyGiftCode"/></para></summary>
|
/// <summary>Apply a <a href="https://corefork.telegram.org/api/giveaways">Telegram Premium giftcode »</a> <para>See <a href="https://corefork.telegram.org/method/payments.applyGiftCode"/></para> <para>Possible <see cref="RpcException"/> codes: 406 (<a href="https://corefork.telegram.org/method/payments.applyGiftCode#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="slug">The code to apply</param>
|
||||||
public static Task<UpdatesBase> Payments_ApplyGiftCode(this Client client, string slug)
|
public static Task<UpdatesBase> Payments_ApplyGiftCode(this Client client, string slug)
|
||||||
=> client.Invoke(new Payments_ApplyGiftCode
|
=> client.Invoke(new Payments_ApplyGiftCode
|
||||||
{
|
{
|
||||||
slug = slug,
|
slug = slug,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.getGiveawayInfo"/></para></summary>
|
/// <summary>Obtain information about a <a href="https://corefork.telegram.org/api/giveaways">Telegram Premium giveaway »</a>. <para>See <a href="https://corefork.telegram.org/method/payments.getGiveawayInfo"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/payments.getGiveawayInfo#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="peer">The peer where the giveaway was posted.</param>
|
||||||
|
/// <param name="msg_id">Message ID of the <see cref="MessageActionGiveawayLaunch"/> service message</param>
|
||||||
public static Task<Payments_GiveawayInfoBase> Payments_GetGiveawayInfo(this Client client, InputPeer peer, int msg_id)
|
public static Task<Payments_GiveawayInfoBase> Payments_GetGiveawayInfo(this Client client, InputPeer peer, int msg_id)
|
||||||
=> client.Invoke(new Payments_GetGiveawayInfo
|
=> client.Invoke(new Payments_GetGiveawayInfo
|
||||||
{
|
{
|
||||||
|
|
@ -5051,7 +5078,10 @@ namespace TL
|
||||||
msg_id = msg_id,
|
msg_id = msg_id,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.launchPrepaidGiveaway"/></para></summary>
|
/// <summary>Launch a <a href="https://corefork.telegram.org/api/giveaways">prepaid giveaway »</a>. <para>See <a href="https://corefork.telegram.org/method/payments.launchPrepaidGiveaway"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/payments.launchPrepaidGiveaway#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="peer">The peer where to launch the giveaway.</param>
|
||||||
|
/// <param name="giveaway_id">The prepaid giveaway ID.</param>
|
||||||
|
/// <param name="purpose">Giveway parameters</param>
|
||||||
public static Task<UpdatesBase> Payments_LaunchPrepaidGiveaway(this Client client, InputPeer peer, long giveaway_id, InputStorePaymentPurpose purpose)
|
public static Task<UpdatesBase> Payments_LaunchPrepaidGiveaway(this Client client, InputPeer peer, long giveaway_id, InputStorePaymentPurpose purpose)
|
||||||
=> client.Invoke(new Payments_LaunchPrepaidGiveaway
|
=> client.Invoke(new Payments_LaunchPrepaidGiveaway
|
||||||
{
|
{
|
||||||
|
|
@ -5657,7 +5687,10 @@ namespace TL
|
||||||
msg_id = msg_id,
|
msg_id = msg_id,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/stats.getStoryStats"/></para></summary>
|
/// <summary>Get <a href="https://corefork.telegram.org/api/stats">statistics</a> for a certain <a href="https://corefork.telegram.org/api/stories">story</a>. <para>See <a href="https://corefork.telegram.org/method/stats.getStoryStats"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stats.getStoryStats#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="dark">Whether to enable the dark theme for graph colors</param>
|
||||||
|
/// <param name="peer">The peer that posted the story</param>
|
||||||
|
/// <param name="id">Story ID</param>
|
||||||
public static Task<Stats_StoryStats> Stats_GetStoryStats(this Client client, InputPeer peer, int id, bool dark = false)
|
public static Task<Stats_StoryStats> Stats_GetStoryStats(this Client client, InputPeer peer, int id, bool dark = false)
|
||||||
=> client.Invoke(new Stats_GetStoryStats
|
=> client.Invoke(new Stats_GetStoryStats
|
||||||
{
|
{
|
||||||
|
|
@ -5666,7 +5699,11 @@ namespace TL
|
||||||
id = id,
|
id = id,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/stats.getStoryPublicForwards"/></para></summary>
|
/// <summary>Obtain forwards of a <a href="https://corefork.telegram.org/api/stories">story</a> as a message to public chats and reposts by public channels. <para>See <a href="https://corefork.telegram.org/method/stats.getStoryPublicForwards"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stats.getStoryPublicForwards#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="peer">Peer where the story was originally posted</param>
|
||||||
|
/// <param name="id"><a href="https://corefork.telegram.org/api/stories">Story</a> ID</param>
|
||||||
|
/// <param name="offset">Offset for pagination, from <see cref="Stats_PublicForwards"/>.<c>next_offset</c>.</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<Stats_PublicForwards> Stats_GetStoryPublicForwards(this Client client, InputPeer peer, int id, string offset, int limit = int.MaxValue)
|
public static Task<Stats_PublicForwards> Stats_GetStoryPublicForwards(this Client client, InputPeer peer, int id, string offset, int limit = int.MaxValue)
|
||||||
=> client.Invoke(new Stats_GetStoryPublicForwards
|
=> client.Invoke(new Stats_GetStoryPublicForwards
|
||||||
{
|
{
|
||||||
|
|
@ -5794,6 +5831,7 @@ namespace TL
|
||||||
/// <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>
|
/// <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="pinned">Whether to add the story to the profile automatically upon expiration. If not set, the story will only be added to the archive, see <a href="https://corefork.telegram.org/api/stories">here »</a> for more info.</param>
|
/// <param name="pinned">Whether to add the story to the profile automatically upon expiration. If not set, the story will only be added to the archive, see <a href="https://corefork.telegram.org/api/stories">here »</a> for more info.</param>
|
||||||
/// <param name="noforwards">If set, disables forwards, screenshots, and downloads.</param>
|
/// <param name="noforwards">If set, disables forwards, screenshots, and downloads.</param>
|
||||||
|
/// <param name="fwd_modified">Set this flag when reposting stories with <c>fwd_from_id</c>+<c>fwd_from_id</c>, if the <c>media</c> was modified before reposting.</param>
|
||||||
/// <param name="peer">The peer to send the story as.</param>
|
/// <param name="peer">The peer to send the story as.</param>
|
||||||
/// <param name="media">The story media.</param>
|
/// <param name="media">The story media.</param>
|
||||||
/// <param name="media_areas"><a href="https://corefork.telegram.org/api/stories#media-areas">Media areas</a> associated to the story, see <a href="https://corefork.telegram.org/api/stories#media-areas">here »</a> for more info.</param>
|
/// <param name="media_areas"><a href="https://corefork.telegram.org/api/stories#media-areas">Media areas</a> associated to the story, see <a href="https://corefork.telegram.org/api/stories#media-areas">here »</a> for more info.</param>
|
||||||
|
|
@ -5802,6 +5840,8 @@ namespace TL
|
||||||
/// <param name="privacy_rules"><a href="https://corefork.telegram.org/api/privacy">Privacy rules</a> for the story, indicating who can or can't view the story.</param>
|
/// <param name="privacy_rules"><a href="https://corefork.telegram.org/api/privacy">Privacy rules</a> for the story, indicating who can or can't view the story.</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>
|
/// <param name="random_id">Unique client message ID required to prevent message resending. <para>You can use <see cref="WTelegram.Helpers.RandomLong"/></para></param>
|
||||||
/// <param name="period">Period after which the story is moved to archive (and to the profile if <c>pinned</c> is set), in seconds; must be one of <c>6 * 3600</c>, <c>12 * 3600</c>, <c>86400</c>, or <c>2 * 86400</c> for Telegram Premium users, and <c>86400</c> otherwise.</param>
|
/// <param name="period">Period after which the story is moved to archive (and to the profile if <c>pinned</c> is set), in seconds; must be one of <c>6 * 3600</c>, <c>12 * 3600</c>, <c>86400</c>, or <c>2 * 86400</c> for Telegram Premium users, and <c>86400</c> otherwise.</param>
|
||||||
|
/// <param name="fwd_from_id">If set, indicates that this story is a repost of story with ID <c>fwd_from_story</c> posted by the peer in <c>fwd_from_id</c>.</param>
|
||||||
|
/// <param name="fwd_from_story">If set, indicates that this story is a repost of story with ID <c>fwd_from_story</c> posted by the peer in <c>fwd_from_id</c>.</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, InputPeer fwd_from_id = null, int? fwd_from_story = null, bool pinned = false, bool noforwards = false, bool fwd_modified = false)
|
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, InputPeer fwd_from_id = null, int? fwd_from_story = null, bool pinned = false, bool noforwards = false, bool fwd_modified = false)
|
||||||
=> client.Invoke(new Stories_SendStory
|
=> client.Invoke(new Stories_SendStory
|
||||||
{
|
{
|
||||||
|
|
@ -5936,7 +5976,7 @@ namespace TL
|
||||||
|
|
||||||
/// <summary>Obtain the list of users that have viewed a specific <a href="https://corefork.telegram.org/api/stories">story we posted</a> <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>
|
/// <summary>Obtain the list of users that have viewed a specific <a href="https://corefork.telegram.org/api/stories">story we posted</a> <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="just_contacts">Whether to only fetch view reaction/views made by our <a href="https://corefork.telegram.org/api/contacts">contacts</a></param>
|
/// <param name="just_contacts">Whether to only fetch view reaction/views made by our <a href="https://corefork.telegram.org/api/contacts">contacts</a></param>
|
||||||
/// <param name="reactions_first">Whether to return <see cref="StoryView"/> info about users that reacted to the story (i.e. if set, the server will also sort results based on the presence of a reaction, after sorting it by date as usual).</param>
|
/// <param name="reactions_first">Whether to return <see cref="StoryView"/> info about users that reacted to the story (i.e. if set, the server will first sort results by view date as usual, and then also additionally sort the list by putting <see cref="StoryView"/>s with an associated reaction first in the list).</param>
|
||||||
/// <param name="peer">Peer where the story was posted</param>
|
/// <param name="peer">Peer where the story was posted</param>
|
||||||
/// <param name="q">Search for specific peers</param>
|
/// <param name="q">Search for specific peers</param>
|
||||||
/// <param name="id">Story ID</param>
|
/// <param name="id">Story ID</param>
|
||||||
|
|
@ -6047,7 +6087,11 @@ namespace TL
|
||||||
hidden = hidden,
|
hidden = hidden,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/premium.getBoostsList"/></para></summary>
|
/// <summary>Obtains info about the boosts that were applied to a certain channel (admins only) <para>See <a href="https://corefork.telegram.org/method/premium.getBoostsList"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/premium.getBoostsList#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="gifts">Whether to return only info about boosts received from <a href="https://corefork.telegram.org/api/giveaways">gift codes and giveaways created by the channel »</a></param>
|
||||||
|
/// <param name="peer">The channel</param>
|
||||||
|
/// <param name="offset">Offset for pagination, obtained from <see cref="Premium_BoostsList"/>.<c>next_offset</c></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<Premium_BoostsList> Premium_GetBoostsList(this Client client, InputPeer peer, string offset, int limit = int.MaxValue, bool gifts = false)
|
public static Task<Premium_BoostsList> Premium_GetBoostsList(this Client client, InputPeer peer, string offset, int limit = int.MaxValue, bool gifts = false)
|
||||||
=> client.Invoke(new Premium_GetBoostsList
|
=> client.Invoke(new Premium_GetBoostsList
|
||||||
{
|
{
|
||||||
|
|
@ -6057,13 +6101,15 @@ namespace TL
|
||||||
limit = limit,
|
limit = limit,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/premium.getMyBoosts"/></para></summary>
|
/// <summary>Obtain which peers are we currently <a href="https://corefork.telegram.org/api/boost">boosting</a>, and how many <a href="https://corefork.telegram.org/api/boost">boost slots</a> we have left. <para>See <a href="https://corefork.telegram.org/method/premium.getMyBoosts"/></para></summary>
|
||||||
public static Task<Premium_MyBoosts> Premium_GetMyBoosts(this Client client)
|
public static Task<Premium_MyBoosts> Premium_GetMyBoosts(this Client client)
|
||||||
=> client.Invoke(new Premium_GetMyBoosts
|
=> client.Invoke(new Premium_GetMyBoosts
|
||||||
{
|
{
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/premium.applyBoost"/></para></summary>
|
/// <summary>Apply one or more <a href="https://corefork.telegram.org/api/boost">boosts »</a> to a peer. <para>See <a href="https://corefork.telegram.org/method/premium.applyBoost"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/premium.applyBoost#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="slots">Which <a href="https://corefork.telegram.org/api/boost">boost slots</a> to assign to this peer.</param>
|
||||||
|
/// <param name="peer">The peer to boost.</param>
|
||||||
public static Task<Premium_MyBoosts> Premium_ApplyBoost(this Client client, InputPeer peer, int[] slots = null)
|
public static Task<Premium_MyBoosts> Premium_ApplyBoost(this Client client, InputPeer peer, int[] slots = null)
|
||||||
=> client.Invoke(new Premium_ApplyBoost
|
=> client.Invoke(new Premium_ApplyBoost
|
||||||
{
|
{
|
||||||
|
|
@ -6072,14 +6118,17 @@ namespace TL
|
||||||
peer = peer,
|
peer = peer,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/premium.getBoostsStatus"/></para></summary>
|
/// <summary>Gets the current <a href="https://corefork.telegram.org/api/boost">boost status</a> of a peer. <para>See <a href="https://corefork.telegram.org/method/premium.getBoostsStatus"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/premium.getBoostsStatus#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="peer">The peer.</param>
|
||||||
public static Task<Premium_BoostsStatus> Premium_GetBoostsStatus(this Client client, InputPeer peer)
|
public static Task<Premium_BoostsStatus> Premium_GetBoostsStatus(this Client client, InputPeer peer)
|
||||||
=> client.Invoke(new Premium_GetBoostsStatus
|
=> client.Invoke(new Premium_GetBoostsStatus
|
||||||
{
|
{
|
||||||
peer = peer,
|
peer = peer,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/premium.getUserBoosts"/></para></summary>
|
/// <summary>Returns the lists of boost that were applied to a channel by a specific user (admins only) <para>See <a href="https://corefork.telegram.org/method/premium.getUserBoosts"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/premium.getUserBoosts#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="peer">The channel</param>
|
||||||
|
/// <param name="user_id">The user</param>
|
||||||
public static Task<Premium_BoostsList> Premium_GetUserBoosts(this Client client, InputPeer peer, InputUserBase user_id)
|
public static Task<Premium_BoostsList> Premium_GetUserBoosts(this Client client, InputPeer peer, InputUserBase user_id)
|
||||||
=> client.Invoke(new Premium_GetUserBoosts
|
=> client.Invoke(new Premium_GetUserBoosts
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue