mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
Add xmldoc for all public members
This commit is contained in:
parent
cf2072e830
commit
14e2437097
|
|
@ -184,7 +184,7 @@ var user = await client.LoginUserIfNeeded();
|
|||
Console.WriteLine($"We are logged-in as {user.username ?? user.first_name + " " + user.last_name}");
|
||||
```
|
||||
|
||||
# Change logging settings
|
||||
### Change logging settings
|
||||
Log to VS Output debugging pane in addition to default Console screen logging:
|
||||
```csharp
|
||||
WTelegram.Helpers.Log += (lvl, str) => System.Diagnostics.Debug.WriteLine(str);
|
||||
|
|
|
|||
119
src/Client.cs
119
src/Client.cs
|
|
@ -26,10 +26,15 @@ namespace WTelegram
|
|||
/// <remarks>See <see href="https://github.com/wiz0u/WTelegramClient/tree/master/Examples/Program_ListenUpdate.cs">Examples/Program_ListenUpdate.cs</see> for how to use this</remarks>
|
||||
public event Action<ITLObject> Update;
|
||||
public delegate Task<TcpClient> TcpFactory(string address, int port);
|
||||
public TcpFactory TcpHandler = DefaultTcpHandler; // return a connected TcpClient or throw an exception
|
||||
/// <summary>Used to create a TcpClient connected to the given address/port, or throw an exception on failure</summary>
|
||||
public TcpFactory TcpHandler = DefaultTcpHandler;
|
||||
/// <summary>Telegram configuration, obtained at connection time</summary>
|
||||
public Config TLConfig { get; private set; }
|
||||
public int MaxAutoReconnects { get; set; } = 5; // number of automatic reconnections on connection/reactor failure
|
||||
/// <summary>Number of automatic reconnections on connection/reactor failure</summary>
|
||||
public int MaxAutoReconnects { get; set; } = 5;
|
||||
/// <summary>Is this Client instance the main or a secondary DC session</summary>
|
||||
public bool IsMainDC => (_dcSession?.DataCenter?.id ?? 0) == _session.MainDC;
|
||||
/// <summary>Is this Client currently disconnected?</summary>
|
||||
public bool Disconnected => _tcpClient != null && !(_tcpClient.Client?.Connected ?? false);
|
||||
|
||||
private readonly Func<string, string> _config;
|
||||
|
|
@ -63,8 +68,8 @@ namespace WTelegram
|
|||
private readonly SHA256 _sha256Recv = SHA256.Create();
|
||||
#endif
|
||||
|
||||
/// <summary>Welcome to WTelegramClient! 😀</summary>
|
||||
/// <param name="configProvider">Config callback, is queried for: api_id, api_hash, session_pathname</param>
|
||||
/// <summary>Welcome to WTelegramClient! 🙂</summary>
|
||||
/// <param name="configProvider">Config callback, is queried for: <b>api_id</b>, <b>api_hash</b>, <b>session_pathname</b></param>
|
||||
public Client(Func<string, string> configProvider = null)
|
||||
{
|
||||
_config = configProvider ?? DefaultConfigOrAsk;
|
||||
|
|
@ -87,9 +92,10 @@ namespace WTelegram
|
|||
_dcSession = dcSession;
|
||||
}
|
||||
|
||||
public string Config(string config)
|
||||
internal string Config(string config)
|
||||
=> _config(config) ?? DefaultConfig(config) ?? throw new ApplicationException("You must provide a config value for " + config);
|
||||
|
||||
/// <summary>Default config values, used if your Config callback returns <see langword="null"/></summary>
|
||||
public static string DefaultConfig(string config) => config switch
|
||||
{
|
||||
"session_pathname" => Path.Combine(
|
||||
|
|
@ -111,7 +117,7 @@ namespace WTelegram
|
|||
_ => null // api_id api_hash phone_number... it's up to you to reply to these correctly
|
||||
};
|
||||
|
||||
public static string DefaultConfigOrAsk(string config) => DefaultConfig(config) ?? AskConfig(config);
|
||||
internal static string DefaultConfigOrAsk(string config) => DefaultConfig(config) ?? AskConfig(config);
|
||||
|
||||
private static string AskConfig(string config)
|
||||
{
|
||||
|
|
@ -120,8 +126,9 @@ namespace WTelegram
|
|||
return Console.ReadLine();
|
||||
}
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1822")]
|
||||
public void LoadPublicKey(string pem) => Encryption.LoadPublicKey(pem);
|
||||
/// <summary>Load a specific Telegram server public key</summary>
|
||||
/// <param name="pem">A string starting with <c>-----BEGIN RSA PUBLIC KEY-----</c></param>
|
||||
public static void LoadPublicKey(string pem) => Encryption.LoadPublicKey(pem);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
|
|
@ -129,7 +136,9 @@ namespace WTelegram
|
|||
Reset(false, IsMainDC);
|
||||
}
|
||||
|
||||
// disconnect and eventually forget user and disconnect other sessions
|
||||
/// <summary>Disconnect from Telegram <i>(shouldn't be needed in normal usage)</i></summary>
|
||||
/// <param name="resetUser">Forget about logged-in user</param>
|
||||
/// <param name="resetSessions">Disconnect secondary sessions with other DCs</param>
|
||||
public void Reset(bool resetUser = true, bool resetSessions = true)
|
||||
{
|
||||
try
|
||||
|
|
@ -158,8 +167,9 @@ namespace WTelegram
|
|||
_session.User = null;
|
||||
}
|
||||
|
||||
/// <summary>Establish connection to Telegram servers. Config callback is queried for: server_address</summary>
|
||||
/// <returns>Most methods of this class are async Task, so please use <see langword="await"/></returns>
|
||||
/// <summary>Establish connection to Telegram servers</summary>
|
||||
/// <remarks>Config callback is queried for: <b>server_address</b></remarks>
|
||||
/// <returns>Most methods of this class are async (Task), so please use <see langword="await"/></returns>
|
||||
public async Task ConnectAsync()
|
||||
{
|
||||
lock (this)
|
||||
|
|
@ -278,6 +288,11 @@ namespace WTelegram
|
|||
Helpers.Log(2, $"Connected to {(TLConfig.test_mode ? "Test DC" : "DC")} {TLConfig.this_dc}... {TLConfig.flags & (Config.Flags)~0xE00}");
|
||||
}
|
||||
|
||||
/// <summary>Obtain/create a Client for a secondary session on a specific Data Center</summary>
|
||||
/// <param name="dcId">ID of the Data Center</param>
|
||||
/// <param name="media_only">Session will be used only for transferring media</param>
|
||||
/// <param name="connect">Connect immediately</param>
|
||||
/// <returns></returns>
|
||||
public async Task<Client> GetClientForDC(int dcId, bool media_only = true, bool connect = true)
|
||||
{
|
||||
if (_dcSession.DataCenter?.id == dcId) return this;
|
||||
|
|
@ -724,6 +739,10 @@ namespace WTelegram
|
|||
return (X)await tcs.Task;
|
||||
}
|
||||
|
||||
/// <summary>Call the given TL method <i>(You shouldn't need to call this, usually)</i></summary>
|
||||
/// <typeparam name="X">Expected type of the returned object</typeparam>
|
||||
/// <param name="request">TL method serializer</param>
|
||||
/// <returns>Wait for the reply and return the resulting object, or throws an RpcException if an error was replied</returns>
|
||||
public async Task<X> CallAsync<X>(ITLFunction request)
|
||||
{
|
||||
retry:
|
||||
|
|
@ -900,11 +919,10 @@ namespace WTelegram
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Login as bot (if not already done).
|
||||
/// Config callback is queried for: bot_token
|
||||
/// </summary>
|
||||
/// <returns>Detail about the logged bot</returns>
|
||||
/// <summary>Login as a bot (if not already logged-in).</summary>
|
||||
/// <remarks>Config callback is queried for: <b>bot_token</b>
|
||||
/// <br/>Bots can only call API methods marked with [bots: ✓] in their documentation. </remarks>
|
||||
/// <returns>Detail about the logged-in bot</returns>
|
||||
public async Task<User> LoginBotIfNeeded()
|
||||
{
|
||||
await ConnectAsync();
|
||||
|
|
@ -940,13 +958,12 @@ namespace WTelegram
|
|||
return user;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Login as a user (if not already done).
|
||||
/// Config callback is queried for: phone_number, verification_code
|
||||
/// <br/>and eventually first_name, last_name (signup required), password (2FA auth), user_id (alt validation)
|
||||
/// </summary>
|
||||
/// <param name="settings"></param>
|
||||
/// <returns>Detail about the logged user</returns>
|
||||
/// <summary>Login as a user (if not already logged-in).
|
||||
/// <br/><i>(this method calls ConnectAsync if necessary)</i></summary>
|
||||
/// <remarks>Config callback is queried for: <b>phone_number</b>, <b>verification_code</b> <br/>and eventually <b>first_name</b>, <b>last_name</b> (signup required), <b>password</b> (2FA auth), <b>user_id</b> (alt validation)</remarks>
|
||||
/// <param name="settings">(optional) Preference for verification_code sending</param>
|
||||
/// <returns>Detail about the logged-in user
|
||||
/// <br/>Most methods of this class are async (Task), so please use <see langword="await"/> to get the result</returns>
|
||||
public async Task<User> LoginUserIfNeeded(CodeSettings settings = null)
|
||||
{
|
||||
await ConnectAsync();
|
||||
|
|
@ -1034,10 +1051,15 @@ namespace WTelegram
|
|||
|
||||
#region TL-Helpers
|
||||
/// <summary>Helper function to upload a file to Telegram</summary>
|
||||
/// <param name="pathname">Path to the file to upload</param>
|
||||
/// <returns>an <see cref="InputFile"/> or <see cref="InputFileBig"/> than can be used in various requests</returns>
|
||||
public Task<InputFileBase> UploadFileAsync(string pathname)
|
||||
=> UploadFileAsync(File.OpenRead(pathname), Path.GetFileName(pathname));
|
||||
|
||||
/// <summary>Helper function to upload a file to Telegram</summary>
|
||||
/// <param name="stream">Content of the file to upload</param>
|
||||
/// <param name="filename">Name of the file</param>
|
||||
/// <returns>an <see cref="InputFile"/> or <see cref="InputFileBig"/> than can be used in various requests</returns>
|
||||
public async Task<InputFileBase> UploadFileAsync(Stream stream, string filename)
|
||||
{
|
||||
using var md5 = MD5.Create();
|
||||
|
|
@ -1093,11 +1115,14 @@ namespace WTelegram
|
|||
}
|
||||
|
||||
/// <summary>Helper function to send a text or media message more easily</summary>
|
||||
/// <param name="peer">destination of message</param>
|
||||
/// <param name="caption">media caption</param>
|
||||
/// <param name="mediaFile">media file already uploaded to TG <i>(see <see cref="UploadFileAsync"/>)</i></param>
|
||||
/// <param name="peer">Destination of message (chat group, channel, user chat, etc..) </param>
|
||||
/// <param name="caption">Caption for the media <i>(in plain text)</i> or <see langword="null"/></param>
|
||||
/// <param name="mediaFile">Media file already uploaded to TG <i>(see <see cref="UploadFileAsync">UploadFileAsync</see>)</i></param>
|
||||
/// <param name="mimeType"><see langword="null"/> for automatic detection, <c>"photo"</c> for an inline photo, or a MIME type to send as a document</param>
|
||||
public Task<UpdatesBase> SendMediaAsync(InputPeer peer, string caption, InputFileBase mediaFile, string mimeType = null, int reply_to_msg_id = 0, MessageEntity[] entities = null, DateTime schedule_date = default, bool disable_preview = false)
|
||||
/// <param name="reply_to_msg_id">Your message is a reply to an existing message with this ID, in the same chat</param>
|
||||
/// <param name="entities">Text formatting entities for the caption. You can use <see cref="Markdown.MarkdownToEntities">MarkdownToEntities</see> to create these</param>
|
||||
/// <param name="schedule_date">UTC timestamp when the message should be sent</param>
|
||||
public Task<UpdatesBase> SendMediaAsync(InputPeer peer, string caption, InputFileBase mediaFile, string mimeType = null, int reply_to_msg_id = 0, MessageEntity[] entities = null, DateTime schedule_date = default)
|
||||
{
|
||||
var filename = mediaFile is InputFile iFile ? iFile.name : (mediaFile as InputFileBig)?.name;
|
||||
mimeType ??= Path.GetExtension(filename).ToLowerInvariant() switch
|
||||
|
|
@ -1112,18 +1137,22 @@ namespace WTelegram
|
|||
};
|
||||
if (mimeType == "photo")
|
||||
return SendMessageAsync(peer, caption, new InputMediaUploadedPhoto { file = mediaFile },
|
||||
reply_to_msg_id, entities, schedule_date, disable_preview);
|
||||
reply_to_msg_id, entities, schedule_date);
|
||||
var attributes = filename == null ? Array.Empty<DocumentAttribute>() : new[] { new DocumentAttributeFilename { file_name = filename } };
|
||||
return SendMessageAsync(peer, caption, new InputMediaUploadedDocument
|
||||
{
|
||||
file = mediaFile, mime_type = mimeType, attributes = attributes
|
||||
}, reply_to_msg_id, entities, schedule_date, disable_preview);
|
||||
}, reply_to_msg_id, entities, schedule_date);
|
||||
}
|
||||
|
||||
/// <summary>Helper function to send a text or media message</summary>
|
||||
/// <param name="peer">destination of message</param>
|
||||
/// <param name="text">text, or media caption</param>
|
||||
/// <param name="media">media specification or <see langword="null"/></param>
|
||||
/// <summary>Helper function to send a text or media message easily</summary>
|
||||
/// <param name="peer">Destination of message (chat group, channel, user chat, etc..) </param>
|
||||
/// <param name="text">The plain text of the message (or media caption)</param>
|
||||
/// <param name="media">An instance of <see cref="InputMedia">InputMedia</see>-derived class, or <see langword="null"/> if there is no associated media</param>
|
||||
/// <param name="reply_to_msg_id">Your message is a reply to an existing message with this ID, in the same chat</param>
|
||||
/// <param name="entities">Text formatting entities. You can use <see cref="Markdown.MarkdownToEntities">MarkdownToEntities</see> to create these</param>
|
||||
/// <param name="schedule_date">UTC timestamp when the message should be sent</param>
|
||||
/// <param name="disable_preview">Should website/media preview be shown or not, for URLs in your message</param>
|
||||
public Task<UpdatesBase> SendMessageAsync(InputPeer peer, string text, InputMedia media = null, int reply_to_msg_id = 0, MessageEntity[] entities = null, DateTime schedule_date = default, bool disable_preview = false)
|
||||
{
|
||||
if (media == null)
|
||||
|
|
@ -1134,9 +1163,11 @@ namespace WTelegram
|
|||
reply_to_msg_id: reply_to_msg_id, entities: entities, schedule_date: schedule_date);
|
||||
}
|
||||
|
||||
/// <summary>Download given photo from Telegram into the outputStream</summary>
|
||||
/// <param name="outputStream">stream to write to. This method does not close/dispose the stream</param>
|
||||
/// <param name="photoSize">if unspecified, will download the largest version of the photo</param>
|
||||
/// <summary>Download a photo from Telegram into the outputStream</summary>
|
||||
/// <param name="photo">The photo to download</param>
|
||||
/// <param name="outputStream">Stream to write the file content to. This method does not close/dispose the stream</param>
|
||||
/// <param name="photoSize">A specific size/version of the photo, or <see langword="null"/> to download the largest version of the photo</param>
|
||||
/// <returns>The file type of the photo</returns>
|
||||
public async Task<Storage_FileType> DownloadFileAsync(Photo photo, Stream outputStream, PhotoSizeBase photoSize = null)
|
||||
{
|
||||
photoSize ??= photo.LargestPhotoSize;
|
||||
|
|
@ -1144,10 +1175,11 @@ namespace WTelegram
|
|||
return await DownloadFileAsync(fileLocation, outputStream, photo.dc_id, photoSize.FileSize);
|
||||
}
|
||||
|
||||
/// <summary>Download given document from Telegram into the outputStream</summary>
|
||||
/// <param name="outputStream">stream to write to. This method does not close/dispose the stream</param>
|
||||
/// <param name="thumbSize">if specified, will download the given thumbnail instead of the full document</param>
|
||||
/// <returns>MIME type of the document or thumbnail</returns>
|
||||
/// <summary>Download a document from Telegram into the outputStream</summary>
|
||||
/// <param name="document">The document to download</param>
|
||||
/// <param name="outputStream">Stream to write the file content to. This method does not close/dispose the stream</param>
|
||||
/// <param name="thumbSize">A specific size/version of the document thumbnail to download, or <see langword="null"/> to download the document itself</param>
|
||||
/// <returns>MIME type of the document/thumbnail</returns>
|
||||
public async Task<string> DownloadFileAsync(Document document, Stream outputStream, PhotoSizeBase thumbSize = null)
|
||||
{
|
||||
var fileLocation = document.ToFileLocation(thumbSize);
|
||||
|
|
@ -1155,11 +1187,12 @@ namespace WTelegram
|
|||
return thumbSize == null ? document.mime_type : "image/" + fileType;
|
||||
}
|
||||
|
||||
/// <summary>Download given file from Telegram into the outputStream</summary>
|
||||
/// <summary>Download a file from Telegram into the outputStream</summary>
|
||||
/// <param name="fileLocation">Telegram file identifier, typically obtained with a .ToFileLocation() call</param>
|
||||
/// <param name="outputStream">stream to write to. This method does not close/dispose the stream</param>
|
||||
/// <param name="outputStream">Stream to write file content to. This method does not close/dispose the stream</param>
|
||||
/// <param name="fileDC">(optional) DC on which the file is stored</param>
|
||||
/// <param name="fileSize">(optional) expected file size</param>
|
||||
/// <param name="fileSize">(optional) Expected file size</param>
|
||||
/// <returns>The file type</returns>
|
||||
public async Task<Storage_FileType> DownloadFileAsync(InputFileLocationBase fileLocation, Stream outputStream, int fileDC = 0, int fileSize = 0)
|
||||
{
|
||||
Storage_FileType fileType = Storage_FileType.unknown;
|
||||
|
|
|
|||
|
|
@ -8,9 +8,10 @@ namespace WTelegram
|
|||
{
|
||||
public static class Helpers
|
||||
{
|
||||
// int argument is the LogLevel: https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.loglevel
|
||||
/// <summary>Callback for logging a line (string) with the associated <see href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.loglevel">severity level</see> (int)</summary>
|
||||
public static Action<int, string> Log { get; set; } = DefaultLogger;
|
||||
|
||||
/// <summary>For serializing indented Json with fields included</summary>
|
||||
public static readonly JsonSerializerOptions JsonOptions = new() { IncludeFields = true, WriteIndented = true };
|
||||
|
||||
public static V GetOrCreate<K, V>(this Dictionary<K, V> dictionary, K key) where V : new()
|
||||
|
|
@ -60,6 +61,7 @@ namespace WTelegram
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>Get a cryptographic random 64-bit value</summary>
|
||||
public static long RandomLong()
|
||||
{
|
||||
#if NETCOREAPP2_1_OR_GREATER
|
||||
|
|
@ -73,7 +75,7 @@ namespace WTelegram
|
|||
#endif
|
||||
}
|
||||
|
||||
public static byte[] ToBigEndian(ulong value) // variable-size buffer
|
||||
internal static byte[] ToBigEndian(ulong value) // variable-size buffer
|
||||
{
|
||||
int i;
|
||||
var temp = value;
|
||||
|
|
@ -83,7 +85,7 @@ namespace WTelegram
|
|||
return result;
|
||||
}
|
||||
|
||||
public static ulong FromBigEndian(byte[] bytes) // variable-size buffer
|
||||
internal static ulong FromBigEndian(byte[] bytes) // variable-size buffer
|
||||
{
|
||||
if (bytes.Length > 8) throw new ArgumentException($"expected bytes length <= 8 but got {bytes.Length}");
|
||||
ulong result = 0;
|
||||
|
|
@ -185,7 +187,8 @@ namespace WTelegram
|
|||
|
||||
public static int MillerRabinIterations { get; set; } = 64; // 64 is OpenSSL default for 2048-bits numbers
|
||||
private static readonly HashSet<BigInteger> GoodPrimes = new();
|
||||
// Miller–Rabin primality test
|
||||
/// <summary>Miller–Rabin primality test</summary>
|
||||
/// <param name="n">The number to check for primality</param>
|
||||
public static bool IsProbablePrime(this BigInteger n)
|
||||
{
|
||||
var n_minus_one = n - BigInteger.One;
|
||||
|
|
|
|||
|
|
@ -346,6 +346,10 @@ namespace TL
|
|||
|
||||
public static class Markdown
|
||||
{
|
||||
/// <summary>Converts a Markdown text into the (Entities + plain text) format used by Telegram messages</summary>
|
||||
/// <param name="client">Client, used for getting access_hash for <c>tg://user?id=</c> URLs</param>
|
||||
/// <param name="text">[in] The Markdown text<br/>[out] The same (plain) text, stripped of all Markdown notation</param>
|
||||
/// <returns>The array of formatting entities that you can pass (along with the plain text) to <see cref="WTelegram.Client.SendMessageAsync">SendMessageAsync</see> or <see cref="WTelegram.Client.SendMediaAsync">SendMediaAsync</see></returns>
|
||||
public static MessageEntity[] MarkdownToEntities(this WTelegram.Client client, ref string text)
|
||||
{
|
||||
var entities = new List<MessageEntity>();
|
||||
|
|
@ -426,7 +430,9 @@ namespace TL
|
|||
return entities.Count == 0 ? null : entities.ToArray();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>Insert backslashes in front of Markdown reserved characters</summary>
|
||||
/// <param name="text">The text to escape</param>
|
||||
/// <returns>The escaped text, ready to be used in <see cref="MarkdownToEntities">MarkdownToEntities</see> without problems</returns>
|
||||
public static string Escape(string text)
|
||||
{
|
||||
StringBuilder sb = null;
|
||||
|
|
|
|||
152
src/TL.Schema.cs
152
src/TL.Schema.cs
|
|
@ -12383,7 +12383,7 @@ namespace TL
|
|||
return "Auth_SignIn";
|
||||
});
|
||||
|
||||
/// <summary>Logs out the user. <para>See <a href="https://corefork.telegram.org/method/auth.logOut"/></para></summary>
|
||||
/// <summary>Logs out the user. <para>See <a href="https://corefork.telegram.org/method/auth.logOut"/> [bots: ✓]</para></summary>
|
||||
public static Task<bool> Auth_LogOut(this Client client)
|
||||
=> client.CallAsync<bool>(writer =>
|
||||
{
|
||||
|
|
@ -12399,7 +12399,7 @@ namespace TL
|
|||
return "Auth_ResetAuthorizations";
|
||||
});
|
||||
|
||||
/// <summary>Returns data for copying authorization to another data-centre. <para>See <a href="https://corefork.telegram.org/method/auth.exportAuthorization"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/auth.exportAuthorization#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Returns data for copying authorization to another data-centre. <para>See <a href="https://corefork.telegram.org/method/auth.exportAuthorization"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/auth.exportAuthorization#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="dc_id">Number of a target data-centre</param>
|
||||
public static Task<Auth_ExportedAuthorization> Auth_ExportAuthorization(this Client client, int dc_id)
|
||||
=> client.CallAsync<Auth_ExportedAuthorization>(writer =>
|
||||
|
|
@ -12409,7 +12409,7 @@ namespace TL
|
|||
return "Auth_ExportAuthorization";
|
||||
});
|
||||
|
||||
/// <summary>Logs in a user using a key transmitted from his native data-centre. <para>See <a href="https://corefork.telegram.org/method/auth.importAuthorization"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/auth.importAuthorization#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Logs in a user using a key transmitted from his native data-centre. <para>See <a href="https://corefork.telegram.org/method/auth.importAuthorization"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/auth.importAuthorization#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="id">User ID</param>
|
||||
/// <param name="bytes">Authorization key</param>
|
||||
public static Task<Auth_AuthorizationBase> Auth_ImportAuthorization(this Client client, long id, byte[] bytes)
|
||||
|
|
@ -12421,7 +12421,7 @@ namespace TL
|
|||
return "Auth_ImportAuthorization";
|
||||
});
|
||||
|
||||
/// <summary>Binds a temporary authorization key <c>temp_auth_key_id</c> to the permanent authorization key <c>perm_auth_key_id</c>. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one. <para>See <a href="https://corefork.telegram.org/method/auth.bindTempAuthKey"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/auth.bindTempAuthKey#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Binds a temporary authorization key <c>temp_auth_key_id</c> to the permanent authorization key <c>perm_auth_key_id</c>. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one. <para>See <a href="https://corefork.telegram.org/method/auth.bindTempAuthKey"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/auth.bindTempAuthKey#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="perm_auth_key_id">Permanent auth_key_id to bind to</param>
|
||||
/// <param name="nonce">Random long from <a href="#binding-message-contents">Binding message contents</a></param>
|
||||
/// <param name="expires_at">Unix timestamp to invalidate temporary key, see <a href="#binding-message-contents">Binding message contents</a></param>
|
||||
|
|
@ -12437,7 +12437,7 @@ namespace TL
|
|||
return "Auth_BindTempAuthKey";
|
||||
});
|
||||
|
||||
/// <summary>Login as a bot <para>See <a href="https://corefork.telegram.org/method/auth.importBotAuthorization"/></para> <para>Possible <see cref="RpcException"/> codes: 400,401 (<a href="https://corefork.telegram.org/method/auth.importBotAuthorization#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Login as a bot <para>See <a href="https://corefork.telegram.org/method/auth.importBotAuthorization"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,401 (<a href="https://corefork.telegram.org/method/auth.importBotAuthorization#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="api_id">Application identifier (see. <a href="https://corefork.telegram.org/myapp">App configuration</a>)</param>
|
||||
/// <param name="api_hash">Application identifier hash (see. <a href="https://corefork.telegram.org/myapp">App configuration</a>)</param>
|
||||
/// <param name="bot_auth_token">Bot token (see <a href="https://corefork.telegram.org/bots">bots</a>)</param>
|
||||
|
|
@ -12508,7 +12508,7 @@ namespace TL
|
|||
return "Auth_CancelCode";
|
||||
});
|
||||
|
||||
/// <summary>Delete all temporary authorization keys <strong>except for</strong> the ones specified <para>See <a href="https://corefork.telegram.org/method/auth.dropTempAuthKeys"/></para></summary>
|
||||
/// <summary>Delete all temporary authorization keys <strong>except for</strong> the ones specified <para>See <a href="https://corefork.telegram.org/method/auth.dropTempAuthKeys"/> [bots: ✓]</para></summary>
|
||||
/// <param name="except_auth_keys">The auth keys that <strong>shouldn't</strong> be dropped.</param>
|
||||
public static Task<bool> Auth_DropTempAuthKeys(this Client client, long[] except_auth_keys)
|
||||
=> client.CallAsync<bool>(writer =>
|
||||
|
|
@ -13387,7 +13387,7 @@ namespace TL
|
|||
return "Account_GetChatThemes";
|
||||
});
|
||||
|
||||
/// <summary>Returns basic user info according to their identifiers. <para>See <a href="https://corefork.telegram.org/method/users.getUsers"/></para> <para>Possible <see cref="RpcException"/> codes: 400,401 (<a href="https://corefork.telegram.org/method/users.getUsers#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Returns basic user info according to their identifiers. <para>See <a href="https://corefork.telegram.org/method/users.getUsers"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,401 (<a href="https://corefork.telegram.org/method/users.getUsers#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="id">List of user identifiers</param>
|
||||
public static Task<UserBase[]> Users_GetUsers(this Client client, InputUserBase[] id)
|
||||
=> client.CallAsync<UserBase[]>(writer =>
|
||||
|
|
@ -13397,7 +13397,7 @@ namespace TL
|
|||
return "Users_GetUsers";
|
||||
});
|
||||
|
||||
/// <summary>Returns extended user info by ID. <para>See <a href="https://corefork.telegram.org/method/users.getFullUser"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/users.getFullUser#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Returns extended user info by ID. <para>See <a href="https://corefork.telegram.org/method/users.getFullUser"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/users.getFullUser#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="id">User ID</param>
|
||||
public static Task<UserFull> Users_GetFullUser(this Client client, InputUserBase id)
|
||||
=> client.CallAsync<UserFull>(writer =>
|
||||
|
|
@ -13407,7 +13407,7 @@ namespace TL
|
|||
return "Users_GetFullUser";
|
||||
});
|
||||
|
||||
/// <summary>Notify the user that the sent <a href="https://corefork.telegram.org/passport">passport</a> data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change). <para>See <a href="https://corefork.telegram.org/method/users.setSecureValueErrors"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/users.setSecureValueErrors#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Notify the user that the sent <a href="https://corefork.telegram.org/passport">passport</a> data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change). <para>See <a href="https://corefork.telegram.org/method/users.setSecureValueErrors"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/users.setSecureValueErrors#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="id">The user</param>
|
||||
/// <param name="errors">Errors</param>
|
||||
public static Task<bool> Users_SetSecureValueErrors(this Client client, InputUserBase id, SecureValueErrorBase[] errors)
|
||||
|
|
@ -13522,7 +13522,7 @@ namespace TL
|
|||
return "Contacts_Search";
|
||||
});
|
||||
|
||||
/// <summary>Resolve a @username to get peer info <para>See <a href="https://corefork.telegram.org/method/contacts.resolveUsername"/></para> <para>Possible <see cref="RpcException"/> codes: 400,401 (<a href="https://corefork.telegram.org/method/contacts.resolveUsername#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Resolve a @username to get peer info <para>See <a href="https://corefork.telegram.org/method/contacts.resolveUsername"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,401 (<a href="https://corefork.telegram.org/method/contacts.resolveUsername#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="username">@username to resolve</param>
|
||||
public static Task<Contacts_ResolvedPeer> Contacts_ResolveUsername(this Client client, string username)
|
||||
=> client.CallAsync<Contacts_ResolvedPeer>(writer =>
|
||||
|
|
@ -13651,7 +13651,7 @@ namespace TL
|
|||
return "Contacts_BlockFromReplies";
|
||||
});
|
||||
|
||||
/// <summary>Returns the list of messages by their IDs. <para>See <a href="https://corefork.telegram.org/method/messages.getMessages"/></para></summary>
|
||||
/// <summary>Returns the list of messages by their IDs. <para>See <a href="https://corefork.telegram.org/method/messages.getMessages"/> [bots: ✓]</para></summary>
|
||||
/// <param name="id">Message ID list</param>
|
||||
public static Task<Messages_MessagesBase> Messages_GetMessages(this Client client, InputMessage[] id)
|
||||
=> client.CallAsync<Messages_MessagesBase>(writer =>
|
||||
|
|
@ -13776,7 +13776,7 @@ namespace TL
|
|||
return "Messages_DeleteHistory";
|
||||
});
|
||||
|
||||
/// <summary>Deletes messages by their identifiers. <para>See <a href="https://corefork.telegram.org/method/messages.deleteMessages"/></para> <para>Possible <see cref="RpcException"/> codes: 403 (<a href="https://corefork.telegram.org/method/messages.deleteMessages#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Deletes messages by their identifiers. <para>See <a href="https://corefork.telegram.org/method/messages.deleteMessages"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 403 (<a href="https://corefork.telegram.org/method/messages.deleteMessages#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="revoke">Whether to delete messages for all participants of the chat</param>
|
||||
/// <param name="id">Message ID list</param>
|
||||
public static Task<Messages_AffectedMessages> Messages_DeleteMessages(this Client client, int[] id, bool revoke = false)
|
||||
|
|
@ -13798,7 +13798,7 @@ namespace TL
|
|||
return "Messages_ReceivedMessages";
|
||||
});
|
||||
|
||||
/// <summary>Sends a current user typing event (see <see cref="SendMessageAction"/> for all event types) to a conversation partner or group. <para>See <a href="https://corefork.telegram.org/method/messages.setTyping"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.setTyping#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Sends a current user typing event (see <see cref="SendMessageAction"/> for all event types) to a conversation partner or group. <para>See <a href="https://corefork.telegram.org/method/messages.setTyping"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.setTyping#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Target user or group</param>
|
||||
/// <param name="top_msg_id"><a href="https://corefork.telegram.org/api/threads">Thread ID</a></param>
|
||||
/// <param name="action">Type of action<br/>Parameter added in <a href="https://corefork.telegram.org/api/layers#layer-17">Layer 17</a>.</param>
|
||||
|
|
@ -13814,7 +13814,7 @@ namespace TL
|
|||
return "Messages_SetTyping";
|
||||
});
|
||||
|
||||
/// <summary>Sends a message to a chat <para>See <a href="https://corefork.telegram.org/method/messages.sendMessage"/></para> <para>Possible <see cref="RpcException"/> codes: 400,401,403,420 (<a href="https://corefork.telegram.org/method/messages.sendMessage#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Sends a message to a chat <para>See <a href="https://corefork.telegram.org/method/messages.sendMessage"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,401,403,420 (<a href="https://corefork.telegram.org/method/messages.sendMessage#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="no_webpage">Set this flag to disable generation of the webpage preview</param>
|
||||
/// <param name="silent">Send this message silently (no notifications for the receivers)</param>
|
||||
/// <param name="background">Send this message as background message</param>
|
||||
|
|
@ -13845,7 +13845,7 @@ namespace TL
|
|||
return "Messages_SendMessage";
|
||||
});
|
||||
|
||||
/// <summary>Send a media <para>See <a href="https://corefork.telegram.org/method/messages.sendMedia"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403,420 (<a href="https://corefork.telegram.org/method/messages.sendMedia#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Send a media <para>See <a href="https://corefork.telegram.org/method/messages.sendMedia"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403,420 (<a href="https://corefork.telegram.org/method/messages.sendMedia#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="silent">Send message silently (no notification should be triggered)</param>
|
||||
/// <param name="background">Send message in background</param>
|
||||
/// <param name="clear_draft">Clear the draft</param>
|
||||
|
|
@ -13877,7 +13877,7 @@ namespace TL
|
|||
return "Messages_SendMedia";
|
||||
});
|
||||
|
||||
/// <summary>Forwards messages by their IDs. <para>See <a href="https://corefork.telegram.org/method/messages.forwardMessages"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403,420 (<a href="https://corefork.telegram.org/method/messages.forwardMessages#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Forwards messages by their IDs. <para>See <a href="https://corefork.telegram.org/method/messages.forwardMessages"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403,420 (<a href="https://corefork.telegram.org/method/messages.forwardMessages#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="silent">Whether to send messages silently (no notification will be triggered on the destination clients)</param>
|
||||
/// <param name="background">Whether to send the message in background</param>
|
||||
/// <param name="with_my_score">When forwarding games, whether to include your score in the game</param>
|
||||
|
|
@ -13938,7 +13938,7 @@ namespace TL
|
|||
return "Messages_Report";
|
||||
});
|
||||
|
||||
/// <summary>Returns chat basic info on their IDs. <para>See <a href="https://corefork.telegram.org/method/messages.getChats"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getChats#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Returns chat basic info on their IDs. <para>See <a href="https://corefork.telegram.org/method/messages.getChats"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getChats#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="id">List of chat IDs</param>
|
||||
public static Task<Messages_Chats> Messages_GetChats(this Client client, long[] id)
|
||||
=> client.CallAsync<Messages_Chats>(writer =>
|
||||
|
|
@ -13948,7 +13948,7 @@ namespace TL
|
|||
return "Messages_GetChats";
|
||||
});
|
||||
|
||||
/// <summary>Returns full chat info according to its ID. <para>See <a href="https://corefork.telegram.org/method/messages.getFullChat"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getFullChat#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Returns full chat info according to its ID. <para>See <a href="https://corefork.telegram.org/method/messages.getFullChat"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getFullChat#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="chat_id">Chat ID</param>
|
||||
public static Task<Messages_ChatFull> Messages_GetFullChat(this Client client, long chat_id)
|
||||
=> client.CallAsync<Messages_ChatFull>(writer =>
|
||||
|
|
@ -13958,7 +13958,7 @@ namespace TL
|
|||
return "Messages_GetFullChat";
|
||||
});
|
||||
|
||||
/// <summary>Chanages chat name and sends a service message on it. <para>See <a href="https://corefork.telegram.org/method/messages.editChatTitle"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.editChatTitle#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Chanages chat name and sends a service message on it. <para>See <a href="https://corefork.telegram.org/method/messages.editChatTitle"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.editChatTitle#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="chat_id">Chat ID</param>
|
||||
/// <param name="title">New chat name, different from the old one</param>
|
||||
public static Task<UpdatesBase> Messages_EditChatTitle(this Client client, long chat_id, string title)
|
||||
|
|
@ -13970,7 +13970,7 @@ namespace TL
|
|||
return "Messages_EditChatTitle";
|
||||
});
|
||||
|
||||
/// <summary>Changes chat photo and sends a service message on it <para>See <a href="https://corefork.telegram.org/method/messages.editChatPhoto"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.editChatPhoto#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Changes chat photo and sends a service message on it <para>See <a href="https://corefork.telegram.org/method/messages.editChatPhoto"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.editChatPhoto#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="chat_id">Chat ID</param>
|
||||
/// <param name="photo">Photo to be set</param>
|
||||
public static Task<UpdatesBase> Messages_EditChatPhoto(this Client client, long chat_id, InputChatPhotoBase photo)
|
||||
|
|
@ -13996,7 +13996,7 @@ namespace TL
|
|||
return "Messages_AddChatUser";
|
||||
});
|
||||
|
||||
/// <summary>Deletes a user from a chat and sends a service message on it. <para>See <a href="https://corefork.telegram.org/method/messages.deleteChatUser"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.deleteChatUser#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Deletes a user from a chat and sends a service message on it. <para>See <a href="https://corefork.telegram.org/method/messages.deleteChatUser"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.deleteChatUser#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="revoke_history">Remove the entire chat history of the specified user in this chat.</param>
|
||||
/// <param name="chat_id">Chat ID</param>
|
||||
/// <param name="user_id">User ID to be deleted</param>
|
||||
|
|
@ -14215,7 +14215,7 @@ namespace TL
|
|||
return "Messages_GetWebPagePreview";
|
||||
});
|
||||
|
||||
/// <summary>Export an invite link for a chat <para>See <a href="https://corefork.telegram.org/method/messages.exportChatInvite"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.exportChatInvite#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Export an invite link for a chat <para>See <a href="https://corefork.telegram.org/method/messages.exportChatInvite"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.exportChatInvite#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="legacy_revoke_permanent">Legacy flag, reproducing legacy behavior of this method: if set, revokes all previous links before creating a new one. Kept for bot API BC, should not be used by modern clients.</param>
|
||||
/// <param name="peer">Chat</param>
|
||||
/// <param name="expire_date">Expiration date</param>
|
||||
|
|
@ -14255,7 +14255,7 @@ namespace TL
|
|||
return "Messages_ImportChatInvite";
|
||||
});
|
||||
|
||||
/// <summary>Get info about a stickerset <para>See <a href="https://corefork.telegram.org/method/messages.getStickerSet"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getStickerSet#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get info about a stickerset <para>See <a href="https://corefork.telegram.org/method/messages.getStickerSet"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getStickerSet#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="stickerset">Stickerset</param>
|
||||
public static Task<Messages_StickerSet> Messages_GetStickerSet(this Client client, InputStickerSet stickerset)
|
||||
=> client.CallAsync<Messages_StickerSet>(writer =>
|
||||
|
|
@ -14381,7 +14381,7 @@ namespace TL
|
|||
return "Messages_ReorderStickerSets";
|
||||
});
|
||||
|
||||
/// <summary>Get a document by its SHA256 hash, mainly used for gifs <para>See <a href="https://corefork.telegram.org/method/messages.getDocumentByHash"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getDocumentByHash#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get a document by its SHA256 hash, mainly used for gifs <para>See <a href="https://corefork.telegram.org/method/messages.getDocumentByHash"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getDocumentByHash#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="sha256">SHA256 of file</param>
|
||||
/// <param name="size">Size of the file in bytes</param>
|
||||
/// <param name="mime_type">Mime type</param>
|
||||
|
|
@ -14438,7 +14438,7 @@ namespace TL
|
|||
return "Messages_GetInlineBotResults";
|
||||
});
|
||||
|
||||
/// <summary>Answer an inline query, for bots only <para>See <a href="https://corefork.telegram.org/method/messages.setInlineBotResults"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.setInlineBotResults#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Answer an inline query, for bots only <para>See <a href="https://corefork.telegram.org/method/messages.setInlineBotResults"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.setInlineBotResults#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="gallery">Set this flag if the results are composed of media files</param>
|
||||
/// <param name="private_">Set this flag if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query</param>
|
||||
/// <param name="query_id">Unique identifier for the answered query</param>
|
||||
|
|
@ -14500,7 +14500,7 @@ namespace TL
|
|||
return "Messages_GetMessageEditData";
|
||||
});
|
||||
|
||||
/// <summary>Edit message <para>See <a href="https://corefork.telegram.org/method/messages.editMessage"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<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 (<a href="https://corefork.telegram.org/method/messages.editMessage#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="no_webpage">Disable webpage preview</param>
|
||||
/// <param name="peer">Where was the message sent</param>
|
||||
/// <param name="id">ID of the message to edit</param>
|
||||
|
|
@ -14529,7 +14529,7 @@ namespace TL
|
|||
return "Messages_EditMessage";
|
||||
});
|
||||
|
||||
/// <summary>Edit an inline bot message <para>See <a href="https://corefork.telegram.org/method/messages.editInlineBotMessage"/></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="id">Sent inline message ID</param>
|
||||
/// <param name="message">Message</param>
|
||||
|
|
@ -14573,7 +14573,7 @@ namespace TL
|
|||
return "Messages_GetBotCallbackAnswer";
|
||||
});
|
||||
|
||||
/// <summary>Set the callback answer to a user button press (bots only) <para>See <a href="https://corefork.telegram.org/method/messages.setBotCallbackAnswer"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setBotCallbackAnswer#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Set the callback answer to a user button press (bots only) <para>See <a href="https://corefork.telegram.org/method/messages.setBotCallbackAnswer"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setBotCallbackAnswer#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="alert">Whether to show the message as a popup instead of a toast notification</param>
|
||||
/// <param name="query_id">Query ID</param>
|
||||
/// <param name="message">Popup to show</param>
|
||||
|
|
@ -14723,7 +14723,7 @@ namespace TL
|
|||
return "Messages_GetAttachedStickers";
|
||||
});
|
||||
|
||||
/// <summary>Use this method to set the score of the specified user in a game sent as a normal message (bots only). <para>See <a href="https://corefork.telegram.org/method/messages.setGameScore"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setGameScore#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Use this method to set the score of the specified user in a game sent as a normal message (bots only). <para>See <a href="https://corefork.telegram.org/method/messages.setGameScore"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setGameScore#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="edit_message">Set this flag if the game message should be automatically edited to include the current scoreboard</param>
|
||||
/// <param name="force">Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters</param>
|
||||
/// <param name="peer">Unique identifier of target chat</param>
|
||||
|
|
@ -14742,7 +14742,7 @@ namespace TL
|
|||
return "Messages_SetGameScore";
|
||||
});
|
||||
|
||||
/// <summary>Use this method to set the score of the specified user in a game sent as an inline message (bots only). <para>See <a href="https://corefork.telegram.org/method/messages.setInlineGameScore"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setInlineGameScore#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Use this method to set the score of the specified user in a game sent as an inline message (bots only). <para>See <a href="https://corefork.telegram.org/method/messages.setInlineGameScore"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setInlineGameScore#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="edit_message">Set this flag if the game message should be automatically edited to include the current scoreboard</param>
|
||||
/// <param name="force">Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters</param>
|
||||
/// <param name="id">ID of the inline message</param>
|
||||
|
|
@ -14759,7 +14759,7 @@ namespace TL
|
|||
return "Messages_SetInlineGameScore";
|
||||
});
|
||||
|
||||
/// <summary>Get highscores of a game <para>See <a href="https://corefork.telegram.org/method/messages.getGameHighScores"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getGameHighScores#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get highscores of a game <para>See <a href="https://corefork.telegram.org/method/messages.getGameHighScores"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getGameHighScores#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">Where was the game sent</param>
|
||||
/// <param name="id">ID of message with game media attachment</param>
|
||||
/// <param name="user_id">Get high scores made by a certain user</param>
|
||||
|
|
@ -14773,7 +14773,7 @@ namespace TL
|
|||
return "Messages_GetGameHighScores";
|
||||
});
|
||||
|
||||
/// <summary>Get highscores of a game sent using an inline bot <para>See <a href="https://corefork.telegram.org/method/messages.getInlineGameHighScores"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getInlineGameHighScores#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get highscores of a game sent using an inline bot <para>See <a href="https://corefork.telegram.org/method/messages.getInlineGameHighScores"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getInlineGameHighScores#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="id">ID of inline message</param>
|
||||
/// <param name="user_id">Get high scores of a certain user</param>
|
||||
public static Task<Messages_HighScores> Messages_GetInlineGameHighScores(this Client client, InputBotInlineMessageIDBase id, InputUserBase user_id)
|
||||
|
|
@ -14857,7 +14857,7 @@ namespace TL
|
|||
return "Messages_GetPinnedDialogs";
|
||||
});
|
||||
|
||||
/// <summary>If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an <see cref="UpdateBotShippingQuery"/> update. Use this method to reply to shipping queries. <para>See <a href="https://corefork.telegram.org/method/messages.setBotShippingResults"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setBotShippingResults#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an <see cref="UpdateBotShippingQuery"/> update. Use this method to reply to shipping queries. <para>See <a href="https://corefork.telegram.org/method/messages.setBotShippingResults"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setBotShippingResults#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="query_id">Unique identifier for the query to be answered</param>
|
||||
/// <param name="error">Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user.</param>
|
||||
/// <param name="shipping_options">A vector of available shipping options.</param>
|
||||
|
|
@ -14874,7 +14874,7 @@ namespace TL
|
|||
return "Messages_SetBotShippingResults";
|
||||
});
|
||||
|
||||
/// <summary>Once the user has confirmed their payment and shipping details, the bot receives an <see cref="UpdateBotPrecheckoutQuery"/> update.<br/>Use this method to respond to such pre-checkout queries.<br/><strong>Note</strong>: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent. <para>See <a href="https://corefork.telegram.org/method/messages.setBotPrecheckoutResults"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setBotPrecheckoutResults#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Once the user has confirmed their payment and shipping details, the bot receives an <see cref="UpdateBotPrecheckoutQuery"/> update.<br/>Use this method to respond to such pre-checkout queries.<br/><strong>Note</strong>: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent. <para>See <a href="https://corefork.telegram.org/method/messages.setBotPrecheckoutResults"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.setBotPrecheckoutResults#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="success">Set this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the <c>error</c> field, instead</param>
|
||||
/// <param name="query_id">Unique identifier for the query to be answered</param>
|
||||
/// <param name="error">Required if the <c>success</c> isn't set. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user.</param>
|
||||
|
|
@ -14889,7 +14889,7 @@ namespace TL
|
|||
return "Messages_SetBotPrecheckoutResults";
|
||||
});
|
||||
|
||||
/// <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"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.uploadMedia#possible-errors">details</a>)</para></summary>
|
||||
/// <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="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>
|
||||
|
|
@ -14983,7 +14983,7 @@ namespace TL
|
|||
return "Messages_GetRecentLocations";
|
||||
});
|
||||
|
||||
/// <summary>Send an <a href="https://corefork.telegram.org/api/files#albums-grouped-media">album or grouped media</a> <para>See <a href="https://corefork.telegram.org/method/messages.sendMultiMedia"/></para> <para>Possible <see cref="RpcException"/> codes: 400,420 (<a href="https://corefork.telegram.org/method/messages.sendMultiMedia#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Send an <a href="https://corefork.telegram.org/api/files#albums-grouped-media">album or grouped media</a> <para>See <a href="https://corefork.telegram.org/method/messages.sendMultiMedia"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,420 (<a href="https://corefork.telegram.org/method/messages.sendMultiMedia#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="silent">Whether to send the album silently (no notification triggered)</param>
|
||||
/// <param name="background">Send in background?</param>
|
||||
/// <param name="clear_draft">Whether to clear <a href="https://corefork.telegram.org/api/drafts">drafts</a></param>
|
||||
|
|
@ -15069,7 +15069,7 @@ namespace TL
|
|||
return "Messages_ClearAllDrafts";
|
||||
});
|
||||
|
||||
/// <summary>Pin a message <para>See <a href="https://corefork.telegram.org/method/messages.updatePinnedMessage"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.updatePinnedMessage#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Pin a message <para>See <a href="https://corefork.telegram.org/method/messages.updatePinnedMessage"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.updatePinnedMessage#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="silent">Pin the message silently, without triggering a notification</param>
|
||||
/// <param name="unpin">Whether the message should unpinned or pinned</param>
|
||||
/// <param name="pm_oneside">Whether the message should only be pinned on the local side of a one-to-one chat</param>
|
||||
|
|
@ -15121,7 +15121,7 @@ namespace TL
|
|||
return "Messages_GetOnlines";
|
||||
});
|
||||
|
||||
/// <summary>Edit the description of a <a href="https://corefork.telegram.org/api/channel">group/supergroup/channel</a>. <para>See <a href="https://corefork.telegram.org/method/messages.editChatAbout"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.editChatAbout#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Edit the description of a <a href="https://corefork.telegram.org/api/channel">group/supergroup/channel</a>. <para>See <a href="https://corefork.telegram.org/method/messages.editChatAbout"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.editChatAbout#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">The <a href="https://corefork.telegram.org/api/channel">group/supergroup/channel</a>.</param>
|
||||
/// <param name="about">The new description</param>
|
||||
public static Task<bool> Messages_EditChatAbout(this Client client, InputPeer peer, string about)
|
||||
|
|
@ -15133,7 +15133,7 @@ namespace TL
|
|||
return "Messages_EditChatAbout";
|
||||
});
|
||||
|
||||
/// <summary>Edit the default banned rights of a <a href="https://corefork.telegram.org/api/channel">channel/supergroup/group</a>. <para>See <a href="https://corefork.telegram.org/method/messages.editChatDefaultBannedRights"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.editChatDefaultBannedRights#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Edit the default banned rights of a <a href="https://corefork.telegram.org/api/channel">channel/supergroup/group</a>. <para>See <a href="https://corefork.telegram.org/method/messages.editChatDefaultBannedRights"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/messages.editChatDefaultBannedRights#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="peer">The peer</param>
|
||||
/// <param name="banned_rights">The new global rights</param>
|
||||
public static Task<UpdatesBase> Messages_EditChatDefaultBannedRights(this Client client, InputPeer peer, ChatBannedRights banned_rights)
|
||||
|
|
@ -15441,7 +15441,7 @@ namespace TL
|
|||
return "Messages_ReadDiscussion";
|
||||
});
|
||||
|
||||
/// <summary><a href="https://corefork.telegram.org/api/pin">Unpin</a> all pinned messages <para>See <a href="https://corefork.telegram.org/method/messages.unpinAllMessages"/></para></summary>
|
||||
/// <summary><a href="https://corefork.telegram.org/api/pin">Unpin</a> all pinned messages <para>See <a href="https://corefork.telegram.org/method/messages.unpinAllMessages"/> [bots: ✓]</para></summary>
|
||||
/// <param name="peer">Chat where to unpin</param>
|
||||
public static Task<Messages_AffectedHistory> Messages_UnpinAllMessages(this Client client, InputPeer peer)
|
||||
=> client.CallAsync<Messages_AffectedHistory>(writer =>
|
||||
|
|
@ -15558,7 +15558,7 @@ namespace TL
|
|||
return "Messages_GetExportedChatInvite";
|
||||
});
|
||||
|
||||
/// <summary>Edit an exported chat invite <para>See <a href="https://corefork.telegram.org/method/messages.editExportedChatInvite"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.editExportedChatInvite#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Edit an exported chat invite <para>See <a href="https://corefork.telegram.org/method/messages.editExportedChatInvite"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.editExportedChatInvite#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="revoked">Whether to revoke the chat invite</param>
|
||||
/// <param name="peer">Chat</param>
|
||||
/// <param name="link">Invite link</param>
|
||||
|
|
@ -15719,7 +15719,7 @@ namespace TL
|
|||
return "Messages_HideChatJoinRequest";
|
||||
});
|
||||
|
||||
/// <summary>Returns a current state of updates. <para>See <a href="https://corefork.telegram.org/method/updates.getState"/></para></summary>
|
||||
/// <summary>Returns a current state of updates. <para>See <a href="https://corefork.telegram.org/method/updates.getState"/> [bots: ✓]</para></summary>
|
||||
public static Task<Updates_State> Updates_GetState(this Client client)
|
||||
=> client.CallAsync<Updates_State>(writer =>
|
||||
{
|
||||
|
|
@ -15727,7 +15727,7 @@ namespace TL
|
|||
return "Updates_GetState";
|
||||
});
|
||||
|
||||
/// <summary>Get new <a href="https://corefork.telegram.org/api/updates">updates</a>. <para>See <a href="https://corefork.telegram.org/method/updates.getDifference"/></para> <para>Possible <see cref="RpcException"/> codes: 400,401,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,401,403 (<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>
|
||||
|
|
@ -15745,7 +15745,7 @@ namespace TL
|
|||
return "Updates_GetDifference";
|
||||
});
|
||||
|
||||
/// <summary>Returns the difference between the current state of updates of a certain channel and transmitted. <para>See <a href="https://corefork.telegram.org/method/updates.getChannelDifference"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/updates.getChannelDifference#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Returns the difference between the current state of updates of a certain channel and transmitted. <para>See <a href="https://corefork.telegram.org/method/updates.getChannelDifference"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/updates.getChannelDifference#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="force">Set to true to skip some possibly unneeded updates and reduce server-side load</param>
|
||||
/// <param name="channel">The channel</param>
|
||||
/// <param name="filter">Messsage filter</param>
|
||||
|
|
@ -15801,7 +15801,7 @@ namespace TL
|
|||
return "Photos_DeletePhotos";
|
||||
});
|
||||
|
||||
/// <summary>Returns the list of user photos. <para>See <a href="https://corefork.telegram.org/method/photos.getUserPhotos"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/photos.getUserPhotos#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Returns the list of user photos. <para>See <a href="https://corefork.telegram.org/method/photos.getUserPhotos"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/photos.getUserPhotos#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="user_id">User ID</param>
|
||||
/// <param name="offset">Number of list elements to be skipped</param>
|
||||
/// <param name="max_id">If a positive value was transferred, the method will return only photos with IDs less than the set one</param>
|
||||
|
|
@ -15817,7 +15817,7 @@ namespace TL
|
|||
return "Photos_GetUserPhotos";
|
||||
});
|
||||
|
||||
/// <summary>Saves a part of file for futher sending to one of the methods. <para>See <a href="https://corefork.telegram.org/method/upload.saveFilePart"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/upload.saveFilePart#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Saves a part of file for futher sending to one of the methods. <para>See <a href="https://corefork.telegram.org/method/upload.saveFilePart"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/upload.saveFilePart#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="file_id">Random file identifier created by the client</param>
|
||||
/// <param name="file_part">Numerical order of a part</param>
|
||||
/// <param name="bytes">Binary data, contend of a part</param>
|
||||
|
|
@ -15831,7 +15831,7 @@ namespace TL
|
|||
return "Upload_SaveFilePart";
|
||||
});
|
||||
|
||||
/// <summary>Returns content of a whole file or its part. <para>See <a href="https://corefork.telegram.org/method/upload.getFile"/></para> <para>Possible <see cref="RpcException"/> codes: 400,401,406 (<a href="https://corefork.telegram.org/method/upload.getFile#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Returns content of a whole file or its part. <para>See <a href="https://corefork.telegram.org/method/upload.getFile"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,401,406 (<a href="https://corefork.telegram.org/method/upload.getFile#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="precise">Disable some checks on limit and offset values, useful for example to stream videos by keyframes</param>
|
||||
/// <param name="cdn_supported">Whether the current client supports <a href="https://corefork.telegram.org/cdn">CDN downloads</a></param>
|
||||
/// <param name="location">File location</param>
|
||||
|
|
@ -15848,7 +15848,7 @@ namespace TL
|
|||
return "Upload_GetFile";
|
||||
});
|
||||
|
||||
/// <summary>Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. <para>See <a href="https://corefork.telegram.org/method/upload.saveBigFilePart"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/upload.saveBigFilePart#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. <para>See <a href="https://corefork.telegram.org/method/upload.saveBigFilePart"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/upload.saveBigFilePart#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="file_id">Random file id, created by the client</param>
|
||||
/// <param name="file_part">Part sequence number</param>
|
||||
/// <param name="file_total_parts">Total number of parts</param>
|
||||
|
|
@ -15892,7 +15892,7 @@ namespace TL
|
|||
return "Upload_GetCdnFile";
|
||||
});
|
||||
|
||||
/// <summary>Request a reupload of a certain file to a <a href="https://corefork.telegram.org/cdn">CDN DC</a>. <para>See <a href="https://corefork.telegram.org/method/upload.reuploadCdnFile"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/upload.reuploadCdnFile#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Request a reupload of a certain file to a <a href="https://corefork.telegram.org/cdn">CDN DC</a>. <para>See <a href="https://corefork.telegram.org/method/upload.reuploadCdnFile"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/upload.reuploadCdnFile#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="file_token">File token</param>
|
||||
/// <param name="request_token">Request token</param>
|
||||
public static Task<FileHash[]> Upload_ReuploadCdnFile(this Client client, byte[] file_token, byte[] request_token)
|
||||
|
|
@ -15904,7 +15904,7 @@ namespace TL
|
|||
return "Upload_ReuploadCdnFile";
|
||||
});
|
||||
|
||||
/// <summary>Get SHA256 hashes for verifying downloaded <a href="https://corefork.telegram.org/cdn">CDN</a> files <para>See <a href="https://corefork.telegram.org/method/upload.getCdnFileHashes"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/upload.getCdnFileHashes#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get SHA256 hashes for verifying downloaded <a href="https://corefork.telegram.org/cdn">CDN</a> files <para>See <a href="https://corefork.telegram.org/method/upload.getCdnFileHashes"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/upload.getCdnFileHashes#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="file_token">File</param>
|
||||
/// <param name="offset">Offset from which to start getting hashes</param>
|
||||
public static Task<FileHash[]> Upload_GetCdnFileHashes(this Client client, byte[] file_token, int offset)
|
||||
|
|
@ -15916,7 +15916,7 @@ namespace TL
|
|||
return "Upload_GetCdnFileHashes";
|
||||
});
|
||||
|
||||
/// <summary>Get SHA256 hashes for verifying downloaded files <para>See <a href="https://corefork.telegram.org/method/upload.getFileHashes"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/upload.getFileHashes#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get SHA256 hashes for verifying downloaded files <para>See <a href="https://corefork.telegram.org/method/upload.getFileHashes"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/upload.getFileHashes#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="location">File</param>
|
||||
/// <param name="offset">Offset from which to get file hashes</param>
|
||||
public static Task<FileHash[]> Upload_GetFileHashes(this Client client, InputFileLocationBase location, int offset)
|
||||
|
|
@ -15928,7 +15928,7 @@ namespace TL
|
|||
return "Upload_GetFileHashes";
|
||||
});
|
||||
|
||||
/// <summary>Returns current configuration, including data center configuration. <para>See <a href="https://corefork.telegram.org/method/help.getConfig"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/help.getConfig#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Returns current configuration, including data center configuration. <para>See <a href="https://corefork.telegram.org/method/help.getConfig"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/help.getConfig#possible-errors">details</a>)</para></summary>
|
||||
public static Task<Config> Help_GetConfig(this Client client) => client.CallAsync<Config>(Help_GetConfig);
|
||||
public static string Help_GetConfig(BinaryWriter writer)
|
||||
{
|
||||
|
|
@ -15981,7 +15981,7 @@ namespace TL
|
|||
return "Help_GetAppChangelog";
|
||||
});
|
||||
|
||||
/// <summary>Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only <para>See <a href="https://corefork.telegram.org/method/help.setBotUpdatesStatus"/></para></summary>
|
||||
/// <summary>Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only <para>See <a href="https://corefork.telegram.org/method/help.setBotUpdatesStatus"/> [bots: ✓]</para></summary>
|
||||
/// <param name="pending_updates_count">Number of pending updates</param>
|
||||
/// <param name="message">Error message, if present</param>
|
||||
public static Task<bool> Help_SetBotUpdatesStatus(this Client client, int pending_updates_count, string message)
|
||||
|
|
@ -15993,7 +15993,7 @@ namespace TL
|
|||
return "Help_SetBotUpdatesStatus";
|
||||
});
|
||||
|
||||
/// <summary>Get configuration for <a href="https://corefork.telegram.org/cdn">CDN</a> file downloads. <para>See <a href="https://corefork.telegram.org/method/help.getCdnConfig"/></para> <para>Possible <see cref="RpcException"/> codes: 401 (<a href="https://corefork.telegram.org/method/help.getCdnConfig#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get configuration for <a href="https://corefork.telegram.org/cdn">CDN</a> file downloads. <para>See <a href="https://corefork.telegram.org/method/help.getCdnConfig"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 401 (<a href="https://corefork.telegram.org/method/help.getCdnConfig#possible-errors">details</a>)</para></summary>
|
||||
public static Task<CdnConfig> Help_GetCdnConfig(this Client client)
|
||||
=> client.CallAsync<CdnConfig>(writer =>
|
||||
{
|
||||
|
|
@ -16158,7 +16158,7 @@ namespace TL
|
|||
return "Channels_ReadHistory";
|
||||
});
|
||||
|
||||
/// <summary>Delete messages in a <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a> <para>See <a href="https://corefork.telegram.org/method/channels.deleteMessages"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.deleteMessages#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Delete messages in a <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a> <para>See <a href="https://corefork.telegram.org/method/channels.deleteMessages"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.deleteMessages#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel"><a href="https://corefork.telegram.org/api/channel">Channel/supergroup</a></param>
|
||||
/// <param name="id">IDs of messages to delete</param>
|
||||
public static Task<Messages_AffectedMessages> Channels_DeleteMessages(this Client client, InputChannelBase channel, int[] id)
|
||||
|
|
@ -16196,7 +16196,7 @@ namespace TL
|
|||
return "Channels_ReportSpam";
|
||||
});
|
||||
|
||||
/// <summary>Get <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a> messages <para>See <a href="https://corefork.telegram.org/method/channels.getMessages"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.getMessages#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a> messages <para>See <a href="https://corefork.telegram.org/method/channels.getMessages"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.getMessages#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel">Channel/supergroup</param>
|
||||
/// <param name="id">IDs of messages to get</param>
|
||||
public static Task<Messages_MessagesBase> Channels_GetMessages(this Client client, InputChannelBase channel, InputMessage[] id)
|
||||
|
|
@ -16208,7 +16208,7 @@ namespace TL
|
|||
return "Channels_GetMessages";
|
||||
});
|
||||
|
||||
/// <summary>Get the participants of a <a href="https://corefork.telegram.org/api/channel">supergroup/channel</a> <para>See <a href="https://corefork.telegram.org/method/channels.getParticipants"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.getParticipants#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get the participants of a <a href="https://corefork.telegram.org/api/channel">supergroup/channel</a> <para>See <a href="https://corefork.telegram.org/method/channels.getParticipants"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.getParticipants#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel">Channel</param>
|
||||
/// <param name="filter">Which participant types to fetch</param>
|
||||
/// <param name="offset"><a href="https://corefork.telegram.org/api/offsets">Offset</a></param>
|
||||
|
|
@ -16227,7 +16227,7 @@ namespace TL
|
|||
return "Channels_GetParticipants";
|
||||
});
|
||||
|
||||
/// <summary>Get info about a <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a> participant <para>See <a href="https://corefork.telegram.org/method/channels.getParticipant"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.getParticipant#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get info about a <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a> participant <para>See <a href="https://corefork.telegram.org/method/channels.getParticipant"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.getParticipant#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel">Channel/supergroup</param>
|
||||
/// <param name="participant">Participant to get info about</param>
|
||||
public static Task<Channels_ChannelParticipant> Channels_GetParticipant(this Client client, InputChannelBase channel, InputPeer participant)
|
||||
|
|
@ -16239,7 +16239,7 @@ namespace TL
|
|||
return "Channels_GetParticipant";
|
||||
});
|
||||
|
||||
/// <summary>Get info about <a href="https://corefork.telegram.org/api/channel">channels/supergroups</a> <para>See <a href="https://corefork.telegram.org/method/channels.getChannels"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.getChannels#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get info about <a href="https://corefork.telegram.org/api/channel">channels/supergroups</a> <para>See <a href="https://corefork.telegram.org/method/channels.getChannels"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.getChannels#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="id">IDs of channels/supergroups to get info about</param>
|
||||
public static Task<Messages_Chats> Channels_GetChannels(this Client client, InputChannelBase[] id)
|
||||
=> client.CallAsync<Messages_Chats>(writer =>
|
||||
|
|
@ -16249,7 +16249,7 @@ namespace TL
|
|||
return "Channels_GetChannels";
|
||||
});
|
||||
|
||||
/// <summary>Get full info about a channel <para>See <a href="https://corefork.telegram.org/method/channels.getFullChannel"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.getFullChannel#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Get full info about a channel <para>See <a href="https://corefork.telegram.org/method/channels.getFullChannel"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.getFullChannel#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel">The channel to get info about</param>
|
||||
public static Task<Messages_ChatFull> Channels_GetFullChannel(this Client client, InputChannelBase channel)
|
||||
=> client.CallAsync<Messages_ChatFull>(writer =>
|
||||
|
|
@ -16281,7 +16281,7 @@ namespace TL
|
|||
return "Channels_CreateChannel";
|
||||
});
|
||||
|
||||
/// <summary>Modify the admin rights of a user in a <a href="https://corefork.telegram.org/api/channel">supergroup/channel</a>. <para>See <a href="https://corefork.telegram.org/method/channels.editAdmin"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403,406 (<a href="https://corefork.telegram.org/method/channels.editAdmin#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Modify the admin rights of a user in a <a href="https://corefork.telegram.org/api/channel">supergroup/channel</a>. <para>See <a href="https://corefork.telegram.org/method/channels.editAdmin"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403,406 (<a href="https://corefork.telegram.org/method/channels.editAdmin#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel">The <a href="https://corefork.telegram.org/api/channel">supergroup/channel</a>.</param>
|
||||
/// <param name="user_id">The ID of the user whose admin rights should be modified</param>
|
||||
/// <param name="admin_rights">The admin rights</param>
|
||||
|
|
@ -16297,7 +16297,7 @@ namespace TL
|
|||
return "Channels_EditAdmin";
|
||||
});
|
||||
|
||||
/// <summary>Edit the name of a <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a> <para>See <a href="https://corefork.telegram.org/method/channels.editTitle"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.editTitle#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Edit the name of a <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a> <para>See <a href="https://corefork.telegram.org/method/channels.editTitle"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.editTitle#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel">Channel/supergroup</param>
|
||||
/// <param name="title">New name</param>
|
||||
public static Task<UpdatesBase> Channels_EditTitle(this Client client, InputChannelBase channel, string title)
|
||||
|
|
@ -16309,7 +16309,7 @@ namespace TL
|
|||
return "Channels_EditTitle";
|
||||
});
|
||||
|
||||
/// <summary>Change the photo of a <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a> <para>See <a href="https://corefork.telegram.org/method/channels.editPhoto"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.editPhoto#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Change the photo of a <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a> <para>See <a href="https://corefork.telegram.org/method/channels.editPhoto"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.editPhoto#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel">Channel/supergroup whose photo should be edited</param>
|
||||
/// <param name="photo">New photo</param>
|
||||
public static Task<UpdatesBase> Channels_EditPhoto(this Client client, InputChannelBase channel, InputChatPhotoBase photo)
|
||||
|
|
@ -16355,7 +16355,7 @@ namespace TL
|
|||
return "Channels_JoinChannel";
|
||||
});
|
||||
|
||||
/// <summary>Leave a <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a> <para>See <a href="https://corefork.telegram.org/method/channels.leaveChannel"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.leaveChannel#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Leave a <a href="https://corefork.telegram.org/api/channel">channel/supergroup</a> <para>See <a href="https://corefork.telegram.org/method/channels.leaveChannel"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.leaveChannel#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel"><a href="https://corefork.telegram.org/api/channel">Channel/supergroup</a> to leave</param>
|
||||
public static Task<UpdatesBase> Channels_LeaveChannel(this Client client, InputChannelBase channel)
|
||||
=> client.CallAsync<UpdatesBase>(writer =>
|
||||
|
|
@ -16425,7 +16425,7 @@ namespace TL
|
|||
return "Channels_GetAdminedPublicChannels";
|
||||
});
|
||||
|
||||
/// <summary>Ban/unban/kick a user in a <a href="https://corefork.telegram.org/api/channel">supergroup/channel</a>. <para>See <a href="https://corefork.telegram.org/method/channels.editBanned"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.editBanned#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Ban/unban/kick a user in a <a href="https://corefork.telegram.org/api/channel">supergroup/channel</a>. <para>See <a href="https://corefork.telegram.org/method/channels.editBanned"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/channels.editBanned#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel">The <a href="https://corefork.telegram.org/api/channel">supergroup/channel</a>.</param>
|
||||
/// <param name="participant">Participant to ban</param>
|
||||
/// <param name="banned_rights">The banned rights</param>
|
||||
|
|
@ -16464,7 +16464,7 @@ namespace TL
|
|||
return "Channels_GetAdminLog";
|
||||
});
|
||||
|
||||
/// <summary>Associate a stickerset to the supergroup <para>See <a href="https://corefork.telegram.org/method/channels.setStickers"/></para> <para>Possible <see cref="RpcException"/> codes: 400,406 (<a href="https://corefork.telegram.org/method/channels.setStickers#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Associate a stickerset to the supergroup <para>See <a href="https://corefork.telegram.org/method/channels.setStickers"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400,406 (<a href="https://corefork.telegram.org/method/channels.setStickers#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="channel">Supergroup</param>
|
||||
/// <param name="stickerset">The stickerset to associate</param>
|
||||
public static Task<bool> Channels_SetStickers(this Client client, InputChannelBase channel, InputStickerSet stickerset)
|
||||
|
|
@ -16621,7 +16621,7 @@ namespace TL
|
|||
return "Channels_GetSponsoredMessages";
|
||||
});
|
||||
|
||||
/// <summary>Sends a custom request; for bots only <para>See <a href="https://corefork.telegram.org/method/bots.sendCustomRequest"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.sendCustomRequest#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Sends a custom request; for bots only <para>See <a href="https://corefork.telegram.org/method/bots.sendCustomRequest"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.sendCustomRequest#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="custom_method">The method name</param>
|
||||
/// <param name="params_">JSON-serialized method parameters</param>
|
||||
public static Task<DataJSON> Bots_SendCustomRequest(this Client client, string custom_method, DataJSON params_)
|
||||
|
|
@ -16633,7 +16633,7 @@ namespace TL
|
|||
return "Bots_SendCustomRequest";
|
||||
});
|
||||
|
||||
/// <summary>Answers a custom query; for bots only <para>See <a href="https://corefork.telegram.org/method/bots.answerWebhookJSONQuery"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.answerWebhookJSONQuery#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Answers a custom query; for bots only <para>See <a href="https://corefork.telegram.org/method/bots.answerWebhookJSONQuery"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.answerWebhookJSONQuery#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="query_id">Identifier of a custom query</param>
|
||||
/// <param name="data">JSON-serialized answer to the query</param>
|
||||
public static Task<bool> Bots_AnswerWebhookJSONQuery(this Client client, long query_id, DataJSON data)
|
||||
|
|
@ -16645,7 +16645,7 @@ namespace TL
|
|||
return "Bots_AnswerWebhookJSONQuery";
|
||||
});
|
||||
|
||||
/// <summary>Set bot command list <para>See <a href="https://corefork.telegram.org/method/bots.setBotCommands"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.setBotCommands#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Set bot command list <para>See <a href="https://corefork.telegram.org/method/bots.setBotCommands"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.setBotCommands#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="scope">Command scope</param>
|
||||
/// <param name="lang_code">Language code</param>
|
||||
/// <param name="commands">Bot commands</param>
|
||||
|
|
@ -16659,7 +16659,7 @@ namespace TL
|
|||
return "Bots_SetBotCommands";
|
||||
});
|
||||
|
||||
/// <summary>Clear bot commands for the specified bot scope and language code <para>See <a href="https://corefork.telegram.org/method/bots.resetBotCommands"/></para></summary>
|
||||
/// <summary>Clear bot commands for the specified bot scope and language code <para>See <a href="https://corefork.telegram.org/method/bots.resetBotCommands"/> [bots: ✓]</para></summary>
|
||||
/// <param name="scope">Command scope</param>
|
||||
/// <param name="lang_code">Language code</param>
|
||||
public static Task<bool> Bots_ResetBotCommands(this Client client, BotCommandScope scope, string lang_code)
|
||||
|
|
@ -16671,7 +16671,7 @@ namespace TL
|
|||
return "Bots_ResetBotCommands";
|
||||
});
|
||||
|
||||
/// <summary>Obtain a list of bot commands for the specified bot scope and language code <para>See <a href="https://corefork.telegram.org/method/bots.getBotCommands"/></para></summary>
|
||||
/// <summary>Obtain a list of bot commands for the specified bot scope and language code <para>See <a href="https://corefork.telegram.org/method/bots.getBotCommands"/> [bots: ✓]</para></summary>
|
||||
/// <param name="scope">Command scope</param>
|
||||
/// <param name="lang_code">Language code</param>
|
||||
public static Task<BotCommand[]> Bots_GetBotCommands(this Client client, BotCommandScope scope, string lang_code)
|
||||
|
|
@ -16782,7 +16782,7 @@ namespace TL
|
|||
return "Payments_GetBankCardData";
|
||||
});
|
||||
|
||||
/// <summary>Create a stickerset, bots only. <para>See <a href="https://corefork.telegram.org/method/stickers.createStickerSet"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stickers.createStickerSet#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Create a stickerset, bots only. <para>See <a href="https://corefork.telegram.org/method/stickers.createStickerSet"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stickers.createStickerSet#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="masks">Whether this is a mask stickerset</param>
|
||||
/// <param name="animated">Whether this is an animated stickerset</param>
|
||||
/// <param name="user_id">Stickerset owner</param>
|
||||
|
|
@ -16807,7 +16807,7 @@ namespace TL
|
|||
return "Stickers_CreateStickerSet";
|
||||
});
|
||||
|
||||
/// <summary>Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot. <para>See <a href="https://corefork.telegram.org/method/stickers.removeStickerFromSet"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stickers.removeStickerFromSet#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot. <para>See <a href="https://corefork.telegram.org/method/stickers.removeStickerFromSet"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stickers.removeStickerFromSet#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="sticker">The sticker to remove</param>
|
||||
public static Task<Messages_StickerSet> Stickers_RemoveStickerFromSet(this Client client, InputDocument sticker)
|
||||
=> client.CallAsync<Messages_StickerSet>(writer =>
|
||||
|
|
@ -16817,7 +16817,7 @@ namespace TL
|
|||
return "Stickers_RemoveStickerFromSet";
|
||||
});
|
||||
|
||||
/// <summary>Changes the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot <para>See <a href="https://corefork.telegram.org/method/stickers.changeStickerPosition"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stickers.changeStickerPosition#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Changes the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot <para>See <a href="https://corefork.telegram.org/method/stickers.changeStickerPosition"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stickers.changeStickerPosition#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="sticker">The sticker</param>
|
||||
/// <param name="position">The new position of the sticker, zero-based</param>
|
||||
public static Task<Messages_StickerSet> Stickers_ChangeStickerPosition(this Client client, InputDocument sticker, int position)
|
||||
|
|
@ -16829,7 +16829,7 @@ namespace TL
|
|||
return "Stickers_ChangeStickerPosition";
|
||||
});
|
||||
|
||||
/// <summary>Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot. <para>See <a href="https://corefork.telegram.org/method/stickers.addStickerToSet"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stickers.addStickerToSet#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot. <para>See <a href="https://corefork.telegram.org/method/stickers.addStickerToSet"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stickers.addStickerToSet#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="stickerset">The stickerset</param>
|
||||
/// <param name="sticker">The sticker</param>
|
||||
public static Task<Messages_StickerSet> Stickers_AddStickerToSet(this Client client, InputStickerSet stickerset, InputStickerSetItem sticker)
|
||||
|
|
@ -16841,7 +16841,7 @@ namespace TL
|
|||
return "Stickers_AddStickerToSet";
|
||||
});
|
||||
|
||||
/// <summary>Set stickerset thumbnail <para>See <a href="https://corefork.telegram.org/method/stickers.setStickerSetThumb"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stickers.setStickerSetThumb#possible-errors">details</a>)</para></summary>
|
||||
/// <summary>Set stickerset thumbnail <para>See <a href="https://corefork.telegram.org/method/stickers.setStickerSetThumb"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/stickers.setStickerSetThumb#possible-errors">details</a>)</para></summary>
|
||||
/// <param name="stickerset">Stickerset</param>
|
||||
/// <param name="thumb">Thumbnail</param>
|
||||
public static Task<Messages_StickerSet> Stickers_SetStickerSetThumb(this Client client, InputStickerSet stickerset, InputDocument thumb)
|
||||
|
|
|
|||
Loading…
Reference in a new issue