mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-01-19 06:50:23 +01:00
No changes, documentation
This commit is contained in:
parent
a071c993d5
commit
26942d33f2
2
FAQ.md
2
FAQ.md
|
|
@ -47,7 +47,7 @@ You can download such full example apps [for WinForms](https://github.com/wiz0u/
|
|||
<a name="access-hash"></a>
|
||||
#### 4. Where to get the access_hash? Why the error `CHANNEL_INVALID` or `USER_ID_INVALID`?
|
||||
|
||||
An `access_hash` is required by Telegram when dealing with a channel, user, photo, document, etc...
|
||||
Having only the ID is **not enough**: An `access_hash` is required by Telegram when dealing with a channel, user, photo, document, etc...
|
||||
This serves as a proof that the logged-in user is entitled to access it (otherwise, anybody with the ID could access it)
|
||||
|
||||
> A small private `Chat` don't need an access_hash and can be queried using their `chat_id` only.
|
||||
|
|
|
|||
|
|
@ -363,8 +363,8 @@ namespace TL
|
|||
switch (sb[i])
|
||||
{
|
||||
case '&': sb.Insert(i + 1, "amp;"); i += 4; break;
|
||||
case '<': sb.Remove(i, 1).Insert(i, "<"); i += 3; break;
|
||||
case '>': sb.Remove(i, 1).Insert(i, ">"); i += 3; break;
|
||||
case '<': sb.Insert(i, "<"); sb[i += 3] = ';'; break;
|
||||
case '>': sb.Insert(i, ">"); sb[i += 3] = ';'; break;
|
||||
}
|
||||
}
|
||||
return sb.ToString();
|
||||
|
|
|
|||
|
|
@ -209,17 +209,18 @@ namespace TL
|
|||
partial class ChatParticipants { public override ChatParticipantBase[] Participants => participants; }
|
||||
|
||||
partial class MessageMedia { ///<summary>Use this helper method to send a copy of the media without downloading it</summary>
|
||||
///<remarks>Quiz poll may need to be voted before obtaining the correct answers. Dice will not replicate same value.<br/>May return <see langword="null"/> for Invoice and other unsupported media types</remarks>
|
||||
///<remarks>Quiz poll may need to be voted before obtaining the correct answers. Dice will not replicate same value. TTL ignored<br/>May return <see langword="null"/> for Invoice and other unsupported media types</remarks>
|
||||
public virtual InputMedia ToInputMedia() => null; }
|
||||
partial class MessageMediaPhoto { public override InputMedia ToInputMedia() => new InputMediaPhoto { id = photo }; }
|
||||
partial class MessageMediaGeo { public override InputMedia ToInputMedia() => new InputMediaGeoPoint { geo_point = geo }; }
|
||||
partial class MessageMediaContact { public override InputMedia ToInputMedia() => new InputMediaContact { first_name = first_name, last_name = last_name, phone_number = phone_number, vcard = vcard }; }
|
||||
partial class MessageMediaContact { public override InputMedia ToInputMedia() => new InputMediaContact { phone_number = phone_number, first_name = first_name, last_name = last_name, vcard = vcard }; }
|
||||
partial class MessageMediaDocument { public override InputMedia ToInputMedia() => new InputMediaDocument { id = document }; }
|
||||
partial class MessageMediaVenue { public override InputMedia ToInputMedia() => new InputMediaVenue { geo_point = geo, title = title, address = address, provider = provider, venue_id = venue_id, venue_type = venue_type }; }
|
||||
partial class MessageMediaGame { public override InputMedia ToInputMedia() => new InputMediaGame { id = game }; }
|
||||
partial class MessageMediaGeoLive { public override InputMedia ToInputMedia() => new InputMediaGeoLive { geo_point = geo, heading = heading, period = period, proximity_notification_radius = proximity_notification_radius,
|
||||
flags = (period != 0 ? InputMediaGeoLive.Flags.has_period : 0) | (flags.HasFlag(Flags.has_heading) ? InputMediaGeoLive.Flags.has_heading : 0) | (flags.HasFlag(Flags.has_proximity_notification_radius) ? InputMediaGeoLive.Flags.has_proximity_notification_radius : 0) }; }
|
||||
partial class MessageMediaPoll { public override InputMedia ToInputMedia() => new InputMediaPoll { poll = poll, correct_answers = results.results?.Where(pav => pav.flags.HasFlag(PollAnswerVoters.Flags.correct)).Select(pav => pav.option).ToArray(), solution = results.solution, solution_entities = results.solution_entities,
|
||||
partial class MessageMediaPoll { public override InputMedia ToInputMedia() => new InputMediaPoll { poll = poll, solution = results.solution, solution_entities = results.solution_entities,
|
||||
correct_answers = results.results?.Where(pav => pav.flags.HasFlag(PollAnswerVoters.Flags.correct)).Select(pav => pav.option).ToArray(),
|
||||
flags = (results.results != null ? InputMediaPoll.Flags.has_correct_answers : 0) | (results.solution != null ? InputMediaPoll.Flags.has_solution : 0) }; }
|
||||
partial class MessageMediaDice { public override InputMedia ToInputMedia() => new InputMediaDice { emoticon = emoticon }; }
|
||||
|
||||
|
|
|
|||
|
|
@ -1974,7 +1974,7 @@ namespace TL
|
|||
public string currency;
|
||||
/// <summary>Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of <c>US$ 1.45</c> pass <c>amount = 145</c>. See the exp parameter in <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</summary>
|
||||
public long total_amount;
|
||||
/// <summary>An invoice slug taken from an <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a> or from the <a href="https://corefork.telegram.org/api/config#client-configuration"><c>premium_invoice_slug</c> app config parameter »</a></summary>
|
||||
/// <summary>An invoice slug taken from an <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a> or from the <a href="https://corefork.telegram.org/api/config#premium-invoice-slug"><c>premium_invoice_slug</c> app config parameter »</a></summary>
|
||||
[IfFlag(0)] public string invoice_slug;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
|
|
@ -2501,9 +2501,9 @@ namespace TL
|
|||
{
|
||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||
public Flags flags;
|
||||
/// <summary>Display text in notifications</summary>
|
||||
/// <summary>(Ternary value) If set, indicates whether or not to display previews of messages in notifications; otherwise the default behavior should be used.</summary>
|
||||
[IfFlag(0)] public bool show_previews;
|
||||
/// <summary>Mute peer?</summary>
|
||||
/// <summary>(Ternary value) If set, indicates whether to mute or unmute the peer; otherwise the default behavior should be used.</summary>
|
||||
[IfFlag(1)] public bool silent;
|
||||
/// <summary>Mute all notifications until this date</summary>
|
||||
[IfFlag(2)] public int mute_until;
|
||||
|
|
@ -4243,7 +4243,7 @@ namespace TL
|
|||
pending = 0x1,
|
||||
}
|
||||
}
|
||||
/// <summary>Some featured emoji stickers were marked as read <para>See <a href="https://corefork.telegram.org/constructor/updateReadFeaturedEmojiStickers"/></para></summary>
|
||||
/// <summary>Some featured <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji stickers</a> were marked as read <para>See <a href="https://corefork.telegram.org/constructor/updateReadFeaturedEmojiStickers"/></para></summary>
|
||||
[TLDef(0xFB4C496C)]
|
||||
public class UpdateReadFeaturedEmojiStickers : Update { }
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateUserEmojiStatus"/></para></summary>
|
||||
|
|
@ -5581,7 +5581,7 @@ namespace TL
|
|||
[IfFlag(0)] public string title;
|
||||
/// <summary>Performer</summary>
|
||||
[IfFlag(1)] public string performer;
|
||||
/// <summary>Waveform</summary>
|
||||
/// <summary>Waveform: consists in a series of bitpacked 5-bit values. <br/>Example implementation: <a href="https://github.com/DrKLO/Telegram/blob/96dce2c9aabc33b87db61d830aa087b6b03fe397/TMessagesProj/jni/audio.c#L546">android</a>.</summary>
|
||||
[IfFlag(2)] public byte[] waveform;
|
||||
|
||||
[Flags] public enum Flags : uint
|
||||
|
|
@ -6554,7 +6554,7 @@ namespace TL
|
|||
[TLDef(0xC8CF05F8, inheritBefore = true)]
|
||||
public class MessageEntityCustomEmoji : MessageEntity
|
||||
{
|
||||
/// <summary>Document ID of the custom emoji, use <a href="https://corefork.telegram.org/method/messages.getCustomEmojiDocuments">messages.getCustomEmojiDocuments</a> to fetch the emoji animation and the actual emoji it represents.</summary>
|
||||
/// <summary>Document ID of the <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji</a>, use <a href="https://corefork.telegram.org/method/messages.getCustomEmojiDocuments">messages.getCustomEmojiDocuments</a> to fetch the emoji animation and the actual emoji it represents.</summary>
|
||||
public long document_id;
|
||||
}
|
||||
|
||||
|
|
@ -7981,7 +7981,7 @@ namespace TL
|
|||
/// <summary>Stickerset</summary>
|
||||
public override StickerSet Set => set;
|
||||
}
|
||||
/// <summary>Stickerset preview with all stickers of the stickerset included.<br/>Currently used only for custom emoji stickersets, to avoid a further call to <a href="https://corefork.telegram.org/method/messages.getStickerSet">messages.getStickerSet</a>. <para>See <a href="https://corefork.telegram.org/constructor/stickerSetFullCovered"/></para></summary>
|
||||
/// <summary>Stickerset preview with all stickers of the stickerset included.<br/>Currently used only for <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji stickersets</a>, to avoid a further call to <a href="https://corefork.telegram.org/method/messages.getStickerSet">messages.getStickerSet</a>. <para>See <a href="https://corefork.telegram.org/constructor/stickerSetFullCovered"/></para></summary>
|
||||
[TLDef(0x1AED5EE5)]
|
||||
public class StickerSetFullCovered : StickerSetCoveredBase
|
||||
{
|
||||
|
|
@ -7996,7 +7996,7 @@ namespace TL
|
|||
public override StickerSet Set => set;
|
||||
}
|
||||
|
||||
/// <summary>Position on a photo where a mask should be placed <para>See <a href="https://corefork.telegram.org/constructor/maskCoords"/></para></summary>
|
||||
/// <summary>Position on a photo where a mask should be placed when <a href="https://corefork.telegram.org/api/stickers#attached-stickers">attaching stickers to media »</a> <para>See <a href="https://corefork.telegram.org/constructor/maskCoords"/></para></summary>
|
||||
[TLDef(0xAED6DBB2)]
|
||||
public class MaskCoords : IObject
|
||||
{
|
||||
|
|
@ -8004,7 +8004,7 @@ namespace TL
|
|||
public int n;
|
||||
/// <summary>Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position)</summary>
|
||||
public double x;
|
||||
/// <summary>Shift by Y-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position)</summary>
|
||||
/// <summary>Shift by Y-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just below the default mask position)</summary>
|
||||
public double y;
|
||||
/// <summary>Mask scaling coefficient. (For example, 2.0 means a doubled size)</summary>
|
||||
public double zoom;
|
||||
|
|
@ -10965,7 +10965,7 @@ namespace TL
|
|||
|
||||
[Flags] public enum Flags : uint
|
||||
{
|
||||
/// <summary>Similar to <a href="https://corefork.telegram.org/api/min">min</a> objects, used for poll constructors that are the same for all users so they don't have option chosen by the current user (you can use <a href="https://corefork.telegram.org/method/messages.getPollResults">messages.getPollResults</a> to get the full poll results).</summary>
|
||||
/// <summary>Similar to <a href="https://corefork.telegram.org/api/min">min</a> objects, used for poll constructors that are the same for all users so they don't have the option chosen by the current user (you can use <a href="https://corefork.telegram.org/method/messages.getPollResults">messages.getPollResults</a> to get the full poll results).</summary>
|
||||
min = 0x1,
|
||||
/// <summary>Field <see cref="results"/> has a value</summary>
|
||||
has_results = 0x2,
|
||||
|
|
@ -13305,7 +13305,7 @@ namespace TL
|
|||
/// <summary>Message ID</summary>
|
||||
public int msg_id;
|
||||
}
|
||||
/// <summary>An invoice slug taken from an <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a> or from the <a href="https://corefork.telegram.org/api/config#client-configuration"><c>premium_invoice_slug</c> app config parameter »</a> <para>See <a href="https://corefork.telegram.org/constructor/inputInvoiceSlug"/></para></summary>
|
||||
/// <summary>An invoice slug taken from an <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a> or from the <a href="https://corefork.telegram.org/api/config#premium-invoice-slug"><c>premium_invoice_slug</c> app config parameter »</a> <para>See <a href="https://corefork.telegram.org/constructor/inputInvoiceSlug"/></para></summary>
|
||||
[TLDef(0xC326CAEF)]
|
||||
public class InputInvoiceSlug : InputInvoice
|
||||
{
|
||||
|
|
|
|||
|
|
@ -808,7 +808,7 @@ namespace TL
|
|||
/// <param name="slug">Unique theme ID used to generate <a href="https://corefork.telegram.org/api/links#theme-links">theme deep links</a>, can be empty to autogenerate a random ID.</param>
|
||||
/// <param name="title">Theme name</param>
|
||||
/// <param name="document">Theme file</param>
|
||||
/// <param name="settings">Theme settings</param>
|
||||
/// <param name="settings">Theme settings, multiple values can be provided for the different base themes (day/night mode, etc).</param>
|
||||
public static Task<Theme> Account_CreateTheme(this Client client, string slug, string title, InputDocument document = null, InputThemeSettings[] settings = null)
|
||||
=> client.Invoke(new Account_CreateTheme
|
||||
{
|
||||
|
|
@ -1882,7 +1882,7 @@ namespace TL
|
|||
|
||||
/// <summary>Reorder installed stickersets <para>See <a href="https://corefork.telegram.org/method/messages.reorderStickerSets"/></para></summary>
|
||||
/// <param name="masks">Reorder mask stickersets</param>
|
||||
/// <param name="emojis">Reorder custom emoji stickersets</param>
|
||||
/// <param name="emojis">Reorder <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji stickersets</a></param>
|
||||
/// <param name="order">New stickerset order by stickerset IDs</param>
|
||||
public static Task<bool> Messages_ReorderStickerSets(this Client client, long[] order, bool masks = false, bool emojis = false)
|
||||
=> client.Invoke(new Messages_ReorderStickerSets
|
||||
|
|
@ -2143,8 +2143,8 @@ namespace TL
|
|||
});
|
||||
|
||||
/// <summary>Get all archived stickers <para>See <a href="https://corefork.telegram.org/method/messages.getArchivedStickers"/></para></summary>
|
||||
/// <param name="masks">Get mask stickers</param>
|
||||
/// <param name="emojis">Get custom emoji stickers</param>
|
||||
/// <param name="masks">Get <a href="https://corefork.telegram.org/api/stickers#mask-stickers">mask stickers</a></param>
|
||||
/// <param name="emojis">Get <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji stickers</a></param>
|
||||
/// <param name="offset_id"><a href="https://corefork.telegram.org/api/offsets">Offsets for pagination, for more info click here</a></param>
|
||||
/// <param name="limit">Maximum number of results to return, <a href="https://corefork.telegram.org/api/offsets">see pagination</a></param>
|
||||
public static Task<Messages_ArchivedStickers> Messages_GetArchivedStickers(this Client client, long offset_id = default, int limit = int.MaxValue, bool masks = false, bool emojis = false)
|
||||
|
|
@ -2312,7 +2312,7 @@ namespace TL
|
|||
});
|
||||
|
||||
/// <summary>Upload a file and associate it to a chat (without actually sending it to the chat) <para>See <a href="https://corefork.telegram.org/method/messages.uploadMedia"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.uploadMedia#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">The chat, can be an <see langword="null"/> for bots</param>
|
||||
/// <param name="peer">The chat, can be <see langword="null"/> for bots and <see cref="InputPeerSelf"/> for users.</param>
|
||||
/// <param name="media">File uploaded in chunks as described in <a href="https://corefork.telegram.org/api/files">files »</a></param>
|
||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messageMediaEmpty">messageMediaEmpty</a></returns>
|
||||
public static Task<MessageMedia> Messages_UploadMedia(this Client client, InputPeer peer, InputMedia media)
|
||||
|
|
@ -2962,7 +2962,7 @@ namespace TL
|
|||
emoticon = emoticon,
|
||||
});
|
||||
|
||||
/// <summary>Get which users read a specific message: only available for groups and supergroups with less than <c>chat_read_mark_size_threshold</c> members, read receipts will be stored for <c>chat_read_mark_expire_period</c> seconds after the message was sent, see <a href="https://corefork.telegram.org/api/config#client-configuration">client configuration for more info »</a>. <para>See <a href="https://corefork.telegram.org/method/messages.getMessageReadParticipants"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getMessageReadParticipants#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get which users read a specific message: only available for groups and supergroups with less than <a href="https://corefork.telegram.org/api/config#chat-read-mark-size-threshold"><c>chat_read_mark_size_threshold</c> members</a>, read receipts will be stored for <a href="https://corefork.telegram.org/api/config#chat-read-mark-expire-period"><c>chat_read_mark_expire_period</c> seconds after the message was sent</a>, see <a href="https://corefork.telegram.org/api/config#client-configuration">client configuration for more info »</a>. <para>See <a href="https://corefork.telegram.org/method/messages.getMessageReadParticipants"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getMessageReadParticipants#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Dialog</param>
|
||||
/// <param name="msg_id">Message ID</param>
|
||||
public static Task<long[]> Messages_GetMessageReadParticipants(this Client client, InputPeer peer, int msg_id)
|
||||
|
|
@ -3104,7 +3104,7 @@ namespace TL
|
|||
hash = hash,
|
||||
});
|
||||
|
||||
/// <summary>Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using <a href="https://corefork.telegram.org/api/config#client-configuration">help.getAppConfig, <c>reactions_default</c> field</a>. <para>See <a href="https://corefork.telegram.org/method/messages.setDefaultReaction"/></para></summary>
|
||||
/// <summary>Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using <a href="https://corefork.telegram.org/api/config#reactions-default">help.getAppConfig, <c>reactions_default</c> field</a>. <para>See <a href="https://corefork.telegram.org/method/messages.setDefaultReaction"/></para></summary>
|
||||
/// <param name="reaction">New emoji reaction</param>
|
||||
public static Task<bool> Messages_SetDefaultReaction(this Client client, Reaction reaction)
|
||||
=> client.Invoke(new Messages_SetDefaultReaction
|
||||
|
|
@ -3298,15 +3298,15 @@ namespace TL
|
|||
good = good,
|
||||
});
|
||||
|
||||
/// <summary>Fetch info about custom emojis. <para>See <a href="https://corefork.telegram.org/method/messages.getCustomEmojiDocuments"/> [bots: ✓]</para></summary>
|
||||
/// <param name="document_id">Custom emoji IDs from a <see cref="MessageEntityCustomEmoji"/>.</param>
|
||||
/// <summary>Fetch <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji stickers »</a>. <para>See <a href="https://corefork.telegram.org/method/messages.getCustomEmojiDocuments"/> [bots: ✓]</para></summary>
|
||||
/// <param name="document_id"><a href="https://corefork.telegram.org/api/custom-emoji">Custom emoji</a> IDs from a <see cref="MessageEntityCustomEmoji"/>.</param>
|
||||
public static Task<DocumentBase[]> Messages_GetCustomEmojiDocuments(this Client client, long[] document_id)
|
||||
=> client.Invoke(new Messages_GetCustomEmojiDocuments
|
||||
{
|
||||
document_id = document_id,
|
||||
});
|
||||
|
||||
/// <summary>Gets the list of currently installed custom emoji stickersets. <para>See <a href="https://corefork.telegram.org/method/messages.getEmojiStickers"/></para></summary>
|
||||
/// <summary>Gets the list of currently installed <a href="https://corefork.telegram.org/api/custom-emoji">custom emoji stickersets</a>. <para>See <a href="https://corefork.telegram.org/method/messages.getEmojiStickers"/></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.allStickersNotModified">messages.allStickersNotModified</a></returns>
|
||||
public static Task<Messages_AllStickers> Messages_GetEmojiStickers(this Client client, long hash = default)
|
||||
|
|
@ -3362,7 +3362,7 @@ namespace TL
|
|||
{
|
||||
});
|
||||
|
||||
/// <summary>Get new <a href="https://corefork.telegram.org/api/updates">updates</a>. <para>See <a href="https://corefork.telegram.org/method/updates.getDifference"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/updates.getDifference#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get new <a href="https://corefork.telegram.org/api/updates">updates</a>. <para>See <a href="https://corefork.telegram.org/method/updates.getDifference"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403,500 (<a href="https://corefork.telegram.org/method/updates.getDifference#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="pts">PTS, see <a href="https://corefork.telegram.org/api/updates">updates</a>.</param>
|
||||
/// <param name="pts_total_limit">For fast updating: if provided and <c>pts + pts_total_limit < remote pts</c>, <see cref="Updates_DifferenceTooLong"/> will be returned.<br/>Simply tells the server to not return the difference if it is bigger than <c>pts_total_limit</c><br/>If the remote pts is too big (> ~4000000), this field will default to 1000000</param>
|
||||
/// <param name="date">date, see <a href="https://corefork.telegram.org/api/updates">updates</a>.</param>
|
||||
|
|
@ -3588,8 +3588,8 @@ namespace TL
|
|||
{
|
||||
});
|
||||
|
||||
/// <summary>Get recently used <c>t.me</c> links <para>See <a href="https://corefork.telegram.org/method/help.getRecentMeUrls"/></para></summary>
|
||||
/// <param name="referer">Referer</param>
|
||||
/// <summary>Get recently used <c>t.me</c> links. <para>See <a href="https://corefork.telegram.org/method/help.getRecentMeUrls"/></para></summary>
|
||||
/// <param name="referer">Referrer</param>
|
||||
public static Task<Help_RecentMeUrls> Help_GetRecentMeUrls(this Client client, string referer)
|
||||
=> client.Invoke(new Help_GetRecentMeUrls
|
||||
{
|
||||
|
|
@ -4326,7 +4326,7 @@ namespace TL
|
|||
purpose = purpose,
|
||||
});
|
||||
|
||||
/// <summary>Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase. <para>See <a href="https://corefork.telegram.org/method/payments.canPurchasePremium"/></para></summary>
|
||||
/// <summary>Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase, official apps only. <para>See <a href="https://corefork.telegram.org/method/payments.canPurchasePremium"/></para></summary>
|
||||
/// <param name="purpose">Payment purpose</param>
|
||||
public static Task<bool> Payments_CanPurchasePremium(this Client client, InputStorePaymentPurpose purpose)
|
||||
=> client.Invoke(new Payments_CanPurchasePremium
|
||||
|
|
@ -4340,7 +4340,7 @@ namespace TL
|
|||
/// <param name="videos">Whether this is a video stickerset</param>
|
||||
/// <param name="user_id">Stickerset owner</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 must end in <c>"_by_<bot_username>"</c>. <c><bot_username></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_<bot_username>"</c>. <c><bot_username></c> is case insensitive. 1-64 characters.</param>
|
||||
/// <param name="thumb">Thumbnail</param>
|
||||
/// <param name="stickers">Stickers</param>
|
||||
/// <param name="software">Used when <a href="https://corefork.telegram.org/import-stickers">importing stickers using the sticker import SDKs</a>, specifies the name of the software that created the stickers</param>
|
||||
|
|
@ -4686,7 +4686,7 @@ namespace TL
|
|||
peer = peer,
|
||||
});
|
||||
|
||||
/// <summary>Get an <a href="https://corefork.telegram.org/api/links#voice-chat-video-chat-livestream-links">invite link</a> for a group call or livestream <para>See <a href="https://corefork.telegram.org/method/phone.exportGroupCallInvite"/></para></summary>
|
||||
/// <summary>Get an <a href="https://corefork.telegram.org/api/links#voice-chat-video-chat-livestream-links">invite link</a> for a group call or livestream <para>See <a href="https://corefork.telegram.org/method/phone.exportGroupCallInvite"/></para> <para>Possible <see cref="RpcException"/> codes: 403 (<a href="https://corefork.telegram.org/method/phone.exportGroupCallInvite#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="can_self_unmute">For livestreams or muted group chats, if set, users that join using this link will be able to speak without explicitly requesting permission by (for example by raising their hand).</param>
|
||||
/// <param name="call">The group call</param>
|
||||
public static Task<Phone_ExportedGroupCallInvite> Phone_ExportGroupCallInvite(this Client client, InputGroupCall call, bool can_self_unmute = false)
|
||||
|
|
|
|||
Loading…
Reference in a new issue