This commit is contained in:
Wizou 2023-04-08 16:26:33 +02:00
parent 9af6404eff
commit ddfa095f1a
3 changed files with 59 additions and 24 deletions

View file

@ -39,7 +39,7 @@ WTelegram.Helpers.Log += (lvl, str) => System.Diagnostics.Debug.WriteLine(str);
// • In ASP.NET service, you will typically send logs to an ILogger: // • In ASP.NET service, you will typically send logs to an ILogger:
WTelegram.Helpers.Log = (lvl, str) => _logger.Log((LogLevel)lvl, str); WTelegram.Helpers.Log = (lvl, str) => _logger.Log((LogLevel)lvl, str);
// • Disable logging (THIS IS NOT RECOMMENDED as you won't be able to diagnose any upcoming problem): // • Disable logging (⛔️𝗗𝗢𝗡'𝗧 𝗗𝗢 𝗧𝗛𝗜𝗦 as you won't be able to diagnose any upcoming problem):
WTelegram.Helpers.Log = (lvl, str) => { }; WTelegram.Helpers.Log = (lvl, str) => { };
``` ```

View file

@ -467,8 +467,9 @@ namespace TL
[IfFlag(0)] public InputFileBase file; [IfFlag(0)] public InputFileBase file;
/// <summary>Square video for animated profile picture</summary> /// <summary>Square video for animated profile picture</summary>
[IfFlag(1)] public InputFileBase video; [IfFlag(1)] public InputFileBase video;
/// <summary>Timestamp that should be shown as static preview to the user (seconds)</summary> /// <summary>Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if <c>video</c> or <c>video_emoji_markup</c> is set.</summary>
[IfFlag(2)] public double video_start_ts; [IfFlag(2)] public double video_start_ts;
/// <summary>Animated sticker profile picture, must contain either a <see cref="VideoSizeEmojiMarkup"/> or a <see cref="VideoSizeStickerMarkup"/>.</summary>
[IfFlag(3)] public VideoSizeBase video_emoji_markup; [IfFlag(3)] public VideoSizeBase video_emoji_markup;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
@ -2072,13 +2073,13 @@ namespace TL
/// <summary>Action message</summary> /// <summary>Action message</summary>
public string message; public string message;
} }
/// <summary>The domain name of the website on which the user has logged in. <a href="https://corefork.telegram.org/widgets/login">More about Telegram Login »</a> <para>See <a href="https://corefork.telegram.org/constructor/messageActionBotAllowed"/></para></summary> /// <summary>The user has given the bot permission to do something. <para>See <a href="https://corefork.telegram.org/constructor/messageActionBotAllowed"/></para></summary>
[TLDef(0xC516D679)] [TLDef(0xC516D679)]
public class MessageActionBotAllowed : MessageAction public class MessageActionBotAllowed : MessageAction
{ {
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary> /// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
public Flags flags; public Flags flags;
/// <summary>The domain name of the website on which the user has logged in.</summary> /// <summary>The domain name of the website on which the user has logged in. <a href="https://corefork.telegram.org/widgets/login">More about Telegram Login »</a></summary>
[IfFlag(0)] public string domain; [IfFlag(0)] public string domain;
[IfFlag(2)] public BotApp app; [IfFlag(2)] public BotApp app;
@ -2253,10 +2254,11 @@ namespace TL
has_hidden = 0x8, has_hidden = 0x8,
} }
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionSuggestProfilePhoto"/></para></summary> /// <summary>A new profile picture was suggested using <see cref="SchemaExtensions.Photos_UploadContactProfilePhoto">Photos_UploadContactProfilePhoto</see>. <para>See <a href="https://corefork.telegram.org/constructor/messageActionSuggestProfilePhoto"/></para></summary>
[TLDef(0x57DE635E)] [TLDef(0x57DE635E)]
public class MessageActionSuggestProfilePhoto : MessageAction public class MessageActionSuggestProfilePhoto : MessageAction
{ {
/// <summary>The photo that the user suggested we set as profile picture.</summary>
public PhotoBase photo; public PhotoBase photo;
} }
/// <summary>Contains info about a peer that the user shared with the bot after clicking on a <see cref="KeyboardButtonRequestPeer"/> button. <para>See <a href="https://corefork.telegram.org/constructor/messageActionRequestedPeer"/></para></summary> /// <summary>Contains info about a peer that the user shared with the bot after clicking on a <see cref="KeyboardButtonRequestPeer"/> button. <para>See <a href="https://corefork.telegram.org/constructor/messageActionRequestedPeer"/></para></summary>
@ -2838,9 +2840,11 @@ namespace TL
[IfFlag(1)] public string about; [IfFlag(1)] public string about;
/// <summary>Peer settings</summary> /// <summary>Peer settings</summary>
public PeerSettings settings; public PeerSettings settings;
/// <summary>Personal profile photo, to be shown instead of <c>profile_photo</c>.</summary>
[IfFlag(21)] public PhotoBase personal_photo; [IfFlag(21)] public PhotoBase personal_photo;
/// <summary>Profile photo</summary> /// <summary>Profile photo</summary>
[IfFlag(2)] public PhotoBase profile_photo; [IfFlag(2)] public PhotoBase profile_photo;
/// <summary>Fallback profile photo, displayed if no photo is present in <c>profile_photo</c> or <c>personal_photo</c>, due to privacy settings.</summary>
[IfFlag(22)] public PhotoBase fallback_photo; [IfFlag(22)] public PhotoBase fallback_photo;
/// <summary>Notification settings</summary> /// <summary>Notification settings</summary>
public PeerNotifySettings notify_settings; public PeerNotifySettings notify_settings;
@ -3727,7 +3731,7 @@ namespace TL
public Flags flags; public Flags flags;
/// <summary>The peer to which the draft is associated</summary> /// <summary>The peer to which the draft is associated</summary>
public Peer peer; public Peer peer;
/// <summary>ID of the <a href="https://corefork.telegram.org/api/topic#forum-topics">forum topic</a> to which the draft is associated</summary> /// <summary>ID of the <a href="https://corefork.telegram.org/api/forum#forum-topics">forum topic</a> to which the draft is associated</summary>
[IfFlag(0)] public int top_msg_id; [IfFlag(0)] public int top_msg_id;
/// <summary>The draft</summary> /// <summary>The draft</summary>
public DraftMessageBase draft; public DraftMessageBase draft;
@ -4495,10 +4499,11 @@ namespace TL
has_order = 0x1, has_order = 0x1,
} }
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateUser"/></para></summary> /// <summary>User information was updated, it must be refetched using <see cref="SchemaExtensions.Users_GetFullUser">Users_GetFullUser</see>. <para>See <a href="https://corefork.telegram.org/constructor/updateUser"/></para></summary>
[TLDef(0x20529438)] [TLDef(0x20529438)]
public class UpdateUser : Update public class UpdateUser : Update
{ {
/// <summary>User ID</summary>
public long user_id; public long user_id;
} }
/// <summary>Media autosave settings have changed and must be refetched using <see cref="SchemaExtensions.Account_GetAutoSaveSettings">Account_GetAutoSaveSettings</see>. <para>See <a href="https://corefork.telegram.org/constructor/updateAutoSaveSettings"/></para></summary> /// <summary>Media autosave settings have changed and must be refetched using <see cref="SchemaExtensions.Account_GetAutoSaveSettings">Account_GetAutoSaveSettings</see>. <para>See <a href="https://corefork.telegram.org/constructor/updateAutoSaveSettings"/></para></summary>
@ -5887,6 +5892,7 @@ namespace TL
{ {
/// <summary>Whether this custom emoji can be sent by non-Premium users</summary> /// <summary>Whether this custom emoji can be sent by non-Premium users</summary>
free = 0x1, free = 0x1,
/// <summary>Whether the color of this TGS custom emoji should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context.</summary>
text_color = 0x2, text_color = 0x2,
} }
} }
@ -6432,6 +6438,7 @@ namespace TL
public StickerSet set; public StickerSet set;
/// <summary>Emoji info for stickers</summary> /// <summary>Emoji info for stickers</summary>
public StickerPack[] packs; public StickerPack[] packs;
/// <summary>Keywords for some or every sticker in the stickerset.</summary>
public StickerKeyword[] keywords; public StickerKeyword[] keywords;
/// <summary>Stickers in stickerset</summary> /// <summary>Stickers in stickerset</summary>
public DocumentBase[] documents; public DocumentBase[] documents;
@ -8310,6 +8317,7 @@ namespace TL
public StickerSet set; public StickerSet set;
/// <summary>Emoji information about every sticker in the stickerset</summary> /// <summary>Emoji information about every sticker in the stickerset</summary>
public StickerPack[] packs; public StickerPack[] packs;
/// <summary>Keywords for some or every sticker in the stickerset.</summary>
public StickerKeyword[] keywords; public StickerKeyword[] keywords;
/// <summary>Stickers</summary> /// <summary>Stickers</summary>
public DocumentBase[] documents; public DocumentBase[] documents;
@ -8317,12 +8325,14 @@ namespace TL
/// <summary>Stickerset</summary> /// <summary>Stickerset</summary>
public override StickerSet Set => set; public override StickerSet Set => set;
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/stickerSetNoCovered"/></para></summary> /// <summary>Just the stickerset information, with no previews. <para>See <a href="https://corefork.telegram.org/constructor/stickerSetNoCovered"/></para></summary>
[TLDef(0x77B15D1C)] [TLDef(0x77B15D1C)]
public class StickerSetNoCovered : StickerSetCoveredBase public class StickerSetNoCovered : StickerSetCoveredBase
{ {
/// <summary>Stickerset information.</summary>
public StickerSet set; public StickerSet set;
/// <summary>Stickerset information.</summary>
public override StickerSet Set => set; public override StickerSet Set => set;
} }
@ -9375,7 +9385,7 @@ namespace TL
public string emoji; public string emoji;
/// <summary>Coordinates for mask sticker</summary> /// <summary>Coordinates for mask sticker</summary>
[IfFlag(0)] public MaskCoords mask_coords; [IfFlag(0)] public MaskCoords mask_coords;
/// <summary>Set of keywords, separated by commas</summary> /// <summary>Set of keywords, separated by commas (can't be provided for mask stickers)</summary>
[IfFlag(1)] public string keywords; [IfFlag(1)] public string keywords;
[Flags] public enum Flags : uint [Flags] public enum Flags : uint
@ -12402,7 +12412,7 @@ namespace TL
/// <summary>Represents an animated video thumbnail <para>See <a href="https://corefork.telegram.org/type/VideoSize"/></para> <para>Derived classes: <see cref="VideoSize"/>, <see cref="VideoSizeEmojiMarkup"/>, <see cref="VideoSizeStickerMarkup"/></para></summary> /// <summary>Represents an animated video thumbnail <para>See <a href="https://corefork.telegram.org/type/VideoSize"/></para> <para>Derived classes: <see cref="VideoSize"/>, <see cref="VideoSizeEmojiMarkup"/>, <see cref="VideoSizeStickerMarkup"/></para></summary>
public abstract class VideoSizeBase : IObject { } public abstract class VideoSizeBase : IObject { }
/// <summary><a href="https://corefork.telegram.org/api/files#animated-profile-pictures">Animated profile picture</a> in MPEG4 format <para>See <a href="https://corefork.telegram.org/constructor/videoSize"/></para></summary> /// <summary>An <a href="https://corefork.telegram.org/api/files#animated-profile-pictures">animated profile picture</a> in MPEG4 format <para>See <a href="https://corefork.telegram.org/constructor/videoSize"/></para></summary>
[TLDef(0xDE33B094)] [TLDef(0xDE33B094)]
public class VideoSize : VideoSizeBase public class VideoSize : VideoSizeBase
{ {
@ -12425,19 +12435,24 @@ namespace TL
has_video_start_ts = 0x1, has_video_start_ts = 0x1,
} }
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/videoSizeEmojiMarkup"/></para></summary> /// <summary>An <a href="https://corefork.telegram.org/api/files#animated-profile-pictures">animated profile picture</a> based on a <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji sticker</a>. <para>See <a href="https://corefork.telegram.org/constructor/videoSizeEmojiMarkup"/></para></summary>
[TLDef(0xF85C413C)] [TLDef(0xF85C413C)]
public class VideoSizeEmojiMarkup : VideoSizeBase public class VideoSizeEmojiMarkup : VideoSizeBase
{ {
/// <summary><a href="https://corefork.telegram.org/api/custom-emoji">Custom emoji ID</a>: the custom emoji sticker is shown at the center of the profile picture and occupies at most 67% of it.</summary>
public long emoji_id; public long emoji_id;
/// <summary>1, 2, 3 or 4 RBG-24 colors used to generate a solid (1), gradient (2) or freeform gradient (3, 4) background, similar to how <a href="https://corefork.telegram.org/api/wallpapers#fill-types">fill wallpapers</a> are generated. The rotation angle for gradient backgrounds is 0.</summary>
public int[] background_colors; public int[] background_colors;
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/videoSizeStickerMarkup"/></para></summary> /// <summary>An <a href="https://corefork.telegram.org/api/files#animated-profile-pictures">animated profile picture</a> based on a <a href="https://corefork.telegram.org/api/stickers">sticker</a>. <para>See <a href="https://corefork.telegram.org/constructor/videoSizeStickerMarkup"/></para></summary>
[TLDef(0x0DA082FE)] [TLDef(0x0DA082FE)]
public class VideoSizeStickerMarkup : VideoSizeBase public class VideoSizeStickerMarkup : VideoSizeBase
{ {
/// <summary>Stickerset</summary>
public InputStickerSet stickerset; public InputStickerSet stickerset;
/// <summary>Sticker ID</summary>
public long sticker_id; public long sticker_id;
/// <summary>1, 2, 3 or 4 RBG-24 colors used to generate a solid (1), gradient (2) or freeform gradient (3, 4) background, similar to how <a href="https://corefork.telegram.org/api/wallpapers#fill-types">fill wallpapers</a> are generated. The rotation angle for gradient backgrounds is 0.</summary>
public int[] background_colors; public int[] background_colors;
} }
@ -14340,30 +14355,37 @@ namespace TL
} }
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/emojiList"/></para></summary> /// <summary>Represents a list of <a href="https://corefork.telegram.org/api/custom-emoji">custom emojis</a>. <para>See <a href="https://corefork.telegram.org/constructor/emojiList"/></para></summary>
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/emojiListNotModified">emojiListNotModified</a></remarks> /// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/emojiListNotModified">emojiListNotModified</a></remarks>
[TLDef(0x7A1E11D1)] [TLDef(0x7A1E11D1)]
public class EmojiList : IObject public class EmojiList : IObject
{ {
/// <summary><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></summary>
public long hash; public long hash;
/// <summary>Custom emoji IDs</summary>
public long[] document_id; public long[] document_id;
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/emojiGroup"/></para></summary> /// <summary>Represents an <a href="https://corefork.telegram.org/api/custom-emoji#emoji-categories">emoji category</a>. <para>See <a href="https://corefork.telegram.org/constructor/emojiGroup"/></para></summary>
[TLDef(0x7A9ABDA9)] [TLDef(0x7A9ABDA9)]
public class EmojiGroup : IObject public class EmojiGroup : IObject
{ {
/// <summary>Category name, i.e. "Animals", "Flags", "Faces" and so on...</summary>
public string title; public string title;
/// <summary>A single custom emoji used as preview for the category.</summary>
public long icon_emoji_id; public long icon_emoji_id;
/// <summary>A list of UTF-8 emojis, matching the category.</summary>
public string[] emoticons; public string[] emoticons;
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messages.emojiGroups"/></para></summary> /// <summary>Represents a list of <a href="https://corefork.telegram.org/api/custom-emoji#emoji-categories">emoji categories</a>. <para>See <a href="https://corefork.telegram.org/constructor/messages.emojiGroups"/></para></summary>
/// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/messages.emojiGroupsNotModified">messages.emojiGroupsNotModified</a></remarks> /// <remarks>a <see langword="null"/> value means <a href="https://corefork.telegram.org/constructor/messages.emojiGroupsNotModified">messages.emojiGroupsNotModified</a></remarks>
[TLDef(0x881FB94B)] [TLDef(0x881FB94B)]
public class Messages_EmojiGroups : IObject public class Messages_EmojiGroups : 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>A list of <a href="https://corefork.telegram.org/api/custom-emoji#emoji-categories">emoji categories</a>.</summary>
public EmojiGroup[] groups; public EmojiGroup[] groups;
} }

View file

@ -1088,7 +1088,8 @@ namespace TL
active = active, active = active,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.getDefaultProfilePhotoEmojis"/></para></summary> /// <summary>Get a set of suggested <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji stickers</a> that can be <a href="https://corefork.telegram.org/api/files#sticker-profile-pictures">used as profile picture</a> <para>See <a href="https://corefork.telegram.org/method/account.getDefaultProfilePhotoEmojis"/></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_GetDefaultProfilePhotoEmojis(this Client client, long hash = default) public static Task<EmojiList> Account_GetDefaultProfilePhotoEmojis(this Client client, long hash = default)
=> client.Invoke(new Account_GetDefaultProfilePhotoEmojis => client.Invoke(new Account_GetDefaultProfilePhotoEmojis
@ -1096,7 +1097,8 @@ namespace TL
hash = hash, hash = hash,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/account.getDefaultGroupPhotoEmojis"/></para></summary> /// <summary>Get a set of suggested <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji stickers</a> that can be <a href="https://corefork.telegram.org/api/files#sticker-profile-pictures">used as group picture</a> <para>See <a href="https://corefork.telegram.org/method/account.getDefaultGroupPhotoEmojis"/></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_GetDefaultGroupPhotoEmojis(this Client client, long hash = default) public static Task<EmojiList> Account_GetDefaultGroupPhotoEmojis(this Client client, long hash = default)
=> client.Invoke(new Account_GetDefaultGroupPhotoEmojis => client.Invoke(new Account_GetDefaultGroupPhotoEmojis
@ -3552,7 +3554,8 @@ namespace TL
requested_peer = requested_peer, requested_peer = requested_peer,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getEmojiGroups"/> [bots: ✓]</para></summary> /// <summary>Represents a list of <a href="https://corefork.telegram.org/api/custom-emoji#emoji-categories">emoji categories</a>, to be used when selecting <a href="https://corefork.telegram.org/api/custom-emoji">custom emojis</a>. <para>See <a href="https://corefork.telegram.org/method/messages.getEmojiGroups"/> [bots: ✓]</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/messages.emojiGroupsNotModified">messages.emojiGroupsNotModified</a></returns> /// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.emojiGroupsNotModified">messages.emojiGroupsNotModified</a></returns>
public static Task<Messages_EmojiGroups> Messages_GetEmojiGroups(this Client client, int hash = default) public static Task<Messages_EmojiGroups> Messages_GetEmojiGroups(this Client client, int hash = default)
=> client.Invoke(new Messages_GetEmojiGroups => client.Invoke(new Messages_GetEmojiGroups
@ -3560,7 +3563,8 @@ namespace TL
hash = hash, hash = hash,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getEmojiStatusGroups"/> [bots: ✓]</para></summary> /// <summary>Represents a list of <a href="https://corefork.telegram.org/api/custom-emoji#emoji-categories">emoji categories</a>, to be used when selecting custom emojis to set as <a href="https://corefork.telegram.org/api">custom emoji status</a>. <para>See <a href="https://corefork.telegram.org/method/messages.getEmojiStatusGroups"/> [bots: ✓]</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/messages.emojiGroupsNotModified">messages.emojiGroupsNotModified</a></returns> /// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.emojiGroupsNotModified">messages.emojiGroupsNotModified</a></returns>
public static Task<Messages_EmojiGroups> Messages_GetEmojiStatusGroups(this Client client, int hash = default) public static Task<Messages_EmojiGroups> Messages_GetEmojiStatusGroups(this Client client, int hash = default)
=> client.Invoke(new Messages_GetEmojiStatusGroups => client.Invoke(new Messages_GetEmojiStatusGroups
@ -3568,7 +3572,8 @@ namespace TL
hash = hash, hash = hash,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.getEmojiProfilePhotoGroups"/> [bots: ✓]</para></summary> /// <summary>Represents a list of <a href="https://corefork.telegram.org/api/custom-emoji#emoji-categories">emoji categories</a>, to be used when selecting custom emojis to set as <a href="https://corefork.telegram.org/api/files#sticker-profile-pictures">profile picture</a>. <para>See <a href="https://corefork.telegram.org/method/messages.getEmojiProfilePhotoGroups"/> [bots: ✓]</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/messages.emojiGroupsNotModified">messages.emojiGroupsNotModified</a></returns> /// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.emojiGroupsNotModified">messages.emojiGroupsNotModified</a></returns>
public static Task<Messages_EmojiGroups> Messages_GetEmojiProfilePhotoGroups(this Client client, int hash = default) public static Task<Messages_EmojiGroups> Messages_GetEmojiProfilePhotoGroups(this Client client, int hash = default)
=> client.Invoke(new Messages_GetEmojiProfilePhotoGroups => client.Invoke(new Messages_GetEmojiProfilePhotoGroups
@ -3663,6 +3668,7 @@ namespace TL
}); });
/// <summary>Installs a previously uploaded photo as a profile photo. <para>See <a href="https://corefork.telegram.org/method/photos.updateProfilePhoto"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/photos.updateProfilePhoto#possible-errors">details</a>)</para></summary> /// <summary>Installs a previously uploaded photo as a profile photo. <para>See <a href="https://corefork.telegram.org/method/photos.updateProfilePhoto"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/photos.updateProfilePhoto#possible-errors">details</a>)</para></summary>
/// <param name="fallback">If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings.</param>
/// <param name="id">Input photo</param> /// <param name="id">Input photo</param>
public static Task<Photos_Photo> Photos_UpdateProfilePhoto(this Client client, InputPhoto id, bool fallback = false) public static Task<Photos_Photo> Photos_UpdateProfilePhoto(this Client client, InputPhoto id, bool fallback = false)
=> client.Invoke(new Photos_UpdateProfilePhoto => client.Invoke(new Photos_UpdateProfilePhoto
@ -3672,9 +3678,11 @@ namespace TL
}); });
/// <summary>Updates current user profile photo. <para>See <a href="https://corefork.telegram.org/method/photos.uploadProfilePhoto"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/photos.uploadProfilePhoto#possible-errors">details</a>)</para></summary> /// <summary>Updates current user profile photo. <para>See <a href="https://corefork.telegram.org/method/photos.uploadProfilePhoto"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/photos.uploadProfilePhoto#possible-errors">details</a>)</para></summary>
/// <param name="fallback">If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings.</param>
/// <param name="file">Profile photo</param> /// <param name="file">Profile photo</param>
/// <param name="video"><a href="https://corefork.telegram.org/api/files#animated-profile-pictures">Animated profile picture</a> video</param> /// <param name="video"><a href="https://corefork.telegram.org/api/files#animated-profile-pictures">Animated profile picture</a> video</param>
/// <param name="video_start_ts">Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview.</param> /// <param name="video_start_ts">Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if <c>video</c> or <c>video_emoji_markup</c> is set.</param>
/// <param name="video_emoji_markup">Animated sticker profile picture, must contain either a <see cref="VideoSizeEmojiMarkup"/> or a <see cref="VideoSizeStickerMarkup"/>.</param>
public static Task<Photos_Photo> Photos_UploadProfilePhoto(this Client client, InputFileBase file = null, InputFileBase video = null, double? video_start_ts = null, VideoSizeBase video_emoji_markup = null, bool fallback = false) public static Task<Photos_Photo> Photos_UploadProfilePhoto(this Client client, InputFileBase file = null, InputFileBase video = null, double? video_start_ts = null, VideoSizeBase video_emoji_markup = null, bool fallback = false)
=> client.Invoke(new Photos_UploadProfilePhoto => client.Invoke(new Photos_UploadProfilePhoto
{ {
@ -3707,10 +3715,14 @@ namespace TL
limit = limit, limit = limit,
}); });
/// <summary><para>See <a href="https://corefork.telegram.org/method/photos.uploadContactProfilePhoto"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/photos.uploadContactProfilePhoto#possible-errors">details</a>)</para></summary> /// <summary>Upload a custom profile picture for a contact, or suggest a new profile picture to a contact. <para>See <a href="https://corefork.telegram.org/method/photos.uploadContactProfilePhoto"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/photos.uploadContactProfilePhoto#possible-errors">details</a>)</para></summary>
/// <param name="suggest">If set, will send a <see cref="MessageActionSuggestProfilePhoto"/> service message to <c>user_id</c>, suggesting them to use the specified profile picture; otherwise, will set a personal profile picture for the user (only visible to the current user).</param>
/// <param name="save">If set, removes a previously set personal profile picture (does not affect suggested profile pictures, to remove them simply deleted the <see cref="MessageActionSuggestProfilePhoto"/> service message with <see cref="Messages_DeleteMessages">Messages_DeleteMessages</see>).</param>
/// <param name="user_id">The contact</param>
/// <param name="file">Profile photo</param> /// <param name="file">Profile photo</param>
/// <param name="video"><a href="https://corefork.telegram.org/api/files#animated-profile-pictures">Animated profile picture</a> video</param> /// <param name="video"><a href="https://corefork.telegram.org/api/files#animated-profile-pictures">Animated profile picture</a> video</param>
/// <param name="video_start_ts">Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview.</param> /// <param name="video_start_ts">Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if <c>video</c> or <c>video_emoji_markup</c> is set.</param>
/// <param name="video_emoji_markup">Animated sticker profile picture, must contain either a <see cref="VideoSizeEmojiMarkup"/> or a <see cref="VideoSizeStickerMarkup"/>.</param>
public static Task<Photos_Photo> Photos_UploadContactProfilePhoto(this Client client, InputUserBase user_id, InputFileBase file = null, InputFileBase video = null, double? video_start_ts = null, VideoSizeBase video_emoji_markup = null, bool suggest = false, bool save = false) public static Task<Photos_Photo> Photos_UploadContactProfilePhoto(this Client client, InputUserBase user_id, InputFileBase file = null, InputFileBase video = null, double? video_start_ts = null, VideoSizeBase video_emoji_markup = null, bool suggest = false, bool save = false)
=> client.Invoke(new Photos_UploadContactProfilePhoto => client.Invoke(new Photos_UploadContactProfilePhoto
{ {
@ -4825,6 +4837,7 @@ namespace TL
/// <param name="animated">Whether this is an animated stickerset</param> /// <param name="animated">Whether this is an animated stickerset</param>
/// <param name="videos">Whether this is a video stickerset</param> /// <param name="videos">Whether this is a video stickerset</param>
/// <param name="emojis">Whether this is a <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji</a> stickerset.</param> /// <param name="emojis">Whether this is a <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji</a> stickerset.</param>
/// <param name="text_color">Whether the color of TGS custom emojis contained in this set should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context. For custom emoji stickersets only.</param>
/// <param name="user_id">Stickerset owner</param> /// <param name="user_id">Stickerset owner</param>
/// <param name="title">Stickerset name, <c>1-64</c> chars</param> /// <param name="title">Stickerset name, <c>1-64</c> chars</param>
/// <param name="short_name">Short name of sticker set, to be used in <a href="https://corefork.telegram.org/api/links#stickerset-links">sticker deep links »</a>. Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and, <strong>if called by a bot</strong>, must end in <c>"_by_&lt;bot_username&gt;"</c>. <c>&lt;bot_username&gt;</c> is case insensitive. 1-64 characters.</param> /// <param name="short_name">Short name of sticker set, to be used in <a href="https://corefork.telegram.org/api/links#stickerset-links">sticker deep links »</a>. Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and, <strong>if called by a bot</strong>, must end in <c>"_by_&lt;bot_username&gt;"</c>. <c>&lt;bot_username&gt;</c> is case insensitive. 1-64 characters.</param>
@ -4909,7 +4922,7 @@ namespace TL
/// <param name="sticker">The sticker</param> /// <param name="sticker">The sticker</param>
/// <param name="emoji">If set, updates the emoji list associated to the sticker</param> /// <param name="emoji">If set, updates the emoji list associated to the sticker</param>
/// <param name="mask_coords">If set, updates the <a href="https://corefork.telegram.org/api/stickers#mask-stickers">mask coordinates</a></param> /// <param name="mask_coords">If set, updates the <a href="https://corefork.telegram.org/api/stickers#mask-stickers">mask coordinates</a></param>
/// <param name="keywords">If set, updates the sticker keywords (separated by commas).</param> /// <param name="keywords">If set, updates the sticker keywords (separated by commas). Can't be provided for mask stickers.</param>
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.stickerSetNotModified">messages.stickerSetNotModified</a></returns> /// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.stickerSetNotModified">messages.stickerSetNotModified</a></returns>
public static Task<Messages_StickerSet> Stickers_ChangeSticker(this Client client, InputDocument sticker, string emoji = null, MaskCoords mask_coords = null, string keywords = null) public static Task<Messages_StickerSet> Stickers_ChangeSticker(this Client client, InputDocument sticker, string emoji = null, MaskCoords mask_coords = null, string keywords = null)
=> client.Invoke(new Stickers_ChangeSticker => client.Invoke(new Stickers_ChangeSticker