mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
updated Intellisense / doc
This commit is contained in:
parent
983c9a4c6b
commit
222d24c9a6
|
|
@ -26,7 +26,7 @@ More examples can also be found in the [Examples folder](Examples) and in answer
|
||||||
var resolved = await client.Contacts_ResolveUsername("MyEch0_Bot"); // username without the @
|
var resolved = await client.Contacts_ResolveUsername("MyEch0_Bot"); // username without the @
|
||||||
await client.SendMessageAsync(resolved, "/start");
|
await client.SendMessageAsync(resolved, "/start");
|
||||||
```
|
```
|
||||||
*Note: This also works if the @username points to a channel/group, but you must already have joined that channel before posting there.
|
*Note: This also works if the @username points to a channel/group, but you must already have joined that channel before sending a message to it.
|
||||||
If the username is invalid/unused, the API call raises an exception.*
|
If the username is invalid/unused, the API call raises an exception.*
|
||||||
|
|
||||||
<a name="msg-by-phone"></a>
|
<a name="msg-by-phone"></a>
|
||||||
|
|
@ -210,7 +210,7 @@ for (int offset = 0; ;)
|
||||||
```
|
```
|
||||||
|
|
||||||
For big Channel/Group, Telegram servers might limit the number of members you can obtain with the normal above method.
|
For big Channel/Group, Telegram servers might limit the number of members you can obtain with the normal above method.
|
||||||
In this case, you can use this helper method, but it can take several minutes to complete:
|
In this case, you can use the following helper method, but it can take several minutes to complete:
|
||||||
```csharp
|
```csharp
|
||||||
var chats = await client.Messages_GetAllChats();
|
var chats = await client.Messages_GetAllChats();
|
||||||
var channel = (Channel)chats.chats[1234567890]; // the channel we want
|
var channel = (Channel)chats.chats[1234567890]; // the channel we want
|
||||||
|
|
@ -233,7 +233,7 @@ To use them, you need to extract the `HASH` part from the URL and then you can u
|
||||||
```csharp
|
```csharp
|
||||||
var chatInvite = await client.Messages_CheckChatInvite("HASH"); // optional: get information before joining
|
var chatInvite = await client.Messages_CheckChatInvite("HASH"); // optional: get information before joining
|
||||||
await client.Messages_ImportChatInvite("HASH"); // join the channel/group
|
await client.Messages_ImportChatInvite("HASH"); // join the channel/group
|
||||||
// Note: This works also with invite links of public channel/group
|
// Note: This works also with hash invite links of public channel/group
|
||||||
```
|
```
|
||||||
|
|
||||||
<a name="add-members"></a>
|
<a name="add-members"></a>
|
||||||
|
|
@ -319,7 +319,7 @@ Your event handler implementation can either return `Task.CompletedTask` or be a
|
||||||
See [Examples/Program_ListenUpdates.cs](Examples/Program_ListenUpdates.cs).
|
See [Examples/Program_ListenUpdates.cs](Examples/Program_ListenUpdates.cs).
|
||||||
|
|
||||||
<a name="monitor-msg"></a>
|
<a name="monitor-msg"></a>
|
||||||
### Monitor new messages being posted in chats
|
### Monitor new messages being posted in chats in real-time
|
||||||
|
|
||||||
You have to handle `client.OnUpdate` events containing an `UpdateNewMessage`.
|
You have to handle `client.OnUpdate` events containing an `UpdateNewMessage`.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using TL;
|
using TL;
|
||||||
|
|
||||||
// This is an example userbot designed to run on a free Heroku account with a free PostgreSQL database for session storage
|
// This is an example userbot designed to run on a Heroku account with a PostgreSQL database for session storage
|
||||||
// This userbot simply answer "Pong" when someone sends him a "Ping" private message (or in Saved Messages)
|
// This userbot simply answer "Pong" when someone sends him a "Ping" private message (or in Saved Messages)
|
||||||
// To use/install/deploy this userbot, follow the steps at the end of this file
|
// To use/install/deploy this userbot, follow the steps at the end of this file
|
||||||
// When run locally, close the window or type ALT-F4 to exit cleanly and save session (similar to Heroku SIGTERM)
|
// When run locally, close the window or type ALT-F4 to exit cleanly and save session (similar to Heroku SIGTERM)
|
||||||
|
|
@ -126,8 +126,8 @@ namespace WTelegramClientTest
|
||||||
|
|
||||||
/******************************************************************************************************************************
|
/******************************************************************************************************************************
|
||||||
HOW TO USE AND DEPLOY THIS EXAMPLE HEROKU USERBOT:
|
HOW TO USE AND DEPLOY THIS EXAMPLE HEROKU USERBOT:
|
||||||
- From your free Heroku.com account dashboard, create a new app (Free)
|
- From your Heroku.com account dashboard, create a new app
|
||||||
- Navigate to the app Resources and add the add-on "Heroku Postgres" (Hobby Dev - Free)
|
- Navigate to the app Resources and add the add-on "Heroku Postgres"
|
||||||
- Navigate to the app Settings, click Reveal Config Vars and save the Heroku git URL and the value of DATABASE_URL
|
- Navigate to the app Settings, click Reveal Config Vars and save the Heroku git URL and the value of DATABASE_URL
|
||||||
- Add a new var named "api_hash" with your api hash obtained from https://my.telegram.org/apps
|
- Add a new var named "api_hash" with your api hash obtained from https://my.telegram.org/apps
|
||||||
- Add a new var named "phone_number" with the phone_number of the user this userbot will manage
|
- Add a new var named "phone_number" with the phone_number of the user this userbot will manage
|
||||||
|
|
@ -146,9 +146,7 @@ HOW TO USE AND DEPLOY THIS EXAMPLE HEROKU USERBOT:
|
||||||
- Paste inside the line you copied, and replace the initial "web" with "worker:" (don't forget the colon)
|
- Paste inside the line you copied, and replace the initial "web" with "worker:" (don't forget the colon)
|
||||||
- Commit and push the Git changes to Heroku. Wait until the deployment is complete.
|
- Commit and push the Git changes to Heroku. Wait until the deployment is complete.
|
||||||
- Verify that the Resources "web" line has changed to "worker" and is enabled (use the pencil icon if necessary)
|
- Verify that the Resources "web" line has changed to "worker" and is enabled (use the pencil icon if necessary)
|
||||||
- Now your userbot should be running 24/7. Note however that a full month of usage is 31*24 = 744 dyno hours.
|
- Now your userbot should be running 24/7.
|
||||||
By default a free account gets 550 free dyno hours per month after which your app is stopped. If you register
|
|
||||||
a credit card with your account, 450 additional free dyno hours are offered at no charge, which should be enough for 24/7
|
|
||||||
- To prevent AUTH_KEY_DUPLICATED issues, set a SESSION_NAME env variable in your local VS project with a value like "PC"
|
- To prevent AUTH_KEY_DUPLICATED issues, set a SESSION_NAME env variable in your local VS project with a value like "PC"
|
||||||
DISCLAIMER: I'm not affiliated nor expert with Heroku, so if you have any problem with the above I might not be able to help
|
DISCLAIMER: I'm not affiliated nor expert with Heroku, so if you have any problem with the above I might not be able to help
|
||||||
******************************************************************************************************************************/
|
******************************************************************************************************************************/
|
||||||
|
|
|
||||||
5
FAQ.md
5
FAQ.md
|
|
@ -87,6 +87,7 @@ You can verify this is your issue by looking at [WTelegram logs](EXAMPLES.md#log
|
||||||
This wrong-server problem typically happens when you use WTelegramClient Github source project in your application in DEBUG builds.
|
This wrong-server problem typically happens when you use WTelegramClient Github source project in your application in DEBUG builds.
|
||||||
It is **not recommended** to use WTelegramClient in source code form.
|
It is **not recommended** to use WTelegramClient in source code form.
|
||||||
Instead, you should use the Nuget manager to **install package WTelegramClient** into your application.
|
Instead, you should use the Nuget manager to **install package WTelegramClient** into your application.
|
||||||
|
*And remember to delete the WTelegram.session file to force a new login on the correct server.*
|
||||||
|
|
||||||
If you use the Github source project in an old .NET Framework 4.x or .NET Core x.x application, you may also experience the following error
|
If you use the Github source project in an old .NET Framework 4.x or .NET Core x.x application, you may also experience the following error
|
||||||
> System.TypeInitializationException (FileNotFoundException for "System.Text.Json Version=5.0.0.0 ...")
|
> System.TypeInitializationException (FileNotFoundException for "System.Text.Json Version=5.0.0.0 ...")
|
||||||
|
|
@ -163,7 +164,7 @@ That object must be created with both fields `channel_id` and `access_hash` corr
|
||||||
There can be several reasons why `chats.chats[id]` raise an error:
|
There can be several reasons why `chats.chats[id]` raise an error:
|
||||||
- The user account you're currently logged-in as has not joined this particular chat.
|
- The user account you're currently logged-in as has not joined this particular chat.
|
||||||
API method [Messages_GetAllChats](https://corefork.telegram.org/method/messages.getAllChats) will only return those chat groups/channels the user is in, not all Telegram chat groups.
|
API method [Messages_GetAllChats](https://corefork.telegram.org/method/messages.getAllChats) will only return those chat groups/channels the user is in, not all Telegram chat groups.
|
||||||
- You're trying to use a Telegram.Bot (or TDLib) numerical ID, like -1001234567890
|
- You're trying to use a Bot API (or TDLib) numerical ID, like -1001234567890
|
||||||
Telegram Client API don't use these kind of IDs for chats. Remove the -100 prefix and try again with the rest (1234567890).
|
Telegram Client API don't use these kind of IDs for chats. Remove the -100 prefix and try again with the rest (1234567890).
|
||||||
- You're trying to use a user ID instead of a chat ID.
|
- You're trying to use a user ID instead of a chat ID.
|
||||||
Private messages with a user are not called "chats". See [Terminology in ReadMe](README.md#terminology).
|
Private messages with a user are not called "chats". See [Terminology in ReadMe](README.md#terminology).
|
||||||
|
|
@ -232,7 +233,7 @@ If you need your userbot to run 24/7, you would typically design your userbot as
|
||||||
and hosted online on any [VPS Hosting](https://www.google.com/search?q=vps+hosting) (Virtual Private Server).
|
and hosted online on any [VPS Hosting](https://www.google.com/search?q=vps+hosting) (Virtual Private Server).
|
||||||
Pure WebApp hosts might not be adequate as they will recycle (stop) your app if there is no incoming HTTP requests.
|
Pure WebApp hosts might not be adequate as they will recycle (stop) your app if there is no incoming HTTP requests.
|
||||||
|
|
||||||
There are many cheap VPS Hosting offers available, and some even have free tier, like Heroku:
|
There are many cheap VPS Hosting offers available, for example Heroku:
|
||||||
See [Examples/Program_Heroku.cs](Examples/Program_Heroku.cs) for such an implementation and the steps to host/deploy it.
|
See [Examples/Program_Heroku.cs](Examples/Program_Heroku.cs) for such an implementation and the steps to host/deploy it.
|
||||||
|
|
||||||
<a name="troubleshoot"></a>
|
<a name="troubleshoot"></a>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
[](https://corefork.telegram.org/methods)
|
[](https://corefork.telegram.org/methods)
|
||||||
[](https://dev.azure.com/wiz0u/WTelegramClient/_artifacts/feed/WTelegramClient/NuGet/WTelegramClient)
|
[](https://dev.azure.com/wiz0u/WTelegramClient/_artifacts/feed/WTelegramClient/NuGet/WTelegramClient)
|
||||||
[](https://t.me/WTelegramClient)
|
[](https://t.me/WTelegramClient)
|
||||||
[](http://wizou.fr/donate.html)
|
[](http://t.me/WTelegramBot?start=donate)
|
||||||
|
|
||||||
## _Telegram Client API library written 100% in C# and .NET Standard_
|
## _Telegram Client API library written 100% in C# and .NET Standard_
|
||||||
|
|
||||||
|
|
@ -36,7 +36,7 @@ If the verification succeeds but the phone number is unknown to Telegram, the us
|
||||||
If the account already exists and has enabled two-step verification (2FA) a **password** might be required.
|
If the account already exists and has enabled two-step verification (2FA) a **password** might be required.
|
||||||
All these login scenarios are handled automatically within the call to `LoginUserIfNeeded`.
|
All these login scenarios are handled automatically within the call to `LoginUserIfNeeded`.
|
||||||
|
|
||||||
And that's it, you now have access to the **[full range of Telegram Client APIs](https://corefork.telegram.org/methods)**.
|
After login, you now have access to the **[full range of Telegram Client APIs](https://corefork.telegram.org/methods)**.
|
||||||
All those API methods require `using TL;` namespace and are called with an underscore instead of a dot in the method name, like this: `await client.Method_Name(...)`
|
All those API methods require `using TL;` namespace and are called with an underscore instead of a dot in the method name, like this: `await client.Method_Name(...)`
|
||||||
|
|
||||||
# Saved session
|
# Saved session
|
||||||
|
|
@ -162,4 +162,4 @@ Please don't use this library for Spam or Scam. Respect Telegram [Terms of Servi
|
||||||
Developers feedback is welcome in the Telegram support group [@WTelegramClient](https://t.me/WTelegramClient)
|
Developers feedback is welcome in the Telegram support group [@WTelegramClient](https://t.me/WTelegramClient)
|
||||||
You can also check our [📖 Frequently Asked Questions](https://github.com/wiz0u/WTelegramClient/blob/master/FAQ.md) for more help and troubleshooting guide.
|
You can also check our [📖 Frequently Asked Questions](https://github.com/wiz0u/WTelegramClient/blob/master/FAQ.md) for more help and troubleshooting guide.
|
||||||
|
|
||||||
If you like this library, please [consider a donation](http://wizou.fr/donate.html).❤ This will help the project keep going.
|
If you like this library, please [consider a donation](http://t.me/WTelegramBot?start=donate).❤ This will help the project keep going.
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace WTelegram
|
||||||
public partial class Client : IDisposable
|
public partial class Client : IDisposable
|
||||||
{
|
{
|
||||||
/// <summary>This event will be called when unsollicited updates/messages are sent by Telegram servers</summary>
|
/// <summary>This event will be called when unsollicited updates/messages are sent by Telegram servers</summary>
|
||||||
/// <remarks>Make your handler <see langword="async"/>, or return <see cref="Task.CompletedTask"></see><br/>See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/Examples/Program_ListenUpdates.cs">Examples/Program_ListenUpdate.cs</see> for how to use this</remarks>
|
/// <remarks>Make your handler <see langword="async"/>, or return <see cref="Task.CompletedTask"/> or <see langword="null"/><br/>See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/Examples/Program_ListenUpdates.cs">Examples/Program_ListenUpdate.cs</see> for how to use this</remarks>
|
||||||
public event Func<IObject, Task> OnUpdate;
|
public event Func<IObject, Task> OnUpdate;
|
||||||
/// <summary>Used to create a TcpClient connected to the given address/port, or throw an exception on failure</summary>
|
/// <summary>Used to create a TcpClient connected to the given address/port, or throw an exception on failure</summary>
|
||||||
public TcpFactory TcpHandler { get; set; } = DefaultTcpHandler;
|
public TcpFactory TcpHandler { get; set; } = DefaultTcpHandler;
|
||||||
|
|
|
||||||
233
src/TL.Schema.cs
233
src/TL.Schema.cs
|
|
@ -370,7 +370,7 @@ namespace TL
|
||||||
public string provider;
|
public string provider;
|
||||||
/// <summary>JSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.</summary>
|
/// <summary>JSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.</summary>
|
||||||
public DataJSON provider_data;
|
public DataJSON provider_data;
|
||||||
/// <summary>Start parameter</summary>
|
/// <summary>Unique <a href="https://corefork.telegram.org/api/links#not-invoice">bot deep links start parameter</a>. If present, forwarded copies of the sent message will have a URL button with a <a href="https://corefork.telegram.org/api/links#bot-links">deep link</a> to the bot (instead of a Pay button), with the value used as the start parameter. If absent, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice.</summary>
|
||||||
[IfFlag(1)] public string start_param;
|
[IfFlag(1)] public string start_param;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
|
|
@ -775,9 +775,11 @@ namespace TL
|
||||||
apply_min_photo = 0x2000000,
|
apply_min_photo = 0x2000000,
|
||||||
/// <summary>If set, this user was reported by many users as a fake or scam user: be careful when interacting with them.</summary>
|
/// <summary>If set, this user was reported by many users as a fake or scam user: be careful when interacting with them.</summary>
|
||||||
fake = 0x4000000,
|
fake = 0x4000000,
|
||||||
|
/// <summary>Whether this bot offers an <a href="https://corefork.telegram.org/api/bots/attach">attachment menu web app</a></summary>
|
||||||
bot_attach_menu = 0x8000000,
|
bot_attach_menu = 0x8000000,
|
||||||
/// <summary>Whether this user is a Telegram Premium user</summary>
|
/// <summary>Whether this user is a Telegram Premium user</summary>
|
||||||
premium = 0x10000000,
|
premium = 0x10000000,
|
||||||
|
/// <summary>Whether we installed the <a href="https://corefork.telegram.org/api/bots/attach">attachment menu web app</a> offered by this bot</summary>
|
||||||
attach_menu_enabled = 0x20000000,
|
attach_menu_enabled = 0x20000000,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1953,7 +1955,9 @@ namespace TL
|
||||||
has_info = 0x1,
|
has_info = 0x1,
|
||||||
/// <summary>Field <see cref="shipping_option_id"/> has a value</summary>
|
/// <summary>Field <see cref="shipping_option_id"/> has a value</summary>
|
||||||
has_shipping_option_id = 0x2,
|
has_shipping_option_id = 0x2,
|
||||||
|
/// <summary>Whether this is the first payment of a recurring payment we just subscribed to</summary>
|
||||||
recurring_init = 0x4,
|
recurring_init = 0x4,
|
||||||
|
/// <summary>Whether this payment is part of a recurring payment</summary>
|
||||||
recurring_used = 0x8,
|
recurring_used = 0x8,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1967,15 +1971,16 @@ namespace TL
|
||||||
public string currency;
|
public string currency;
|
||||||
/// <summary>Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of <c>US$ 1.45</c> pass <c>amount = 145</c>. See the exp parameter in <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</summary>
|
/// <summary>Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of <c>US$ 1.45</c> pass <c>amount = 145</c>. See the exp parameter in <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</summary>
|
||||||
public long total_amount;
|
public long total_amount;
|
||||||
/// <summary>An invoice slug taken from a t.me/invoice/<slug> link or from the <a href="https://corefork.telegram.org/api/config#client-configuration"><c>premium_invoice_slug</c> app config parameter »</a></slug></summary>
|
/// <summary>An invoice slug taken from an <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a> or from the <a href="https://corefork.telegram.org/api/config#client-configuration"><c>premium_invoice_slug</c> app config parameter »</a></summary>
|
||||||
[IfFlag(0)] public string invoice_slug;
|
[IfFlag(0)] public string invoice_slug;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
/// <summary>Field <see cref="invoice_slug"/> has a value</summary>
|
/// <summary>Field <see cref="invoice_slug"/> has a value</summary>
|
||||||
has_invoice_slug = 0x1,
|
has_invoice_slug = 0x1,
|
||||||
/// <summary>Whether this is a recurring payment</summary>
|
/// <summary>Whether this is the first payment of a recurring payment we just subscribed to</summary>
|
||||||
recurring_init = 0x4,
|
recurring_init = 0x4,
|
||||||
|
/// <summary>Whether this payment is part of a recurring payment</summary>
|
||||||
recurring_used = 0x8,
|
recurring_used = 0x8,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2101,16 +2106,18 @@ namespace TL
|
||||||
/// <summary>A user was accepted into the group by an admin <para>See <a href="https://corefork.telegram.org/constructor/messageActionChatJoinedByRequest"/></para></summary>
|
/// <summary>A user was accepted into the group by an admin <para>See <a href="https://corefork.telegram.org/constructor/messageActionChatJoinedByRequest"/></para></summary>
|
||||||
[TLDef(0xEBBCA3CB)]
|
[TLDef(0xEBBCA3CB)]
|
||||||
public class MessageActionChatJoinedByRequest : MessageAction { }
|
public class MessageActionChatJoinedByRequest : MessageAction { }
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionWebViewDataSentMe"/></para></summary>
|
/// <summary>Data from an opened <a href="https://corefork.telegram.org/api/bots/webapps">reply keyboard bot web app</a> was relayed to the bot that owns it (bot side service message). <para>See <a href="https://corefork.telegram.org/constructor/messageActionWebViewDataSentMe"/></para></summary>
|
||||||
[TLDef(0x47DD8079, inheritBefore = true)]
|
[TLDef(0x47DD8079, inheritBefore = true)]
|
||||||
public class MessageActionWebViewDataSentMe : MessageActionWebViewDataSent
|
public class MessageActionWebViewDataSentMe : MessageActionWebViewDataSent
|
||||||
{
|
{
|
||||||
|
/// <summary>Relayed data.</summary>
|
||||||
public string data;
|
public string data;
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/messageActionWebViewDataSent"/></para></summary>
|
/// <summary>Data from an opened <a href="https://corefork.telegram.org/api/bots/webapps">reply keyboard bot web app</a> was relayed to the bot that owns it (user side service message). <para>See <a href="https://corefork.telegram.org/constructor/messageActionWebViewDataSent"/></para></summary>
|
||||||
[TLDef(0xB4C38CB5)]
|
[TLDef(0xB4C38CB5)]
|
||||||
public class MessageActionWebViewDataSent : MessageAction
|
public class MessageActionWebViewDataSent : MessageAction
|
||||||
{
|
{
|
||||||
|
/// <summary>Text of the <see cref="KeyboardButtonSimpleWebView"/> that was pressed to open the web app.</summary>
|
||||||
public string text;
|
public string text;
|
||||||
}
|
}
|
||||||
/// <summary>Info about a gifted Telegram Premium subscription <para>See <a href="https://corefork.telegram.org/constructor/messageActionGiftPremium"/></para></summary>
|
/// <summary>Info about a gifted Telegram Premium subscription <para>See <a href="https://corefork.telegram.org/constructor/messageActionGiftPremium"/></para></summary>
|
||||||
|
|
@ -2561,15 +2568,15 @@ namespace TL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Object contains info on a wallpaper. <para>Derived classes: <see cref="WallPaper"/>, <see cref="WallPaperNoFile"/></para> <para>See <a href="https://corefork.telegram.org/type/WallPaper"/></para></summary>
|
/// <summary>Object contains info on a <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a>. <para>Derived classes: <see cref="WallPaper"/>, <see cref="WallPaperNoFile"/></para> <para>See <a href="https://corefork.telegram.org/type/WallPaper"/></para></summary>
|
||||||
public abstract class WallPaperBase : IObject
|
public abstract class WallPaperBase : IObject
|
||||||
{
|
{
|
||||||
/// <summary>Identifier</summary>
|
/// <summary>Identifier</summary>
|
||||||
public abstract long ID { get; }
|
public abstract long ID { get; }
|
||||||
/// <summary>Wallpaper settings</summary>
|
/// <summary>Info on how to generate the wallpaper, according to <a href="https://corefork.telegram.org/api/wallpapers">these instructions »</a>.</summary>
|
||||||
public abstract WallPaperSettings Settings { get; }
|
public abstract WallPaperSettings Settings { get; }
|
||||||
}
|
}
|
||||||
/// <summary>Wallpaper settings. <para>See <a href="https://corefork.telegram.org/constructor/wallPaper"/></para></summary>
|
/// <summary>Represents a <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a> based on an image. <para>See <a href="https://corefork.telegram.org/constructor/wallPaper"/></para></summary>
|
||||||
[TLDef(0xA437C3ED)]
|
[TLDef(0xA437C3ED)]
|
||||||
public class WallPaper : WallPaperBase
|
public class WallPaper : WallPaperBase
|
||||||
{
|
{
|
||||||
|
|
@ -2579,33 +2586,33 @@ namespace TL
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
/// <summary>Access hash</summary>
|
/// <summary>Access hash</summary>
|
||||||
public long access_hash;
|
public long access_hash;
|
||||||
/// <summary>Unique wallpaper ID</summary>
|
/// <summary>Unique wallpaper ID, used when generating <a href="https://corefork.telegram.org/api/links#wallpaper-links">wallpaper links</a> or <a href="https://corefork.telegram.org/api/wallpapers">importing wallpaper links</a>.</summary>
|
||||||
public string slug;
|
public string slug;
|
||||||
/// <summary>The actual wallpaper</summary>
|
/// <summary>The actual wallpaper</summary>
|
||||||
public DocumentBase document;
|
public DocumentBase document;
|
||||||
/// <summary>Wallpaper settings</summary>
|
/// <summary>Info on how to generate the wallpaper, according to <a href="https://corefork.telegram.org/api/wallpapers">these instructions »</a>.</summary>
|
||||||
[IfFlag(2)] public WallPaperSettings settings;
|
[IfFlag(2)] public WallPaperSettings settings;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
/// <summary>Creator of the wallpaper</summary>
|
/// <summary>Whether we created this wallpaper</summary>
|
||||||
creator = 0x1,
|
creator = 0x1,
|
||||||
/// <summary>Whether this is the default wallpaper</summary>
|
/// <summary>Whether this is the default wallpaper</summary>
|
||||||
default_ = 0x2,
|
default_ = 0x2,
|
||||||
/// <summary>Field <see cref="settings"/> has a value</summary>
|
/// <summary>Field <see cref="settings"/> has a value</summary>
|
||||||
has_settings = 0x4,
|
has_settings = 0x4,
|
||||||
/// <summary>Pattern</summary>
|
/// <summary>Whether this is a <a href="https://corefork.telegram.org/api/wallpapers#pattern-wallpaper">pattern wallpaper »</a></summary>
|
||||||
pattern = 0x8,
|
pattern = 0x8,
|
||||||
/// <summary>Dark mode</summary>
|
/// <summary>Whether this wallpaper should be used in dark mode.</summary>
|
||||||
dark = 0x10,
|
dark = 0x10,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Identifier</summary>
|
/// <summary>Identifier</summary>
|
||||||
public override long ID => id;
|
public override long ID => id;
|
||||||
/// <summary>Wallpaper settings</summary>
|
/// <summary>Info on how to generate the wallpaper, according to <a href="https://corefork.telegram.org/api/wallpapers">these instructions »</a>.</summary>
|
||||||
public override WallPaperSettings Settings => settings;
|
public override WallPaperSettings Settings => settings;
|
||||||
}
|
}
|
||||||
/// <summary>Wallpaper with no file access hash, used for example when deleting (<c>unsave=true</c>) wallpapers using <a href="https://corefork.telegram.org/method/account.saveWallPaper">account.saveWallPaper</a>, specifying just the wallpaper ID.<br/>Also used for some default wallpapers which contain only colours. <para>See <a href="https://corefork.telegram.org/constructor/wallPaperNoFile"/></para></summary>
|
/// <summary>Represents a <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a> only based on colors/gradients. <para>See <a href="https://corefork.telegram.org/constructor/wallPaperNoFile"/></para></summary>
|
||||||
[TLDef(0xE0804116)]
|
[TLDef(0xE0804116)]
|
||||||
public class WallPaperNoFile : WallPaperBase
|
public class WallPaperNoFile : WallPaperBase
|
||||||
{
|
{
|
||||||
|
|
@ -2613,7 +2620,7 @@ namespace TL
|
||||||
public long id;
|
public long id;
|
||||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
/// <summary>Wallpaper settings</summary>
|
/// <summary>Info on how to generate the wallpaper.</summary>
|
||||||
[IfFlag(2)] public WallPaperSettings settings;
|
[IfFlag(2)] public WallPaperSettings settings;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
|
|
@ -2622,13 +2629,13 @@ namespace TL
|
||||||
default_ = 0x2,
|
default_ = 0x2,
|
||||||
/// <summary>Field <see cref="settings"/> has a value</summary>
|
/// <summary>Field <see cref="settings"/> has a value</summary>
|
||||||
has_settings = 0x4,
|
has_settings = 0x4,
|
||||||
/// <summary>Dark mode</summary>
|
/// <summary>Whether this wallpaper should be used in dark mode.</summary>
|
||||||
dark = 0x10,
|
dark = 0x10,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Wallpaper ID</summary>
|
/// <summary>Wallpaper ID</summary>
|
||||||
public override long ID => id;
|
public override long ID => id;
|
||||||
/// <summary>Wallpaper settings</summary>
|
/// <summary>Info on how to generate the wallpaper.</summary>
|
||||||
public override WallPaperSettings Settings => settings;
|
public override WallPaperSettings Settings => settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2687,10 +2694,11 @@ namespace TL
|
||||||
[IfFlag(15)] public string theme_emoticon;
|
[IfFlag(15)] public string theme_emoticon;
|
||||||
/// <summary>Anonymized text to be shown instead of the the user's name on forwarded messages</summary>
|
/// <summary>Anonymized text to be shown instead of the the user's name on forwarded messages</summary>
|
||||||
[IfFlag(16)] public string private_forward_name;
|
[IfFlag(16)] public string private_forward_name;
|
||||||
/// <summary>A suggested default set of administrator rights for the bot, to be shown when adding the bot as admin to a supergroup (only a suggestion, the admin right set may be modified by the user before adding the bot as admin)</summary>
|
/// <summary>A <a href="https://corefork.telegram.org/api/rights#suggested-bot-rights">suggested set of administrator rights</a> for the bot, to be shown when adding the bot as admin to a group, see <a href="https://corefork.telegram.org/api/rights#suggested-bot-rights">here for more info on how to handle them »</a>.</summary>
|
||||||
[IfFlag(17)] public ChatAdminRights bot_group_admin_rights;
|
[IfFlag(17)] public ChatAdminRights bot_group_admin_rights;
|
||||||
/// <summary>A suggested default set of administrator rights for the bot, to be shown when adding the bot as admin to a channel (only a suggestion, the admin right set may be modified by the user before adding the bot as admin)</summary>
|
/// <summary>A <a href="https://corefork.telegram.org/api/rights#suggested-bot-rights">suggested set of administrator rights</a> for the bot, to be shown when adding the bot as admin to a channel, see <a href="https://corefork.telegram.org/api/rights#suggested-bot-rights">here for more info on how to handle them »</a>.</summary>
|
||||||
[IfFlag(18)] public ChatAdminRights bot_broadcast_admin_rights;
|
[IfFlag(18)] public ChatAdminRights bot_broadcast_admin_rights;
|
||||||
|
/// <summary>Telegram Premium subscriptions gift options</summary>
|
||||||
[IfFlag(19)] public PremiumGiftOption[] premium_gifts;
|
[IfFlag(19)] public PremiumGiftOption[] premium_gifts;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
|
|
@ -4190,13 +4198,14 @@ namespace TL
|
||||||
/// <summary>Reactions</summary>
|
/// <summary>Reactions</summary>
|
||||||
public MessageReactions reactions;
|
public MessageReactions reactions;
|
||||||
}
|
}
|
||||||
/// <summary>The list of added <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web apps »</a> has changed, use <a href="https://corefork.telegram.org/method/messages.getAttachMenuBots">messages.getAttachMenuBots</a> to fetch the updated list. <para>See <a href="https://corefork.telegram.org/constructor/updateAttachMenuBots"/></para></summary>
|
/// <summary>The list of installed <a href="https://corefork.telegram.org/api/bots/attach">attachment menu entries »</a> has changed, use <a href="https://corefork.telegram.org/method/messages.getAttachMenuBots">messages.getAttachMenuBots</a> to fetch the updated list. <para>See <a href="https://corefork.telegram.org/constructor/updateAttachMenuBots"/></para></summary>
|
||||||
[TLDef(0x17B7A20B)]
|
[TLDef(0x17B7A20B)]
|
||||||
public class UpdateAttachMenuBots : Update { }
|
public class UpdateAttachMenuBots : Update { }
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateWebViewResultSent"/></para></summary>
|
/// <summary>Indicates to a bot that a webview was closed and an inline message was sent on behalf of the user using <a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage">messages.sendWebViewResultMessage</a> <para>See <a href="https://corefork.telegram.org/constructor/updateWebViewResultSent"/></para></summary>
|
||||||
[TLDef(0x1592B79D)]
|
[TLDef(0x1592B79D)]
|
||||||
public class UpdateWebViewResultSent : Update
|
public class UpdateWebViewResultSent : Update
|
||||||
{
|
{
|
||||||
|
/// <summary>Web app interaction ID</summary>
|
||||||
public long query_id;
|
public long query_id;
|
||||||
}
|
}
|
||||||
/// <summary>The menu button behavior for the specified bot has changed <para>See <a href="https://corefork.telegram.org/constructor/updateBotMenuButton"/></para></summary>
|
/// <summary>The menu button behavior for the specified bot has changed <para>See <a href="https://corefork.telegram.org/constructor/updateBotMenuButton"/></para></summary>
|
||||||
|
|
@ -4211,7 +4220,7 @@ namespace TL
|
||||||
/// <summary>The list of saved notification sounds has changed, use <a href="https://corefork.telegram.org/method/account.getSavedRingtones">account.getSavedRingtones</a> to fetch the new list. <para>See <a href="https://corefork.telegram.org/constructor/updateSavedRingtones"/></para></summary>
|
/// <summary>The list of saved notification sounds has changed, use <a href="https://corefork.telegram.org/method/account.getSavedRingtones">account.getSavedRingtones</a> to fetch the new list. <para>See <a href="https://corefork.telegram.org/constructor/updateSavedRingtones"/></para></summary>
|
||||||
[TLDef(0x74D8BE99)]
|
[TLDef(0x74D8BE99)]
|
||||||
public class UpdateSavedRingtones : Update { }
|
public class UpdateSavedRingtones : Update { }
|
||||||
/// <summary>A pending transcription initiated with <a href="https://corefork.telegram.org/method/messages.transcribeAudio">messages.transcribeAudio</a> was updated. <para>See <a href="https://corefork.telegram.org/constructor/updateTranscribedAudio"/></para></summary>
|
/// <summary>A pending <a href="https://corefork.telegram.org/api/transcribe">voice message transcription »</a> initiated with <a href="https://corefork.telegram.org/method/messages.transcribeAudio">messages.transcribeAudio</a> was updated. <para>See <a href="https://corefork.telegram.org/constructor/updateTranscribedAudio"/></para></summary>
|
||||||
[TLDef(0x0084CD5A)]
|
[TLDef(0x0084CD5A)]
|
||||||
public class UpdateTranscribedAudio : Update
|
public class UpdateTranscribedAudio : Update
|
||||||
{
|
{
|
||||||
|
|
@ -4232,7 +4241,7 @@ namespace TL
|
||||||
pending = 0x1,
|
pending = 0x1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/updateReadFeaturedEmojiStickers"/></para></summary>
|
/// <summary>Some featured emoji stickers were marked as read <para>See <a href="https://corefork.telegram.org/constructor/updateReadFeaturedEmojiStickers"/></para></summary>
|
||||||
[TLDef(0xFB4C496C)]
|
[TLDef(0xFB4C496C)]
|
||||||
public class UpdateReadFeaturedEmojiStickers : Update { }
|
public class UpdateReadFeaturedEmojiStickers : Update { }
|
||||||
|
|
||||||
|
|
@ -4605,7 +4614,7 @@ namespace TL
|
||||||
{
|
{
|
||||||
/// <summary>File type</summary>
|
/// <summary>File type</summary>
|
||||||
public Storage_FileType type;
|
public Storage_FileType type;
|
||||||
/// <summary>Modification type</summary>
|
/// <summary>Modification time</summary>
|
||||||
public int mtime;
|
public int mtime;
|
||||||
/// <summary>Binary data, file content</summary>
|
/// <summary>Binary data, file content</summary>
|
||||||
public byte[] bytes;
|
public byte[] bytes;
|
||||||
|
|
@ -4729,7 +4738,7 @@ namespace TL
|
||||||
public int call_connect_timeout_ms;
|
public int call_connect_timeout_ms;
|
||||||
/// <summary>If during a VoIP call a packet isn't received for the specified period of time, the call must be aborted</summary>
|
/// <summary>If during a VoIP call a packet isn't received for the specified period of time, the call must be aborted</summary>
|
||||||
public int call_packet_timeout_ms;
|
public int call_packet_timeout_ms;
|
||||||
/// <summary>The domain to use to parse in-app links.<br/>For example t.me indicates that t.me/username links should parsed to @username, t.me/addsticker/name should be parsed to the appropriate stickerset and so on...</summary>
|
/// <summary>The domain to use to parse <a href="https://corefork.telegram.org/api/links">deep links »</a>.</summary>
|
||||||
public string me_url_prefix;
|
public string me_url_prefix;
|
||||||
/// <summary>URL to use to auto-update the current app</summary>
|
/// <summary>URL to use to auto-update the current app</summary>
|
||||||
[IfFlag(7)] public string autoupdate_url_prefix;
|
[IfFlag(7)] public string autoupdate_url_prefix;
|
||||||
|
|
@ -4745,7 +4754,7 @@ namespace TL
|
||||||
public int caption_length_max;
|
public int caption_length_max;
|
||||||
/// <summary>Maximum length of messages (length in utf8 codepoints)</summary>
|
/// <summary>Maximum length of messages (length in utf8 codepoints)</summary>
|
||||||
public int message_length_max;
|
public int message_length_max;
|
||||||
/// <summary>DC ID to use to download <a href="https://corefork.telegram.org/api/files">webfiles</a></summary>
|
/// <summary>DC ID to use to download <a href="https://corefork.telegram.org/api/files#downloading-webfiles">webfiles</a></summary>
|
||||||
public int webfile_dc_id;
|
public int webfile_dc_id;
|
||||||
/// <summary>Suggested language code</summary>
|
/// <summary>Suggested language code</summary>
|
||||||
[IfFlag(2)] public string suggested_lang_code;
|
[IfFlag(2)] public string suggested_lang_code;
|
||||||
|
|
@ -5123,7 +5132,7 @@ namespace TL
|
||||||
public EncryptedFile file;
|
public EncryptedFile file;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Defines a video for subsequent interaction. <para>See <a href="https://corefork.telegram.org/constructor/inputDocument"/></para></summary>
|
/// <summary>Defines a document for subsequent interaction. <para>See <a href="https://corefork.telegram.org/constructor/inputDocument"/></para></summary>
|
||||||
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/inputDocumentEmpty">inputDocumentEmpty</a></remarks>
|
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/inputDocumentEmpty">inputDocumentEmpty</a></remarks>
|
||||||
[TLDef(0x1ABFB575)]
|
[TLDef(0x1ABFB575)]
|
||||||
public partial class InputDocument : IObject
|
public partial class InputDocument : IObject
|
||||||
|
|
@ -5322,19 +5331,19 @@ namespace TL
|
||||||
/// <summary>Privacy key <para>See <a href="https://corefork.telegram.org/type/InputPrivacyKey"/></para></summary>
|
/// <summary>Privacy key <para>See <a href="https://corefork.telegram.org/type/InputPrivacyKey"/></para></summary>
|
||||||
public enum InputPrivacyKey : uint
|
public enum InputPrivacyKey : uint
|
||||||
{
|
{
|
||||||
///<summary>Whether we can see the exact last online timestamp of the user</summary>
|
///<summary>Whether people will be able to see your exact last online timestamp</summary>
|
||||||
StatusTimestamp = 0x4F96CB18,
|
StatusTimestamp = 0x4F96CB18,
|
||||||
///<summary>Whether the user can be invited to chats</summary>
|
///<summary>Whether people will be able to invite you to chats</summary>
|
||||||
ChatInvite = 0xBDFB0426,
|
ChatInvite = 0xBDFB0426,
|
||||||
///<summary>Whether the user will accept phone calls</summary>
|
///<summary>Whether you will accept phone calls</summary>
|
||||||
PhoneCall = 0xFABADC5F,
|
PhoneCall = 0xFABADC5F,
|
||||||
///<summary>Whether the user allows P2P communication during VoIP calls</summary>
|
///<summary>Whether to allow P2P communication during VoIP calls</summary>
|
||||||
PhoneP2P = 0xDB9E70D2,
|
PhoneP2P = 0xDB9E70D2,
|
||||||
///<summary>Whether messages forwarded from this user will be <a href="https://telegram.org/blog/unsend-privacy-emoji#anonymous-forwarding">anonymous</a></summary>
|
///<summary>Whether messages forwarded from you will be <a href="https://telegram.org/blog/unsend-privacy-emoji#anonymous-forwarding">anonymous</a></summary>
|
||||||
Forwards = 0xA4DD4C08,
|
Forwards = 0xA4DD4C08,
|
||||||
///<summary>Whether people will be able to see the user's profile picture</summary>
|
///<summary>Whether people will be able to see your profile picture</summary>
|
||||||
ProfilePhoto = 0x5719BACC,
|
ProfilePhoto = 0x5719BACC,
|
||||||
///<summary>Whether people will be able to see the user's phone number</summary>
|
///<summary>Whether people will be able to see your phone number</summary>
|
||||||
PhoneNumber = 0x0352DAFA,
|
PhoneNumber = 0x0352DAFA,
|
||||||
///<summary>Whether people can add you to their contact list by your phone number</summary>
|
///<summary>Whether people can add you to their contact list by your phone number</summary>
|
||||||
AddedByPhone = 0xD1219BDD,
|
AddedByPhone = 0xD1219BDD,
|
||||||
|
|
@ -5345,13 +5354,13 @@ namespace TL
|
||||||
/// <summary>Privacy key <para>See <a href="https://corefork.telegram.org/type/PrivacyKey"/></para></summary>
|
/// <summary>Privacy key <para>See <a href="https://corefork.telegram.org/type/PrivacyKey"/></para></summary>
|
||||||
public enum PrivacyKey : uint
|
public enum PrivacyKey : uint
|
||||||
{
|
{
|
||||||
///<summary>Whether we can see the last online timestamp</summary>
|
///<summary>Whether we can see the last online timestamp of this user</summary>
|
||||||
StatusTimestamp = 0xBC2EAB30,
|
StatusTimestamp = 0xBC2EAB30,
|
||||||
///<summary>Whether the user can be invited to chats</summary>
|
///<summary>Whether the user can be invited to chats</summary>
|
||||||
ChatInvite = 0x500E6DFA,
|
ChatInvite = 0x500E6DFA,
|
||||||
///<summary>Whether the user accepts phone calls</summary>
|
///<summary>Whether the user accepts phone calls</summary>
|
||||||
PhoneCall = 0x3D662B7B,
|
PhoneCall = 0x3D662B7B,
|
||||||
///<summary>Whether P2P connections in phone calls are allowed</summary>
|
///<summary>Whether P2P connections in phone calls with this user are allowed</summary>
|
||||||
PhoneP2P = 0x39491CC8,
|
PhoneP2P = 0x39491CC8,
|
||||||
///<summary>Whether messages forwarded from the user will be <a href="https://telegram.org/blog/unsend-privacy-emoji#anonymous-forwarding">anonymously forwarded</a></summary>
|
///<summary>Whether messages forwarded from the user will be <a href="https://telegram.org/blog/unsend-privacy-emoji#anonymous-forwarding">anonymously forwarded</a></summary>
|
||||||
Forwards = 0x69EC56A3,
|
Forwards = 0x69EC56A3,
|
||||||
|
|
@ -5359,7 +5368,7 @@ namespace TL
|
||||||
ProfilePhoto = 0x96151FED,
|
ProfilePhoto = 0x96151FED,
|
||||||
///<summary>Whether the user allows us to see his phone number</summary>
|
///<summary>Whether the user allows us to see his phone number</summary>
|
||||||
PhoneNumber = 0xD19AE46D,
|
PhoneNumber = 0xD19AE46D,
|
||||||
///<summary>Whether people can add you to their contact list by your phone number</summary>
|
///<summary>Whether this user can be added to our contact list by their phone number</summary>
|
||||||
AddedByPhone = 0x42FFD42B,
|
AddedByPhone = 0x42FFD42B,
|
||||||
///<summary>Whether the user accepts voice messages</summary>
|
///<summary>Whether the user accepts voice messages</summary>
|
||||||
VoiceMessages = 0x0697F414,
|
VoiceMessages = 0x0697F414,
|
||||||
|
|
@ -5579,6 +5588,7 @@ namespace TL
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Whether this custom emoji can be sent by non-Premium users</summary>
|
||||||
free = 0x1,
|
free = 0x1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -5958,7 +5968,7 @@ namespace TL
|
||||||
has_title = 0x100,
|
has_title = 0x100,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/chatInvitePublicJoinRequests"/></para></summary>
|
/// <summary>Used in updates and in the channel log to indicate when a user is requesting to join or has joined a <a href="https://corefork.telegram.org/api/discussion#requiring-users-to-join-the-group">discussion group</a> <para>See <a href="https://corefork.telegram.org/constructor/chatInvitePublicJoinRequests"/></para></summary>
|
||||||
[TLDef(0xED107AB7)]
|
[TLDef(0xED107AB7)]
|
||||||
public class ChatInvitePublicJoinRequests : ExportedChatInvite { }
|
public class ChatInvitePublicJoinRequests : ExportedChatInvite { }
|
||||||
|
|
||||||
|
|
@ -6028,11 +6038,11 @@ namespace TL
|
||||||
/// <summary>⚠ <b>REQUIRED FIELD</b>. See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/FAQ.md#access-hash">how to obtain it</see><br/>Access hash</summary>
|
/// <summary>⚠ <b>REQUIRED FIELD</b>. See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/FAQ.md#access-hash">how to obtain it</see><br/>Access hash</summary>
|
||||||
public long access_hash;
|
public long access_hash;
|
||||||
}
|
}
|
||||||
/// <summary>Stickerset by short name, from <c>tg://addstickers?set=short_name</c> <para>See <a href="https://corefork.telegram.org/constructor/inputStickerSetShortName"/></para></summary>
|
/// <summary>Stickerset by short name, from a <a href="https://corefork.telegram.org/api/links#stickerset-links">stickerset deep link »</a> <para>See <a href="https://corefork.telegram.org/constructor/inputStickerSetShortName"/></para></summary>
|
||||||
[TLDef(0x861CC8A0)]
|
[TLDef(0x861CC8A0)]
|
||||||
public class InputStickerSetShortName : InputStickerSet
|
public class InputStickerSetShortName : InputStickerSet
|
||||||
{
|
{
|
||||||
/// <summary>From <c>tg://addstickers?set=short_name</c></summary>
|
/// <summary>Short name from a <a href="https://corefork.telegram.org/api/links#stickerset-links">stickerset deep link »</a></summary>
|
||||||
public string short_name;
|
public string short_name;
|
||||||
}
|
}
|
||||||
/// <summary>Animated emojis stickerset <para>See <a href="https://corefork.telegram.org/constructor/inputStickerSetAnimatedEmoji"/></para></summary>
|
/// <summary>Animated emojis stickerset <para>See <a href="https://corefork.telegram.org/constructor/inputStickerSetAnimatedEmoji"/></para></summary>
|
||||||
|
|
@ -6048,7 +6058,7 @@ namespace TL
|
||||||
/// <summary>Animated emoji reaction stickerset (contains animations to play when a user clicks on a given animated emoji) <para>See <a href="https://corefork.telegram.org/constructor/inputStickerSetAnimatedEmojiAnimations"/></para></summary>
|
/// <summary>Animated emoji reaction stickerset (contains animations to play when a user clicks on a given animated emoji) <para>See <a href="https://corefork.telegram.org/constructor/inputStickerSetAnimatedEmojiAnimations"/></para></summary>
|
||||||
[TLDef(0x0CDE3739)]
|
[TLDef(0x0CDE3739)]
|
||||||
public class InputStickerSetAnimatedEmojiAnimations : InputStickerSet { }
|
public class InputStickerSetAnimatedEmojiAnimations : InputStickerSet { }
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputStickerSetPremiumGifts"/></para></summary>
|
/// <summary>Stickers to show when receiving a gifted Telegram Premium subscription <para>See <a href="https://corefork.telegram.org/constructor/inputStickerSetPremiumGifts"/></para></summary>
|
||||||
[TLDef(0xC88B3B02)]
|
[TLDef(0xC88B3B02)]
|
||||||
public class InputStickerSetPremiumGifts : InputStickerSet { }
|
public class InputStickerSetPremiumGifts : InputStickerSet { }
|
||||||
|
|
||||||
|
|
@ -6066,7 +6076,7 @@ namespace TL
|
||||||
public long access_hash;
|
public long access_hash;
|
||||||
/// <summary>Title of stickerset</summary>
|
/// <summary>Title of stickerset</summary>
|
||||||
public string title;
|
public string title;
|
||||||
/// <summary>Short name of stickerset to use in <c>tg://addstickers?set=short_name</c></summary>
|
/// <summary>Short name of stickerset, used when sharing stickerset using <a href="https://corefork.telegram.org/api/links#stickerset-links">stickerset deep links</a>.</summary>
|
||||||
public string short_name;
|
public string short_name;
|
||||||
/// <summary>Stickerset thumbnail</summary>
|
/// <summary>Stickerset thumbnail</summary>
|
||||||
[IfFlag(4)] public PhotoSizeBase[] thumbs;
|
[IfFlag(4)] public PhotoSizeBase[] thumbs;
|
||||||
|
|
@ -6330,13 +6340,14 @@ namespace TL
|
||||||
/// <summary>User ID</summary>
|
/// <summary>User ID</summary>
|
||||||
public long user_id;
|
public long user_id;
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/keyboardButtonWebView"/></para></summary>
|
/// <summary>Button to open a <a href="https://corefork.telegram.org/api/bots/webapps">bot web app</a> using <a href="https://corefork.telegram.org/method/messages.requestWebView">messages.requestWebView</a>, sending over user information after user confirmation. <para>See <a href="https://corefork.telegram.org/constructor/keyboardButtonWebView"/></para></summary>
|
||||||
[TLDef(0x13767230, inheritBefore = true)]
|
[TLDef(0x13767230, inheritBefore = true)]
|
||||||
public class KeyboardButtonWebView : KeyboardButton
|
public class KeyboardButtonWebView : KeyboardButton
|
||||||
{
|
{
|
||||||
|
/// <summary><a href="https://corefork.telegram.org/api/bots/webapps">Web app url</a></summary>
|
||||||
public string url;
|
public string url;
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/keyboardButtonSimpleWebView"/></para></summary>
|
/// <summary>Button to open a <a href="https://corefork.telegram.org/api/bots/webapps">bot web app</a> using <a href="https://corefork.telegram.org/method/messages.requestSimpleWebView">messages.requestSimpleWebView</a>, without sending user information to the web app. <para>See <a href="https://corefork.telegram.org/constructor/keyboardButtonSimpleWebView"/></para></summary>
|
||||||
[TLDef(0xA0C0505C)]
|
[TLDef(0xA0C0505C)]
|
||||||
public class KeyboardButtonSimpleWebView : KeyboardButtonWebView
|
public class KeyboardButtonSimpleWebView : KeyboardButtonWebView
|
||||||
{
|
{
|
||||||
|
|
@ -7536,11 +7547,11 @@ namespace TL
|
||||||
/// <summary>Type of verification code that will be sent next if you call the resendCode method <para>See <a href="https://corefork.telegram.org/type/auth.CodeType"/></para></summary>
|
/// <summary>Type of verification code that will be sent next if you call the resendCode method <para>See <a href="https://corefork.telegram.org/type/auth.CodeType"/></para></summary>
|
||||||
public enum Auth_CodeType : uint
|
public enum Auth_CodeType : uint
|
||||||
{
|
{
|
||||||
///<summary>Type of verification code that will be sent next if you call the resendCode method: SMS code</summary>
|
///<summary>The next time, the authentication code will be delivered via an immediately canceled incoming call.</summary>
|
||||||
Sms = 0x72A3158C,
|
Sms = 0x72A3158C,
|
||||||
///<summary>Type of verification code that will be sent next if you call the resendCode method: SMS code</summary>
|
///<summary>The next time, the authentication code is to be delivered via an outgoing phone call.</summary>
|
||||||
Call = 0x741CD3E3,
|
Call = 0x741CD3E3,
|
||||||
///<summary>Type of verification code that will be sent next if you call the resendCode method: SMS code</summary>
|
///<summary>The next time, the authentication code will be delivered via an immediately canceled incoming call.</summary>
|
||||||
FlashCall = 0x226CCEFB,
|
FlashCall = 0x226CCEFB,
|
||||||
///<summary>The next time, the authentication code will be delivered via an immediately canceled incoming call, handled manually by the user.</summary>
|
///<summary>The next time, the authentication code will be delivered via an immediately canceled incoming call, handled manually by the user.</summary>
|
||||||
MissedCall = 0xD61AD6EE,
|
MissedCall = 0xD61AD6EE,
|
||||||
|
|
@ -7872,13 +7883,13 @@ namespace TL
|
||||||
public StickerSetCoveredBase[] sets;
|
public StickerSetCoveredBase[] sets;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Stickerset, with a specific sticker as preview <para>Derived classes: <see cref="StickerSetCovered"/>, <see cref="StickerSetMultiCovered"/>, <see cref="StickerSetFullCovered"/></para> <para>See <a href="https://corefork.telegram.org/type/StickerSetCovered"/></para></summary>
|
/// <summary>Stickerset preview <para>Derived classes: <see cref="StickerSetCovered"/>, <see cref="StickerSetMultiCovered"/>, <see cref="StickerSetFullCovered"/></para> <para>See <a href="https://corefork.telegram.org/type/StickerSetCovered"/></para></summary>
|
||||||
public abstract class StickerSetCoveredBase : IObject
|
public abstract class StickerSetCoveredBase : IObject
|
||||||
{
|
{
|
||||||
/// <summary>Stickerset</summary>
|
/// <summary>Stickerset</summary>
|
||||||
public abstract StickerSet Set { get; }
|
public abstract StickerSet Set { get; }
|
||||||
}
|
}
|
||||||
/// <summary>Stickerset, with a specific sticker as preview <para>See <a href="https://corefork.telegram.org/constructor/stickerSetCovered"/></para></summary>
|
/// <summary>Stickerset with a single sticker as preview <para>See <a href="https://corefork.telegram.org/constructor/stickerSetCovered"/></para></summary>
|
||||||
[TLDef(0x6410A5D2)]
|
[TLDef(0x6410A5D2)]
|
||||||
public class StickerSetCovered : StickerSetCoveredBase
|
public class StickerSetCovered : StickerSetCoveredBase
|
||||||
{
|
{
|
||||||
|
|
@ -7890,7 +7901,7 @@ namespace TL
|
||||||
/// <summary>Stickerset</summary>
|
/// <summary>Stickerset</summary>
|
||||||
public override StickerSet Set => set;
|
public override StickerSet Set => set;
|
||||||
}
|
}
|
||||||
/// <summary>Stickerset, with a specific set of stickers as preview <para>See <a href="https://corefork.telegram.org/constructor/stickerSetMultiCovered"/></para></summary>
|
/// <summary>Stickerset, with multiple stickers as preview <para>See <a href="https://corefork.telegram.org/constructor/stickerSetMultiCovered"/></para></summary>
|
||||||
[TLDef(0x3407E51B)]
|
[TLDef(0x3407E51B)]
|
||||||
public class StickerSetMultiCovered : StickerSetCoveredBase
|
public class StickerSetMultiCovered : StickerSetCoveredBase
|
||||||
{
|
{
|
||||||
|
|
@ -7902,14 +7913,18 @@ namespace TL
|
||||||
/// <summary>Stickerset</summary>
|
/// <summary>Stickerset</summary>
|
||||||
public override StickerSet Set => set;
|
public override StickerSet Set => set;
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/stickerSetFullCovered"/></para></summary>
|
/// <summary>Stickerset preview with all stickers of the stickerset included.<br/>Currently used only for custom emoji stickersets, to avoid a further call to <a href="https://corefork.telegram.org/method/messages.getStickerSet">messages.getStickerSet</a>. <para>See <a href="https://corefork.telegram.org/constructor/stickerSetFullCovered"/></para></summary>
|
||||||
[TLDef(0x1AED5EE5)]
|
[TLDef(0x1AED5EE5)]
|
||||||
public class StickerSetFullCovered : StickerSetCoveredBase
|
public class StickerSetFullCovered : StickerSetCoveredBase
|
||||||
{
|
{
|
||||||
|
/// <summary>Stickerset</summary>
|
||||||
public StickerSet set;
|
public StickerSet set;
|
||||||
|
/// <summary>Emoji information about every sticker in the stickerset</summary>
|
||||||
public StickerPack[] packs;
|
public StickerPack[] packs;
|
||||||
|
/// <summary>Stickers</summary>
|
||||||
public DocumentBase[] documents;
|
public DocumentBase[] documents;
|
||||||
|
|
||||||
|
/// <summary>Stickerset</summary>
|
||||||
public override StickerSet Set => set;
|
public override StickerSet Set => set;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -7989,7 +8004,7 @@ namespace TL
|
||||||
{
|
{
|
||||||
/// <summary>The bot that provides the game</summary>
|
/// <summary>The bot that provides the game</summary>
|
||||||
public InputUserBase bot_id;
|
public InputUserBase bot_id;
|
||||||
/// <summary>The game's short name</summary>
|
/// <summary>The game's short name, usually obtained from a <a href="https://corefork.telegram.org/api/links#game-links">game link »</a></summary>
|
||||||
public string short_name;
|
public string short_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -8673,13 +8688,13 @@ namespace TL
|
||||||
/// <summary>⚠ <b>REQUIRED FIELD</b>. See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/FAQ.md#access-hash">how to obtain it</see><br/>Access hash</summary>
|
/// <summary>⚠ <b>REQUIRED FIELD</b>. See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/FAQ.md#access-hash">how to obtain it</see><br/>Access hash</summary>
|
||||||
public long access_hash;
|
public long access_hash;
|
||||||
}
|
}
|
||||||
/// <summary>Geolocation <para>See <a href="https://corefork.telegram.org/constructor/inputWebFileGeoPointLocation"/></para></summary>
|
/// <summary>Used to download a server-generated image with the map preview from a <see cref="GeoPoint"/>, see the <a href="https://corefork.telegram.org/api/files#downloading-webfiles">webfile docs for more info »</a>. <para>See <a href="https://corefork.telegram.org/constructor/inputWebFileGeoPointLocation"/></para></summary>
|
||||||
[TLDef(0x9F2221C9)]
|
[TLDef(0x9F2221C9)]
|
||||||
public class InputWebFileGeoPointLocation : InputWebFileLocationBase
|
public class InputWebFileGeoPointLocation : InputWebFileLocationBase
|
||||||
{
|
{
|
||||||
/// <summary>Geolocation</summary>
|
/// <summary>Generated from the <c>lat</c>, <c>long</c> and <c>accuracy_radius</c> parameters of the <see cref="GeoPoint"/></summary>
|
||||||
public InputGeoPoint geo_point;
|
public InputGeoPoint geo_point;
|
||||||
/// <summary>⚠ <b>REQUIRED FIELD</b>. See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/FAQ.md#access-hash">how to obtain it</see><br/>Access hash</summary>
|
/// <summary>⚠ <b>REQUIRED FIELD</b>. See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/FAQ.md#access-hash">how to obtain it</see><br/>Access hash of the <see cref="GeoPoint"/></summary>
|
||||||
public long access_hash;
|
public long access_hash;
|
||||||
/// <summary>Map width in pixels before applying scale; 16-1024</summary>
|
/// <summary>Map width in pixels before applying scale; 16-1024</summary>
|
||||||
public int w;
|
public int w;
|
||||||
|
|
@ -8690,14 +8705,17 @@ namespace TL
|
||||||
/// <summary>Map scale; 1-3</summary>
|
/// <summary>Map scale; 1-3</summary>
|
||||||
public int scale;
|
public int scale;
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/inputWebFileAudioAlbumThumbLocation"/></para></summary>
|
/// <summary>Used to download an album cover for any music file using <a href="https://corefork.telegram.org/method/upload.getWebFile">upload.getWebFile</a>, see the <a href="https://corefork.telegram.org/api/files#downloading-webfiles">webfile docs for more info »</a>. <para>See <a href="https://corefork.telegram.org/constructor/inputWebFileAudioAlbumThumbLocation"/></para></summary>
|
||||||
[TLDef(0xF46FE924)]
|
[TLDef(0xF46FE924)]
|
||||||
public class InputWebFileAudioAlbumThumbLocation : InputWebFileLocationBase
|
public class InputWebFileAudioAlbumThumbLocation : InputWebFileLocationBase
|
||||||
{
|
{
|
||||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
/// <summary>The audio file in question: must NOT be provided in secret chats, provide the <c>title</c> and <c>performer</c> fields instead.</summary>
|
||||||
[IfFlag(0)] public InputDocument document;
|
[IfFlag(0)] public InputDocument document;
|
||||||
|
/// <summary>Song title: should only be used in secret chats, in normal chats provide <c>document</c> instead, as it has more lax rate limits.</summary>
|
||||||
[IfFlag(1)] public string title;
|
[IfFlag(1)] public string title;
|
||||||
|
/// <summary>Song performer: should only be used in secret chats, in normal chats provide <c>document</c> instead, as it has more lax rate limits.</summary>
|
||||||
[IfFlag(1)] public string performer;
|
[IfFlag(1)] public string performer;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
|
|
@ -8706,6 +8724,7 @@ namespace TL
|
||||||
has_document = 0x1,
|
has_document = 0x1,
|
||||||
/// <summary>Field <see cref="title"/> has a value</summary>
|
/// <summary>Field <see cref="title"/> has a value</summary>
|
||||||
has_title = 0x2,
|
has_title = 0x2,
|
||||||
|
/// <summary>Used to return a thumbnail with <c>100x100</c> resolution (instead of the default <c>600x600</c>)</summary>
|
||||||
small = 0x4,
|
small = 0x4,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -10410,7 +10429,7 @@ namespace TL
|
||||||
public int length;
|
public int length;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Deep linking info <para>See <a href="https://corefork.telegram.org/constructor/help.deepLinkInfo"/></para></summary>
|
/// <summary>Deep link info, see <a href="https://corefork.telegram.org/api/links#unsupported-links">the here for more details</a> <para>See <a href="https://corefork.telegram.org/constructor/help.deepLinkInfo"/></para></summary>
|
||||||
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/help.deepLinkInfoEmpty">help.deepLinkInfoEmpty</a></remarks>
|
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/help.deepLinkInfoEmpty">help.deepLinkInfoEmpty</a></remarks>
|
||||||
[TLDef(0x6A4EE832)]
|
[TLDef(0x6A4EE832)]
|
||||||
public class Help_DeepLinkInfo : IObject
|
public class Help_DeepLinkInfo : IObject
|
||||||
|
|
@ -10936,7 +10955,7 @@ namespace TL
|
||||||
anonymous = 0x400,
|
anonymous = 0x400,
|
||||||
/// <summary>If set, allows the admin to change group call/livestream settings</summary>
|
/// <summary>If set, allows the admin to change group call/livestream settings</summary>
|
||||||
manage_call = 0x800,
|
manage_call = 0x800,
|
||||||
/// <summary>Set this flag if none of the other flags are set, but you still want the user to be an admin.</summary>
|
/// <summary>Set this flag if none of the other flags are set, but you still want the user to be an admin: if this or any of the other flags are set, the admin can get the chat <a href="https://corefork.telegram.org/api/recent-actions">admin log</a>, get <a href="https://corefork.telegram.org/api/stats">chat statistics</a>, get <a href="https://corefork.telegram.org/api/stats">message statistics in channels</a>, get channel members, see anonymous administrators in supergroups and ignore slow mode.</summary>
|
||||||
other = 0x1000,
|
other = 0x1000,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -10979,25 +10998,25 @@ namespace TL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Wallpaper <para>Derived classes: <see cref="InputWallPaper"/>, <see cref="InputWallPaperSlug"/>, <see cref="InputWallPaperNoFile"/></para> <para>See <a href="https://corefork.telegram.org/type/InputWallPaper"/></para></summary>
|
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> <para>Derived classes: <see cref="InputWallPaper"/>, <see cref="InputWallPaperSlug"/>, <see cref="InputWallPaperNoFile"/></para> <para>See <a href="https://corefork.telegram.org/type/InputWallPaper"/></para></summary>
|
||||||
public abstract class InputWallPaperBase : IObject { }
|
public abstract class InputWallPaperBase : IObject { }
|
||||||
/// <summary>Wallpaper <para>See <a href="https://corefork.telegram.org/constructor/inputWallPaper"/></para></summary>
|
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> <para>See <a href="https://corefork.telegram.org/constructor/inputWallPaper"/></para></summary>
|
||||||
[TLDef(0xE630B979)]
|
[TLDef(0xE630B979)]
|
||||||
public class InputWallPaper : InputWallPaperBase
|
public class InputWallPaper : InputWallPaperBase
|
||||||
{
|
{
|
||||||
/// <summary>Wallpaper ID</summary>
|
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> ID</summary>
|
||||||
public long id;
|
public long id;
|
||||||
/// <summary>⚠ <b>REQUIRED FIELD</b>. See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/FAQ.md#access-hash">how to obtain it</see><br/>Access hash</summary>
|
/// <summary>⚠ <b>REQUIRED FIELD</b>. See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/FAQ.md#access-hash">how to obtain it</see><br/>Access hash</summary>
|
||||||
public long access_hash;
|
public long access_hash;
|
||||||
}
|
}
|
||||||
/// <summary>Wallpaper by slug (a unique ID) <para>See <a href="https://corefork.telegram.org/constructor/inputWallPaperSlug"/></para></summary>
|
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> by slug (a unique ID, obtained from a <a href="https://corefork.telegram.org/api/links#wallpaper-links">wallpaper link »</a>) <para>See <a href="https://corefork.telegram.org/constructor/inputWallPaperSlug"/></para></summary>
|
||||||
[TLDef(0x72091C80)]
|
[TLDef(0x72091C80)]
|
||||||
public class InputWallPaperSlug : InputWallPaperBase
|
public class InputWallPaperSlug : InputWallPaperBase
|
||||||
{
|
{
|
||||||
/// <summary>Unique wallpaper ID</summary>
|
/// <summary>Unique wallpaper ID</summary>
|
||||||
public string slug;
|
public string slug;
|
||||||
}
|
}
|
||||||
/// <summary>Wallpaper with no file access hash, used for example when deleting (<c>unsave=true</c>) wallpapers using <a href="https://corefork.telegram.org/method/account.saveWallPaper">account.saveWallPaper</a>, specifying just the wallpaper ID. <para>See <a href="https://corefork.telegram.org/constructor/inputWallPaperNoFile"/></para></summary>
|
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> with no file access hash, used for example when deleting (<c>unsave=true</c>) wallpapers using <a href="https://corefork.telegram.org/method/account.saveWallPaper">account.saveWallPaper</a>, specifying just the wallpaper ID. <para>See <a href="https://corefork.telegram.org/constructor/inputWallPaperNoFile"/></para></summary>
|
||||||
[TLDef(0x967A462E)]
|
[TLDef(0x967A462E)]
|
||||||
public class InputWallPaperNoFile : InputWallPaperBase
|
public class InputWallPaperNoFile : InputWallPaperBase
|
||||||
{
|
{
|
||||||
|
|
@ -11005,14 +11024,14 @@ namespace TL
|
||||||
public long id;
|
public long id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Installed wallpapers <para>See <a href="https://corefork.telegram.org/constructor/account.wallPapers"/></para></summary>
|
/// <summary>Installed <a href="https://corefork.telegram.org/api/wallpapers">wallpapers</a> <para>See <a href="https://corefork.telegram.org/constructor/account.wallPapers"/></para></summary>
|
||||||
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/account.wallPapersNotModified">account.wallPapersNotModified</a></remarks>
|
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/account.wallPapersNotModified">account.wallPapersNotModified</a></remarks>
|
||||||
[TLDef(0xCDC3858C)]
|
[TLDef(0xCDC3858C)]
|
||||||
public class Account_WallPapers : IObject
|
public class Account_WallPapers : IObject
|
||||||
{
|
{
|
||||||
/// <summary><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></summary>
|
/// <summary><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></summary>
|
||||||
public long hash;
|
public long hash;
|
||||||
/// <summary>Wallpapers</summary>
|
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpapers</a></summary>
|
||||||
public WallPaperBase[] wallpapers;
|
public WallPaperBase[] wallpapers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -11040,32 +11059,32 @@ namespace TL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Wallpaper settings <para>See <a href="https://corefork.telegram.org/constructor/wallPaperSettings"/></para></summary>
|
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> rendering information. <para>See <a href="https://corefork.telegram.org/constructor/wallPaperSettings"/></para></summary>
|
||||||
[TLDef(0x1DC1BCA4)]
|
[TLDef(0x1DC1BCA4)]
|
||||||
public class WallPaperSettings : IObject
|
public class WallPaperSettings : IObject
|
||||||
{
|
{
|
||||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
/// <summary>If set, a PNG pattern is to be combined with the <c>color</c> chosen by the user: the main color of the background in RGB24 format</summary>
|
/// <summary>Used for <a href="https://corefork.telegram.org/api/wallpapers#solid-fill">solid »</a>, <a href="https://corefork.telegram.org/api/wallpapers#gradient-fill">gradient »</a> and <a href="https://corefork.telegram.org/api/wallpapers#freeform-gradient-fill">freeform gradient »</a> fills.</summary>
|
||||||
[IfFlag(0)] public int background_color;
|
[IfFlag(0)] public int background_color;
|
||||||
/// <summary>If set, a PNG pattern is to be combined with the first and second background colors (RGB24 format) in a top-bottom gradient</summary>
|
/// <summary>Used for <a href="https://corefork.telegram.org/api/wallpapers#gradient-fill">gradient »</a> and <a href="https://corefork.telegram.org/api/wallpapers#freeform-gradient-fill">freeform gradient »</a> fills.</summary>
|
||||||
[IfFlag(4)] public int second_background_color;
|
[IfFlag(4)] public int second_background_color;
|
||||||
/// <summary>If set, a PNG pattern is to be combined with the first, second and third background colors (RGB24 format) in a freeform gradient</summary>
|
/// <summary>Used for <a href="https://corefork.telegram.org/api/wallpapers#freeform-gradient-fill">freeform gradient »</a> fills.</summary>
|
||||||
[IfFlag(5)] public int third_background_color;
|
[IfFlag(5)] public int third_background_color;
|
||||||
/// <summary>If set, a PNG pattern is to be combined with the first, second, third and fourth background colors (RGB24 format) in a freeform gradient</summary>
|
/// <summary>Used for <a href="https://corefork.telegram.org/api/wallpapers#freeform-gradient-fill">freeform gradient »</a> fills.</summary>
|
||||||
[IfFlag(6)] public int fourth_background_color;
|
[IfFlag(6)] public int fourth_background_color;
|
||||||
/// <summary>Intensity of the pattern when it is shown above the main background color, 0-100</summary>
|
/// <summary>Used for <a href="https://corefork.telegram.org/api/wallpapers#pattern-wallpapers">pattern wallpapers »</a>.</summary>
|
||||||
[IfFlag(3)] public int intensity;
|
[IfFlag(3)] public int intensity;
|
||||||
/// <summary>Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45</summary>
|
/// <summary>Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45.</summary>
|
||||||
[IfFlag(4)] public int rotation;
|
[IfFlag(4)] public int rotation;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
/// <summary>Field <see cref="background_color"/> has a value</summary>
|
/// <summary>Field <see cref="background_color"/> has a value</summary>
|
||||||
has_background_color = 0x1,
|
has_background_color = 0x1,
|
||||||
/// <summary>If set, the wallpaper must be downscaled to fit in 450x450 square and then box-blurred with radius 12</summary>
|
/// <summary>For <a href="https://corefork.telegram.org/api/wallpapers#image-wallpapers">image wallpapers »</a>: if set, the JPEG must be downscaled to fit in 450x450 square and then box-blurred with radius 12.</summary>
|
||||||
blur = 0x2,
|
blur = 0x2,
|
||||||
/// <summary>If set, the background needs to be slightly moved when device is rotated</summary>
|
/// <summary>If set, the background needs to be slightly moved when the device is rotated.</summary>
|
||||||
motion = 0x4,
|
motion = 0x4,
|
||||||
/// <summary>Field <see cref="intensity"/> has a value</summary>
|
/// <summary>Field <see cref="intensity"/> has a value</summary>
|
||||||
has_intensity = 0x8,
|
has_intensity = 0x8,
|
||||||
|
|
@ -11324,7 +11343,7 @@ namespace TL
|
||||||
[TLDef(0xF5890DF1)]
|
[TLDef(0xF5890DF1)]
|
||||||
public class InputThemeSlug : InputThemeBase
|
public class InputThemeSlug : InputThemeBase
|
||||||
{
|
{
|
||||||
/// <summary>Unique theme ID</summary>
|
/// <summary>Unique theme ID obtained from a <a href="https://corefork.telegram.org/api/links#theme-links">theme deep link »</a></summary>
|
||||||
public string slug;
|
public string slug;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -11468,9 +11487,9 @@ namespace TL
|
||||||
[IfFlag(3)] public int outbox_accent_color;
|
[IfFlag(3)] public int outbox_accent_color;
|
||||||
/// <summary>The fill to be used as a background for outgoing messages, in RGB24 format. <br/>If just one or two equal colors are provided, describes a solid fill of a background. <br/>If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.<br/>If three or four colors are provided, describes a freeform gradient fill of a background.</summary>
|
/// <summary>The fill to be used as a background for outgoing messages, in RGB24 format. <br/>If just one or two equal colors are provided, describes a solid fill of a background. <br/>If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.<br/>If three or four colors are provided, describes a freeform gradient fill of a background.</summary>
|
||||||
[IfFlag(0)] public int[] message_colors;
|
[IfFlag(0)] public int[] message_colors;
|
||||||
/// <summary>Wallpaper</summary>
|
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a></summary>
|
||||||
[IfFlag(1)] public InputWallPaperBase wallpaper;
|
[IfFlag(1)] public InputWallPaperBase wallpaper;
|
||||||
/// <summary>Wallpaper settings</summary>
|
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> settings.</summary>
|
||||||
[IfFlag(1)] public WallPaperSettings wallpaper_settings;
|
[IfFlag(1)] public WallPaperSettings wallpaper_settings;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
|
|
@ -11500,7 +11519,7 @@ namespace TL
|
||||||
[IfFlag(3)] public int outbox_accent_color;
|
[IfFlag(3)] public int outbox_accent_color;
|
||||||
/// <summary>The fill to be used as a background for outgoing messages, in RGB24 format. <br/>If just one or two equal colors are provided, describes a solid fill of a background. <br/>If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.<br/>If three or four colors are provided, describes a freeform gradient fill of a background.</summary>
|
/// <summary>The fill to be used as a background for outgoing messages, in RGB24 format. <br/>If just one or two equal colors are provided, describes a solid fill of a background. <br/>If two different colors are provided, describes the top and bottom colors of a 0-degree gradient.<br/>If three or four colors are provided, describes a freeform gradient fill of a background.</summary>
|
||||||
[IfFlag(0)] public int[] message_colors;
|
[IfFlag(0)] public int[] message_colors;
|
||||||
/// <summary>Wallpaper</summary>
|
/// <summary><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a></summary>
|
||||||
[IfFlag(1)] public WallPaperBase wallpaper;
|
[IfFlag(1)] public WallPaperBase wallpaper;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
|
|
@ -11678,7 +11697,7 @@ namespace TL
|
||||||
has_emoticon = 0x2000000,
|
has_emoticon = 0x2000000,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/dialogFilterDefault"/></para></summary>
|
/// <summary>Used only when reordering folders to indicate the default (all chats) folder. <para>See <a href="https://corefork.telegram.org/constructor/dialogFilterDefault"/></para></summary>
|
||||||
[TLDef(0x363293AE)]
|
[TLDef(0x363293AE)]
|
||||||
public class DialogFilterDefault : DialogFilterBase { }
|
public class DialogFilterDefault : DialogFilterBase { }
|
||||||
|
|
||||||
|
|
@ -12686,6 +12705,7 @@ namespace TL
|
||||||
has_from_id = 0x8,
|
has_from_id = 0x8,
|
||||||
/// <summary>Field <see cref="chat_invite"/> has a value</summary>
|
/// <summary>Field <see cref="chat_invite"/> has a value</summary>
|
||||||
has_chat_invite = 0x10,
|
has_chat_invite = 0x10,
|
||||||
|
/// <summary>Whether the message needs to be labeled as "recommended" instead of "sponsored"</summary>
|
||||||
recommended = 0x20,
|
recommended = 0x20,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -13010,7 +13030,7 @@ namespace TL
|
||||||
public string key;
|
public string key;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Represents an attachment menu icon color for <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web apps »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBotIconColor"/></para></summary>
|
/// <summary>Represents an attachment menu icon color for <a href="https://corefork.telegram.org/api/bots/attach">bot web apps »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBotIconColor"/></para></summary>
|
||||||
[TLDef(0x4576F3F0)]
|
[TLDef(0x4576F3F0)]
|
||||||
public class AttachMenuBotIconColor : IObject
|
public class AttachMenuBotIconColor : IObject
|
||||||
{
|
{
|
||||||
|
|
@ -13020,7 +13040,7 @@ namespace TL
|
||||||
public int color;
|
public int color;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Represents an attachment menu icon for <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web apps »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBotIcon"/></para></summary>
|
/// <summary>Represents an attachment menu icon for <a href="https://corefork.telegram.org/api/bots/attach">bot web apps »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBotIcon"/></para></summary>
|
||||||
[TLDef(0xB2A7386B)]
|
[TLDef(0xB2A7386B)]
|
||||||
public class AttachMenuBotIcon : IObject
|
public class AttachMenuBotIcon : IObject
|
||||||
{
|
{
|
||||||
|
|
@ -13040,7 +13060,7 @@ namespace TL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Represents a <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web app that can be launched from the attachment menu »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBot"/></para></summary>
|
/// <summary>Represents a <a href="https://corefork.telegram.org/api/bots/attach">bot web app that can be launched from the attachment menu »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBot"/></para></summary>
|
||||||
[TLDef(0xC8AA2CD2)]
|
[TLDef(0xC8AA2CD2)]
|
||||||
public class AttachMenuBot : IObject
|
public class AttachMenuBot : IObject
|
||||||
{
|
{
|
||||||
|
|
@ -13059,59 +13079,63 @@ namespace TL
|
||||||
{
|
{
|
||||||
/// <summary>Whether this bot attachment menu entry should be shown in the attachment menu (toggle using <a href="https://corefork.telegram.org/method/messages.toggleBotInAttachMenu">messages.toggleBotInAttachMenu</a>)</summary>
|
/// <summary>Whether this bot attachment menu entry should be shown in the attachment menu (toggle using <a href="https://corefork.telegram.org/method/messages.toggleBotInAttachMenu">messages.toggleBotInAttachMenu</a>)</summary>
|
||||||
inactive = 0x1,
|
inactive = 0x1,
|
||||||
/// <summary>True, if the bot supports the "settings_button_pressed" event</summary>
|
/// <summary>True, if the bot supports the <a href="https://corefork.telegram.org/api/bots/webapps#settings_button_pressed">"settings_button_pressed" event »</a></summary>
|
||||||
has_settings = 0x2,
|
has_settings = 0x2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Represents a list of <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web apps that can be launched from the attachment menu »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBots"/></para></summary>
|
/// <summary>Represents a list of <a href="https://corefork.telegram.org/api/bots/attach">bot web apps that can be launched from the attachment menu »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBots"/></para></summary>
|
||||||
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/attachMenuBotsNotModified">attachMenuBotsNotModified</a></remarks>
|
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/attachMenuBotsNotModified">attachMenuBotsNotModified</a></remarks>
|
||||||
[TLDef(0x3C4301C0)]
|
[TLDef(0x3C4301C0)]
|
||||||
public class AttachMenuBots : IObject
|
public class AttachMenuBots : IObject
|
||||||
{
|
{
|
||||||
/// <summary><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></summary>
|
/// <summary><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></summary>
|
||||||
public long hash;
|
public long hash;
|
||||||
/// <summary>List of <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web apps that can be launched from the attachment menu »</a></summary>
|
/// <summary>List of <a href="https://corefork.telegram.org/api/bots/attach">bot web apps that can be launched from the attachment menu »</a></summary>
|
||||||
public AttachMenuBot[] bots;
|
public AttachMenuBot[] bots;
|
||||||
/// <summary>Info about related users/bots</summary>
|
/// <summary>Info about related users/bots</summary>
|
||||||
public Dictionary<long, User> users;
|
public Dictionary<long, User> users;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Represents a <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web app that can be launched from the attachment menu »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBotsBot"/></para></summary>
|
/// <summary>Represents a <a href="https://corefork.telegram.org/api/bots/attach">bot web app that can be launched from the attachment menu »</a> <para>See <a href="https://corefork.telegram.org/constructor/attachMenuBotsBot"/></para></summary>
|
||||||
[TLDef(0x93BF667F)]
|
[TLDef(0x93BF667F)]
|
||||||
public class AttachMenuBotsBot : IObject
|
public class AttachMenuBotsBot : IObject
|
||||||
{
|
{
|
||||||
/// <summary>Represents a <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web app that can be launched from the attachment menu »</a><br/></summary>
|
/// <summary>Represents a <a href="https://corefork.telegram.org/api/bots/attach">bot web app that can be launched from the attachment menu »</a><br/></summary>
|
||||||
public AttachMenuBot bot;
|
public AttachMenuBot bot;
|
||||||
/// <summary>Info about related users and bots</summary>
|
/// <summary>Info about related users and bots</summary>
|
||||||
public Dictionary<long, User> users;
|
public Dictionary<long, User> users;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Contains information about a <a href="https://core.telegram.org/bots/webapps">Web App</a> <para>Derived classes: <see cref="WebViewResultUrl"/></para> <para>See <a href="https://corefork.telegram.org/type/WebViewResult"/></para></summary>
|
/// <summary>Contains the webview URL with appropriate theme and user info parameters added <para>Derived classes: <see cref="WebViewResultUrl"/></para> <para>See <a href="https://corefork.telegram.org/type/WebViewResult"/></para></summary>
|
||||||
public abstract class WebViewResult : IObject { }
|
public abstract class WebViewResult : IObject { }
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/webViewResultUrl"/></para></summary>
|
/// <summary>Contains the webview URL with appropriate theme and user info parameters added <para>See <a href="https://corefork.telegram.org/constructor/webViewResultUrl"/></para></summary>
|
||||||
[TLDef(0x0C14557C)]
|
[TLDef(0x0C14557C)]
|
||||||
public class WebViewResultUrl : WebViewResult
|
public class WebViewResultUrl : WebViewResult
|
||||||
{
|
{
|
||||||
|
/// <summary>Webview session ID</summary>
|
||||||
public long query_id;
|
public long query_id;
|
||||||
|
/// <summary>Webview URL to open</summary>
|
||||||
public string url;
|
public string url;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Contains the webview URL with appropriate theme and user info parameters added <para>Derived classes: <see cref="SimpleWebViewResultUrl"/></para> <para>See <a href="https://corefork.telegram.org/type/SimpleWebViewResult"/></para></summary>
|
/// <summary>Contains the webview URL with appropriate theme parameters added <para>Derived classes: <see cref="SimpleWebViewResultUrl"/></para> <para>See <a href="https://corefork.telegram.org/type/SimpleWebViewResult"/></para></summary>
|
||||||
public abstract class SimpleWebViewResult : IObject { }
|
public abstract class SimpleWebViewResult : IObject { }
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/simpleWebViewResultUrl"/></para></summary>
|
/// <summary>Contains the webview URL with appropriate theme parameters added <para>See <a href="https://corefork.telegram.org/constructor/simpleWebViewResultUrl"/></para></summary>
|
||||||
[TLDef(0x882F76BB)]
|
[TLDef(0x882F76BB)]
|
||||||
public class SimpleWebViewResultUrl : SimpleWebViewResult
|
public class SimpleWebViewResultUrl : SimpleWebViewResult
|
||||||
{
|
{
|
||||||
|
/// <summary>URL</summary>
|
||||||
public string url;
|
public string url;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/webViewMessageSent"/></para></summary>
|
/// <summary>Info about a sent inline webview message <para>See <a href="https://corefork.telegram.org/constructor/webViewMessageSent"/></para></summary>
|
||||||
[TLDef(0x0C94511C)]
|
[TLDef(0x0C94511C)]
|
||||||
public class WebViewMessageSent : IObject
|
public class WebViewMessageSent : IObject
|
||||||
{
|
{
|
||||||
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a></summary>
|
||||||
public Flags flags;
|
public Flags flags;
|
||||||
|
/// <summary>Message ID</summary>
|
||||||
[IfFlag(0)] public InputBotInlineMessageIDBase msg_id;
|
[IfFlag(0)] public InputBotInlineMessageIDBase msg_id;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
|
|
@ -13123,19 +13147,19 @@ namespace TL
|
||||||
|
|
||||||
/// <summary>Indicates the action to execute when pressing the in-UI menu button for bots <para>Derived classes: <see cref="BotMenuButtonDefault"/>, <see cref="BotMenuButtonCommands"/>, <see cref="BotMenuButton"/></para> <para>See <a href="https://corefork.telegram.org/type/BotMenuButton"/></para></summary>
|
/// <summary>Indicates the action to execute when pressing the in-UI menu button for bots <para>Derived classes: <see cref="BotMenuButtonDefault"/>, <see cref="BotMenuButtonCommands"/>, <see cref="BotMenuButton"/></para> <para>See <a href="https://corefork.telegram.org/type/BotMenuButton"/></para></summary>
|
||||||
public abstract class BotMenuButtonBase : IObject { }
|
public abstract class BotMenuButtonBase : IObject { }
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/botMenuButtonDefault"/></para></summary>
|
/// <summary>Placeholder <a href="https://corefork.telegram.org/api/bots/menu">bot menu button</a> never returned to users: see <a href="https://corefork.telegram.org/api/bots/menu">the docs for more info</a>. <para>See <a href="https://corefork.telegram.org/constructor/botMenuButtonDefault"/></para></summary>
|
||||||
[TLDef(0x7533A588)]
|
[TLDef(0x7533A588)]
|
||||||
public class BotMenuButtonDefault : BotMenuButtonBase { }
|
public class BotMenuButtonDefault : BotMenuButtonBase { }
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/botMenuButtonCommands"/></para></summary>
|
/// <summary><a href="https://corefork.telegram.org/api/bots/menu">Bot menu button</a> that opens the bot command list when clicked. <para>See <a href="https://corefork.telegram.org/constructor/botMenuButtonCommands"/></para></summary>
|
||||||
[TLDef(0x4258C205)]
|
[TLDef(0x4258C205)]
|
||||||
public class BotMenuButtonCommands : BotMenuButtonBase { }
|
public class BotMenuButtonCommands : BotMenuButtonBase { }
|
||||||
/// <summary>Indicates the action to execute when pressing the in-UI menu button for bots <para>See <a href="https://corefork.telegram.org/constructor/botMenuButton"/></para></summary>
|
/// <summary><a href="https://corefork.telegram.org/api/bots/menu">Bot menu button</a> that opens a <a href="https://corefork.telegram.org/api/bots/webapps">web app</a> when clicked. <para>See <a href="https://corefork.telegram.org/constructor/botMenuButton"/></para></summary>
|
||||||
[TLDef(0xC7B57CE6)]
|
[TLDef(0xC7B57CE6)]
|
||||||
public class BotMenuButton : BotMenuButtonBase
|
public class BotMenuButton : BotMenuButtonBase
|
||||||
{
|
{
|
||||||
/// <summary>Title to be displayed on the menu button instead of 'Menu'</summary>
|
/// <summary>Title to be displayed on the menu button instead of 'Menu'</summary>
|
||||||
public string text;
|
public string text;
|
||||||
/// <summary>URL of a <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-menu-button">web app</a> to open when the user clicks on the button</summary>
|
/// <summary>URL of a <a href="https://corefork.telegram.org/api/bots/webapps">web app</a> to open when the user clicks on the button</summary>
|
||||||
public string url;
|
public string url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -13212,7 +13236,7 @@ namespace TL
|
||||||
/// <summary>Message ID</summary>
|
/// <summary>Message ID</summary>
|
||||||
public int msg_id;
|
public int msg_id;
|
||||||
}
|
}
|
||||||
/// <summary>An invoice slug taken from a t.me/invoice/<slug> link or from the <a href="https://corefork.telegram.org/api/config#client-configuration"><c>premium_invoice_slug</c> app config parameter »</a></slug> <para>See <a href="https://corefork.telegram.org/constructor/inputInvoiceSlug"/></para></summary>
|
/// <summary>An invoice slug taken from an <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a> or from the <a href="https://corefork.telegram.org/api/config#client-configuration"><c>premium_invoice_slug</c> app config parameter »</a> <para>See <a href="https://corefork.telegram.org/constructor/inputInvoiceSlug"/></para></summary>
|
||||||
[TLDef(0xC326CAEF)]
|
[TLDef(0xC326CAEF)]
|
||||||
public class InputInvoiceSlug : InputInvoice
|
public class InputInvoiceSlug : InputInvoice
|
||||||
{
|
{
|
||||||
|
|
@ -13220,15 +13244,15 @@ namespace TL
|
||||||
public string slug;
|
public string slug;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Exported invoice <para>See <a href="https://corefork.telegram.org/constructor/payments.exportedInvoice"/></para></summary>
|
/// <summary>Exported <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a> <para>See <a href="https://corefork.telegram.org/constructor/payments.exportedInvoice"/></para></summary>
|
||||||
[TLDef(0xAED0CBD9)]
|
[TLDef(0xAED0CBD9)]
|
||||||
public class Payments_ExportedInvoice : IObject
|
public class Payments_ExportedInvoice : IObject
|
||||||
{
|
{
|
||||||
/// <summary>Exported invoice URL</summary>
|
/// <summary>Exported <a href="https://corefork.telegram.org/api/links#invoice-link">invoice deep link</a></summary>
|
||||||
public string url;
|
public string url;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Transcribed text from a voice message <para>See <a href="https://corefork.telegram.org/constructor/messages.transcribedAudio"/></para></summary>
|
/// <summary><a href="https://corefork.telegram.org/api/transcribe">Transcribed text from a voice message »</a> <para>See <a href="https://corefork.telegram.org/constructor/messages.transcribedAudio"/></para></summary>
|
||||||
[TLDef(0x93752C52)]
|
[TLDef(0x93752C52)]
|
||||||
public class Messages_TranscribedAudio : IObject
|
public class Messages_TranscribedAudio : IObject
|
||||||
{
|
{
|
||||||
|
|
@ -13277,6 +13301,7 @@ namespace TL
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
{
|
{
|
||||||
|
/// <summary>Pass true if this is a restore of a Telegram Premium purchase; only for the App Store</summary>
|
||||||
restore = 0x1,
|
restore = 0x1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -13304,7 +13329,9 @@ namespace TL
|
||||||
public string currency;
|
public string currency;
|
||||||
/// <summary>Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of <c>US$ 1.45</c> pass <c>amount = 145</c>. See the exp parameter in <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</summary>
|
/// <summary>Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of <c>US$ 1.45</c> pass <c>amount = 145</c>. See the exp parameter in <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</summary>
|
||||||
public long amount;
|
public long amount;
|
||||||
|
/// <summary>An <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link »</a> to an invoice for in-app payment, using the official Premium bot; may be empty if direct payment isn't available.</summary>
|
||||||
public string bot_url;
|
public string bot_url;
|
||||||
|
/// <summary>An identifier for the App Store/Play Store product associated with the Premium gift.</summary>
|
||||||
[IfFlag(0)] public string store_product;
|
[IfFlag(0)] public string store_product;
|
||||||
|
|
||||||
[Flags] public enum Flags : uint
|
[Flags] public enum Flags : uint
|
||||||
|
|
@ -13314,11 +13341,13 @@ namespace TL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Represents a payment method <para>See <a href="https://corefork.telegram.org/constructor/paymentFormMethod"/></para></summary>
|
/// <summary>Represents an additional payment method <para>See <a href="https://corefork.telegram.org/constructor/paymentFormMethod"/></para></summary>
|
||||||
[TLDef(0x88F8F21B)]
|
[TLDef(0x88F8F21B)]
|
||||||
public class PaymentFormMethod : IObject
|
public class PaymentFormMethod : IObject
|
||||||
{
|
{
|
||||||
|
/// <summary>URL to open in a webview to process the payment</summary>
|
||||||
public string url;
|
public string url;
|
||||||
|
/// <summary>Payment method description</summary>
|
||||||
public string title;
|
public string title;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -247,7 +247,7 @@ namespace TL
|
||||||
except_auth_keys = except_auth_keys,
|
except_auth_keys = except_auth_keys,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Generate a login token, for <a href="https://corefork.telegram.org/api/qr-login">login via QR code</a>.<br/>The generated login token should be encoded using base64url, then shown as a <c>tg://login?token=base64encodedtoken</c> URL in the QR code. <para>See <a href="https://corefork.telegram.org/method/auth.exportLoginToken"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/auth.exportLoginToken#possible-errors">details</a>)</para></summary>
|
/// <summary>Generate a login token, for <a href="https://corefork.telegram.org/api/qr-login">login via QR code</a>.<br/>The generated login token should be encoded using base64url, then shown as a <c>tg://login?token=base64encodedtoken</c> <a href="https://corefork.telegram.org/api/links#qr-code-login-links">deep link »</a> in the QR code. <para>See <a href="https://corefork.telegram.org/method/auth.exportLoginToken"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/auth.exportLoginToken#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_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="api_hash">Application identifier hash (see. <a href="https://corefork.telegram.org/myapp">App configuration</a>)</param>
|
||||||
/// <param name="except_ids">List of already logged-in user IDs, to prevent logging in twice with the same user</param>
|
/// <param name="except_ids">List of already logged-in user IDs, to prevent logging in twice with the same user</param>
|
||||||
|
|
@ -358,7 +358,7 @@ namespace TL
|
||||||
offline = offline,
|
offline = offline,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Returns a list of available wallpapers. <para>See <a href="https://corefork.telegram.org/method/account.getWallPapers"/></para></summary>
|
/// <summary>Returns a list of available <a href="https://corefork.telegram.org/api/wallpapers">wallpapers</a>. <para>See <a href="https://corefork.telegram.org/method/account.getWallPapers"/></para></summary>
|
||||||
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
||||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/account.wallPapersNotModified">account.wallPapersNotModified</a></returns>
|
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/account.wallPapersNotModified">account.wallPapersNotModified</a></returns>
|
||||||
public static Task<Account_WallPapers> Account_GetWallPapers(this Client client, long hash = default)
|
public static Task<Account_WallPapers> Account_GetWallPapers(this Client client, long hash = default)
|
||||||
|
|
@ -723,15 +723,15 @@ namespace TL
|
||||||
peer = peer,
|
peer = peer,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Get info about a certain wallpaper <para>See <a href="https://corefork.telegram.org/method/account.getWallPaper"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.getWallPaper#possible-errors">details</a>)</para></summary>
|
/// <summary>Get info about a certain <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a> <para>See <a href="https://corefork.telegram.org/method/account.getWallPaper"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.getWallPaper#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="wallpaper">The wallpaper to get info about</param>
|
/// <param name="wallpaper">The <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a> to get info about</param>
|
||||||
public static Task<WallPaperBase> Account_GetWallPaper(this Client client, InputWallPaperBase wallpaper)
|
public static Task<WallPaperBase> Account_GetWallPaper(this Client client, InputWallPaperBase wallpaper)
|
||||||
=> client.Invoke(new Account_GetWallPaper
|
=> client.Invoke(new Account_GetWallPaper
|
||||||
{
|
{
|
||||||
wallpaper = wallpaper,
|
wallpaper = wallpaper,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Create and upload a new wallpaper <para>See <a href="https://corefork.telegram.org/method/account.uploadWallPaper"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.uploadWallPaper#possible-errors">details</a>)</para></summary>
|
/// <summary>Create and upload a new <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a> <para>See <a href="https://corefork.telegram.org/method/account.uploadWallPaper"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.uploadWallPaper#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="file">The JPG/PNG wallpaper</param>
|
/// <param name="file">The JPG/PNG wallpaper</param>
|
||||||
/// <param name="mime_type">MIME type of uploaded wallpaper</param>
|
/// <param name="mime_type">MIME type of uploaded wallpaper</param>
|
||||||
/// <param name="settings">Wallpaper settings</param>
|
/// <param name="settings">Wallpaper settings</param>
|
||||||
|
|
@ -743,8 +743,8 @@ namespace TL
|
||||||
settings = settings,
|
settings = settings,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Install/uninstall wallpaper <para>See <a href="https://corefork.telegram.org/method/account.saveWallPaper"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.saveWallPaper#possible-errors">details</a>)</para></summary>
|
/// <summary>Install/uninstall <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a> <para>See <a href="https://corefork.telegram.org/method/account.saveWallPaper"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.saveWallPaper#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="wallpaper">Wallpaper to save</param>
|
/// <param name="wallpaper"><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> to install or uninstall</param>
|
||||||
/// <param name="unsave">Uninstall wallpaper?</param>
|
/// <param name="unsave">Uninstall wallpaper?</param>
|
||||||
/// <param name="settings">Wallpaper settings</param>
|
/// <param name="settings">Wallpaper settings</param>
|
||||||
public static Task<bool> Account_SaveWallPaper(this Client client, InputWallPaperBase wallpaper, bool unsave, WallPaperSettings settings)
|
public static Task<bool> Account_SaveWallPaper(this Client client, InputWallPaperBase wallpaper, bool unsave, WallPaperSettings settings)
|
||||||
|
|
@ -755,9 +755,9 @@ namespace TL
|
||||||
settings = settings,
|
settings = settings,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Install wallpaper <para>See <a href="https://corefork.telegram.org/method/account.installWallPaper"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.installWallPaper#possible-errors">details</a>)</para></summary>
|
/// <summary>Install <a href="https://corefork.telegram.org/api/wallpapers">wallpaper</a> <para>See <a href="https://corefork.telegram.org/method/account.installWallPaper"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/account.installWallPaper#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="wallpaper">Wallpaper to install</param>
|
/// <param name="wallpaper"><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> to install</param>
|
||||||
/// <param name="settings">Wallpaper settings</param>
|
/// <param name="settings"><a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> settings</param>
|
||||||
public static Task<bool> Account_InstallWallPaper(this Client client, InputWallPaperBase wallpaper, WallPaperSettings settings)
|
public static Task<bool> Account_InstallWallPaper(this Client client, InputWallPaperBase wallpaper, WallPaperSettings settings)
|
||||||
=> client.Invoke(new Account_InstallWallPaper
|
=> client.Invoke(new Account_InstallWallPaper
|
||||||
{
|
{
|
||||||
|
|
@ -765,7 +765,7 @@ namespace TL
|
||||||
settings = settings,
|
settings = settings,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Delete installed wallpapers <para>See <a href="https://corefork.telegram.org/method/account.resetWallPapers"/></para></summary>
|
/// <summary>Delete all installed <a href="https://corefork.telegram.org/api/wallpapers">wallpapers</a>, reverting to the default wallpaper set. <para>See <a href="https://corefork.telegram.org/method/account.resetWallPapers"/></para></summary>
|
||||||
public static Task<bool> Account_ResetWallPapers(this Client client)
|
public static Task<bool> Account_ResetWallPapers(this Client client)
|
||||||
=> client.Invoke(new Account_ResetWallPapers
|
=> client.Invoke(new Account_ResetWallPapers
|
||||||
{
|
{
|
||||||
|
|
@ -898,8 +898,8 @@ namespace TL
|
||||||
{
|
{
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Get info about multiple wallpapers <para>See <a href="https://corefork.telegram.org/method/account.getMultiWallPapers"/></para></summary>
|
/// <summary>Get info about multiple <a href="https://corefork.telegram.org/api/wallpapers">wallpapers</a> <para>See <a href="https://corefork.telegram.org/method/account.getMultiWallPapers"/></para></summary>
|
||||||
/// <param name="wallpapers">Wallpapers to fetch info about</param>
|
/// <param name="wallpapers"><a href="https://corefork.telegram.org/api/wallpapers">Wallpapers</a> to fetch info about</param>
|
||||||
public static Task<WallPaperBase[]> Account_GetMultiWallPapers(this Client client, params InputWallPaperBase[] wallpapers)
|
public static Task<WallPaperBase[]> Account_GetMultiWallPapers(this Client client, params InputWallPaperBase[] wallpapers)
|
||||||
=> client.Invoke(new Account_GetMultiWallPapers
|
=> client.Invoke(new Account_GetMultiWallPapers
|
||||||
{
|
{
|
||||||
|
|
@ -1224,8 +1224,8 @@ namespace TL
|
||||||
msg_id = msg_id,
|
msg_id = msg_id,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Resolve a phone number to get user info, if their privacy settings allow it. <para>See <a href="https://corefork.telegram.org/method/contacts.resolvePhone"/></para> <para>Possible <see cref="RpcException"/> codes: (<a href="https://corefork.telegram.org/method/contacts.resolvePhone#possible-errors">details</a>)</para></summary>
|
/// <summary>Resolve a phone number to get user info, if their privacy settings allow it. <para>See <a href="https://corefork.telegram.org/method/contacts.resolvePhone"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/contacts.resolvePhone#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="phone">Phone number in international format, possibly obtained from a <c>t.me/+number</c> or <c>tg://resolve?phone=number</c> URI.</param>
|
/// <param name="phone">Phone number in international format, possibly obtained from a <a href="https://corefork.telegram.org/api/links#phone-number-links">phone number deep link</a>.</param>
|
||||||
public static Task<Contacts_ResolvedPeer> Contacts_ResolvePhone(this Client client, string phone)
|
public static Task<Contacts_ResolvedPeer> Contacts_ResolvePhone(this Client client, string phone)
|
||||||
=> client.Invoke(new Contacts_ResolvePhone
|
=> client.Invoke(new Contacts_ResolvePhone
|
||||||
{
|
{
|
||||||
|
|
@ -1260,7 +1260,7 @@ namespace TL
|
||||||
hash = hash,
|
hash = hash,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Gets back the conversation history with one interlocutor / within a chat <para>See <a href="https://corefork.telegram.org/method/messages.getHistory"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getHistory#possible-errors">details</a>)</para></summary>
|
/// <summary>Returns the conversation history with one interlocutor / within a chat <para>See <a href="https://corefork.telegram.org/method/messages.getHistory"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getHistory#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="peer">Target peer</param>
|
/// <param name="peer">Target peer</param>
|
||||||
/// <param name="offset_id">Only return messages starting from the specified message ID</param>
|
/// <param name="offset_id">Only return messages starting from the specified message ID</param>
|
||||||
/// <param name="offset_date">Only return messages sent before the specified date</param>
|
/// <param name="offset_date">Only return messages sent before the specified date</param>
|
||||||
|
|
@ -1282,7 +1282,7 @@ namespace TL
|
||||||
hash = hash,
|
hash = hash,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Gets back found messages <para>See <a href="https://corefork.telegram.org/method/messages.search"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.search#possible-errors">details</a>)</para></summary>
|
/// <summary>Returns found messages <para>See <a href="https://corefork.telegram.org/method/messages.search"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.search#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="peer">User or chat, histories with which are searched, or <see langword="null"/> for global search</param>
|
/// <param name="peer">User or chat, histories with which are searched, or <see langword="null"/> for global search</param>
|
||||||
/// <param name="q">Text search request</param>
|
/// <param name="q">Text search request</param>
|
||||||
/// <param name="from_id">Only return messages sent by the specified user ID</param>
|
/// <param name="from_id">Only return messages sent by the specified user ID</param>
|
||||||
|
|
@ -1661,7 +1661,7 @@ namespace TL
|
||||||
data = data,
|
data = data,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Confirms receipt of messages in a secret chat by client, cancels push notifications. <para>See <a href="https://corefork.telegram.org/method/messages.receivedQueue"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.receivedQueue#possible-errors">details</a>)</para></summary>
|
/// <summary>Confirms receipt of messages in a secret chat by client, cancels push notifications.<br/>The method returns a list of <strong>random_id</strong>s of messages for which push notifications were cancelled. <para>See <a href="https://corefork.telegram.org/method/messages.receivedQueue"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.receivedQueue#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="max_qts">Maximum qts value available at the client</param>
|
/// <param name="max_qts">Maximum qts value available at the client</param>
|
||||||
public static Task<long[]> Messages_ReceivedQueue(this Client client, int max_qts)
|
public static Task<long[]> Messages_ReceivedQueue(this Client client, int max_qts)
|
||||||
=> client.Invoke(new Messages_ReceivedQueue
|
=> client.Invoke(new Messages_ReceivedQueue
|
||||||
|
|
@ -1735,7 +1735,7 @@ namespace TL
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Check the validity of a chat invite link and get basic info about it <para>See <a href="https://corefork.telegram.org/method/messages.checkChatInvite"/></para> <para>Possible <see cref="RpcException"/> codes: 400,406 (<a href="https://corefork.telegram.org/method/messages.checkChatInvite#possible-errors">details</a>)</para></summary>
|
/// <summary>Check the validity of a chat invite link and get basic info about it <para>See <a href="https://corefork.telegram.org/method/messages.checkChatInvite"/></para> <para>Possible <see cref="RpcException"/> codes: 400,406 (<a href="https://corefork.telegram.org/method/messages.checkChatInvite#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="hash">Invite hash in <c>t.me/joinchat/hash</c> or <c>t.me/+hash</c></param>
|
/// <param name="hash">Invite hash from <a href="https://corefork.telegram.org/api/links#chat-invite-links">chat invite deep link »</a>.</param>
|
||||||
public static Task<ChatInviteBase> Messages_CheckChatInvite(this Client client, string hash)
|
public static Task<ChatInviteBase> Messages_CheckChatInvite(this Client client, string hash)
|
||||||
=> client.Invoke(new Messages_CheckChatInvite
|
=> client.Invoke(new Messages_CheckChatInvite
|
||||||
{
|
{
|
||||||
|
|
@ -1743,14 +1743,14 @@ namespace TL
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Import a chat invite and join a private chat/supergroup/channel <para>See <a href="https://corefork.telegram.org/method/messages.importChatInvite"/></para> <para>Possible <see cref="RpcException"/> codes: 400,406 (<a href="https://corefork.telegram.org/method/messages.importChatInvite#possible-errors">details</a>)</para></summary>
|
/// <summary>Import a chat invite and join a private chat/supergroup/channel <para>See <a href="https://corefork.telegram.org/method/messages.importChatInvite"/></para> <para>Possible <see cref="RpcException"/> codes: 400,406 (<a href="https://corefork.telegram.org/method/messages.importChatInvite#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="hash"><c>hash</c> from <c>t.me/joinchat/hash</c></param>
|
/// <param name="hash"><c>hash</c> from a <a href="https://corefork.telegram.org/api/links#chat-invite-links">chat invite deep link</a></param>
|
||||||
public static Task<UpdatesBase> Messages_ImportChatInvite(this Client client, string hash)
|
public static Task<UpdatesBase> Messages_ImportChatInvite(this Client client, string hash)
|
||||||
=> client.Invoke(new Messages_ImportChatInvite
|
=> client.Invoke(new Messages_ImportChatInvite
|
||||||
{
|
{
|
||||||
hash = hash,
|
hash = hash,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <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: 406 (<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,406 (<a href="https://corefork.telegram.org/method/messages.getStickerSet#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="stickerset">Stickerset</param>
|
/// <param name="stickerset">Stickerset</param>
|
||||||
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
||||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.stickerSetNotModified">messages.stickerSetNotModified</a></returns>
|
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/messages.stickerSetNotModified">messages.stickerSetNotModified</a></returns>
|
||||||
|
|
@ -1779,11 +1779,11 @@ namespace TL
|
||||||
stickerset = stickerset,
|
stickerset = stickerset,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Start a conversation with a bot using a <a href="https://corefork.telegram.org/bots#deep-linking">deep linking parameter</a> <para>See <a href="https://corefork.telegram.org/method/messages.startBot"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403,500 (<a href="https://corefork.telegram.org/method/messages.startBot#possible-errors">details</a>)</para></summary>
|
/// <summary>Start a conversation with a bot using a <a href="https://corefork.telegram.org/api/links#bot-links">deep linking parameter</a> <para>See <a href="https://corefork.telegram.org/method/messages.startBot"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403,500 (<a href="https://corefork.telegram.org/method/messages.startBot#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="bot">The bot</param>
|
/// <param name="bot">The bot</param>
|
||||||
/// <param name="peer">The chat where to start the bot, can be the bot's private chat or a group</param>
|
/// <param name="peer">The chat where to start the bot, can be the bot's private chat or a group</param>
|
||||||
/// <param name="random_id">Random ID to avoid resending the same message</param>
|
/// <param name="random_id">Random ID to avoid resending the same message</param>
|
||||||
/// <param name="start_param"><a href="https://corefork.telegram.org/bots#deep-linking">Deep linking parameter</a></param>
|
/// <param name="start_param"><a href="https://corefork.telegram.org/api/links#bot-links">Deep linking parameter</a></param>
|
||||||
public static Task<UpdatesBase> Messages_StartBot(this Client client, InputUserBase bot, InputPeer peer, long random_id, string start_param)
|
public static Task<UpdatesBase> Messages_StartBot(this Client client, InputUserBase bot, InputPeer peer, long random_id, string start_param)
|
||||||
=> client.Invoke(new Messages_StartBot
|
=> client.Invoke(new Messages_StartBot
|
||||||
{
|
{
|
||||||
|
|
@ -2059,7 +2059,7 @@ namespace TL
|
||||||
entities = entities,
|
entities = entities,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Save get all message <a href="https://corefork.telegram.org/api/drafts">drafts</a>. <para>See <a href="https://corefork.telegram.org/method/messages.getAllDrafts"/></para></summary>
|
/// <summary>Return all message <a href="https://corefork.telegram.org/api/drafts">drafts</a>.<br/>Returns all the latest <see cref="UpdateDraftMessage"/> updates related to all chats with drafts. <para>See <a href="https://corefork.telegram.org/method/messages.getAllDrafts"/></para></summary>
|
||||||
public static Task<UpdatesBase> Messages_GetAllDrafts(this Client client)
|
public static Task<UpdatesBase> Messages_GetAllDrafts(this Client client)
|
||||||
=> client.Invoke(new Messages_GetAllDrafts
|
=> client.Invoke(new Messages_GetAllDrafts
|
||||||
{
|
{
|
||||||
|
|
@ -3117,7 +3117,7 @@ namespace TL
|
||||||
min_id = min_id,
|
min_id = min_id,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Mark <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> as read <para>See <a href="https://corefork.telegram.org/method/messages.readReactions"/></para></summary>
|
/// <summary>Mark <a href="https://corefork.telegram.org/api/reactions">message reactions »</a> as read <para>See <a href="https://corefork.telegram.org/method/messages.readReactions"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.readReactions#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="peer">Peer</param>
|
/// <param name="peer">Peer</param>
|
||||||
public static Task<Messages_AffectedHistory> Messages_ReadReactions(this Client client, InputPeer peer)
|
public static Task<Messages_AffectedHistory> Messages_ReadReactions(this Client client, InputPeer peer)
|
||||||
=> client.Invoke(new Messages_ReadReactions
|
=> client.Invoke(new Messages_ReadReactions
|
||||||
|
|
@ -3137,7 +3137,7 @@ namespace TL
|
||||||
limit = limit,
|
limit = limit,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Returns installed attachment menu <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web apps »</a> <para>See <a href="https://corefork.telegram.org/method/messages.getAttachMenuBots"/></para></summary>
|
/// <summary>Returns installed attachment menu <a href="https://corefork.telegram.org/api/bots/attach">bot web apps »</a> <para>See <a href="https://corefork.telegram.org/method/messages.getAttachMenuBots"/></para></summary>
|
||||||
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
/// <param name="hash"><a href="https://corefork.telegram.org/api/offsets#hash-generation">Hash for pagination, for more info click here</a></param>
|
||||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/attachMenuBotsNotModified">attachMenuBotsNotModified</a></returns>
|
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/attachMenuBotsNotModified">attachMenuBotsNotModified</a></returns>
|
||||||
public static Task<AttachMenuBots> Messages_GetAttachMenuBots(this Client client, long hash = default)
|
public static Task<AttachMenuBots> Messages_GetAttachMenuBots(this Client client, long hash = default)
|
||||||
|
|
@ -3146,7 +3146,7 @@ namespace TL
|
||||||
hash = hash,
|
hash = hash,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Returns attachment menu entry for a <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">bot web app that can be launched from the attachment menu »</a> <para>See <a href="https://corefork.telegram.org/method/messages.getAttachMenuBot"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getAttachMenuBot#possible-errors">details</a>)</para></summary>
|
/// <summary>Returns attachment menu entry for a <a href="https://corefork.telegram.org/api/bots/attach">bot web app that can be launched from the attachment menu »</a> <para>See <a href="https://corefork.telegram.org/method/messages.getAttachMenuBot"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.getAttachMenuBot#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="bot">Bot ID</param>
|
/// <param name="bot">Bot ID</param>
|
||||||
public static Task<AttachMenuBotsBot> Messages_GetAttachMenuBot(this Client client, InputUserBase bot)
|
public static Task<AttachMenuBotsBot> Messages_GetAttachMenuBot(this Client client, InputUserBase bot)
|
||||||
=> client.Invoke(new Messages_GetAttachMenuBot
|
=> client.Invoke(new Messages_GetAttachMenuBot
|
||||||
|
|
@ -3154,7 +3154,7 @@ namespace TL
|
||||||
bot = bot,
|
bot = bot,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Enable or disable <a href="https://corefork.telegram.org/bots/webapps#launching-web-apps-from-the-attachment-menu">web bot attachment menu »</a> <para>See <a href="https://corefork.telegram.org/method/messages.toggleBotInAttachMenu"/></para></summary>
|
/// <summary>Enable or disable <a href="https://corefork.telegram.org/api/bots/attach">web bot attachment menu »</a> <para>See <a href="https://corefork.telegram.org/method/messages.toggleBotInAttachMenu"/></para></summary>
|
||||||
/// <param name="bot">Bot ID</param>
|
/// <param name="bot">Bot ID</param>
|
||||||
/// <param name="enabled">Toggle</param>
|
/// <param name="enabled">Toggle</param>
|
||||||
public static Task<bool> Messages_ToggleBotInAttachMenu(this Client client, InputUserBase bot, bool enabled)
|
public static Task<bool> Messages_ToggleBotInAttachMenu(this Client client, InputUserBase bot, bool enabled)
|
||||||
|
|
@ -3164,7 +3164,16 @@ namespace TL
|
||||||
enabled = enabled,
|
enabled = enabled,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.requestWebView"/></para></summary>
|
/// <summary>Open a <a href="https://corefork.telegram.org/bots/webapps">bot web app</a>, sending over user information after user confirmation. <para>See <a href="https://corefork.telegram.org/method/messages.requestWebView"/></para></summary>
|
||||||
|
/// <param name="from_bot_menu">Whether the webview was opened by clicking on the bot's <a href="https://corefork.telegram.org/api/bots/menu">menu button »</a>.</param>
|
||||||
|
/// <param name="silent">Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is <a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage">terminated</a> should be sent silently (no notifications for the receivers).</param>
|
||||||
|
/// <param name="peer">Dialog where the web app is being opened, and where the resulting message will be sent (see the <a href="https://corefork.telegram.org/api/bots/webapps">docs for more info »</a>).</param>
|
||||||
|
/// <param name="bot">Bot that owns the <a href="https://corefork.telegram.org/api/bots/webapps">web app</a></param>
|
||||||
|
/// <param name="url"><a href="https://corefork.telegram.org/api/bots/webapps">Web app URL</a></param>
|
||||||
|
/// <param name="start_param">If the web app was opened from the attachment menu using a <a href="https://corefork.telegram.org/api/links#bot-attachment-menu-links">attachment menu deep link</a>, <c>start_param</c> should contain the <c>data</c> from the <c>startattach</c> parameter.</param>
|
||||||
|
/// <param name="theme_params">Theme parameters for the web app</param>
|
||||||
|
/// <param name="reply_to_msg_id">Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is <a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage">terminated</a> should be sent in reply to this message ID.</param>
|
||||||
|
/// <param name="send_as">Open the web app as the specified peer, sending the resulting the message as the specified peer.</param>
|
||||||
public static Task<WebViewResult> Messages_RequestWebView(this Client client, InputPeer peer, InputUserBase bot, bool from_bot_menu = false, bool silent = false, string url = null, string start_param = null, DataJSON theme_params = null, int? reply_to_msg_id = null, InputPeer send_as = null)
|
public static Task<WebViewResult> Messages_RequestWebView(this Client client, InputPeer peer, InputUserBase bot, bool from_bot_menu = false, bool silent = false, string url = null, string start_param = null, DataJSON theme_params = null, int? reply_to_msg_id = null, InputPeer send_as = null)
|
||||||
=> client.Invoke(new Messages_RequestWebView
|
=> client.Invoke(new Messages_RequestWebView
|
||||||
{
|
{
|
||||||
|
|
@ -3178,7 +3187,13 @@ namespace TL
|
||||||
send_as = send_as,
|
send_as = send_as,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.prolongWebView"/></para></summary>
|
/// <summary>Indicate to the server (from the user side) that the user is still using a web app. <para>See <a href="https://corefork.telegram.org/method/messages.prolongWebView"/></para></summary>
|
||||||
|
/// <param name="silent">Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is <a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage">terminated</a> should be sent silently (no notifications for the receivers).</param>
|
||||||
|
/// <param name="peer">Dialog where the web app was opened.</param>
|
||||||
|
/// <param name="bot">Bot that owns the <a href="https://corefork.telegram.org/api/bots/webapps">web app</a></param>
|
||||||
|
/// <param name="query_id">Web app interaction ID obtained from <a href="https://corefork.telegram.org/method/messages.requestWebView">messages.requestWebView</a></param>
|
||||||
|
/// <param name="reply_to_msg_id">Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is <a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage">terminated</a> should be sent in reply to this message ID.</param>
|
||||||
|
/// <param name="send_as">Open the web app as the specified peer</param>
|
||||||
public static Task<bool> Messages_ProlongWebView(this Client client, InputPeer peer, InputUserBase bot, long query_id, bool silent = false, int? reply_to_msg_id = null, InputPeer send_as = null)
|
public static Task<bool> Messages_ProlongWebView(this Client client, InputPeer peer, InputUserBase bot, long query_id, bool silent = false, int? reply_to_msg_id = null, InputPeer send_as = null)
|
||||||
=> client.Invoke(new Messages_ProlongWebView
|
=> client.Invoke(new Messages_ProlongWebView
|
||||||
{
|
{
|
||||||
|
|
@ -3190,7 +3205,10 @@ namespace TL
|
||||||
send_as = send_as,
|
send_as = send_as,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.requestSimpleWebView"/></para></summary>
|
/// <summary>Open a <a href="https://corefork.telegram.org/api/bots/webapps">bot web app</a>. <para>See <a href="https://corefork.telegram.org/method/messages.requestSimpleWebView"/></para></summary>
|
||||||
|
/// <param name="bot">Bot that owns the webapp</param>
|
||||||
|
/// <param name="url">Web app URL</param>
|
||||||
|
/// <param name="theme_params">Theme parameters</param>
|
||||||
public static Task<SimpleWebViewResult> Messages_RequestSimpleWebView(this Client client, InputUserBase bot, string url, DataJSON theme_params = null)
|
public static Task<SimpleWebViewResult> Messages_RequestSimpleWebView(this Client client, InputUserBase bot, string url, DataJSON theme_params = null)
|
||||||
=> client.Invoke(new Messages_RequestSimpleWebView
|
=> client.Invoke(new Messages_RequestSimpleWebView
|
||||||
{
|
{
|
||||||
|
|
@ -3200,7 +3218,9 @@ namespace TL
|
||||||
theme_params = theme_params,
|
theme_params = theme_params,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>⚠ <b>This method is only for basic Chat</b>. See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/README.md#terminology">Terminology</see> to understand what this means<br/>Search for a similar method name starting with <c>Channels_</c> if you're dealing with a <see cref="Channel"/></para> <para>See <a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage#possible-errors">details</a>)</para></summary>
|
/// <summary><para>⚠ <b>This method is only for basic Chat</b>. See <see href="https://github.com/wiz0u/WTelegramClient/blob/master/README.md#terminology">Terminology</see> to understand what this means<br/>Search for a similar method name starting with <c>Channels_</c> if you're dealing with a <see cref="Channel"/></para> Terminate webview interaction started with <a href="https://corefork.telegram.org/method/messages.requestWebView">messages.requestWebView</a>, sending the specified message to the chat on behalf of the user. <para>See <a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/messages.sendWebViewResultMessage#possible-errors">details</a>)</para></summary>
|
||||||
|
/// <param name="bot_query_id">Webview interaction ID obtained from <a href="https://corefork.telegram.org/method/messages.requestWebView">messages.requestWebView</a></param>
|
||||||
|
/// <param name="result">Message to send</param>
|
||||||
public static Task<WebViewMessageSent> Messages_SendWebViewResultMessage(this Client client, string bot_query_id, InputBotInlineResultBase result)
|
public static Task<WebViewMessageSent> Messages_SendWebViewResultMessage(this Client client, string bot_query_id, InputBotInlineResultBase result)
|
||||||
=> client.Invoke(new Messages_SendWebViewResultMessage
|
=> client.Invoke(new Messages_SendWebViewResultMessage
|
||||||
{
|
{
|
||||||
|
|
@ -3208,7 +3228,11 @@ namespace TL
|
||||||
result = result,
|
result = result,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/messages.sendWebViewData"/></para></summary>
|
/// <summary>Used by the user to relay data from an opened <a href="https://corefork.telegram.org/api/bots/webapps">reply keyboard bot web app</a> to the bot that owns it. <para>See <a href="https://corefork.telegram.org/method/messages.sendWebViewData"/></para></summary>
|
||||||
|
/// <param name="bot">Bot that owns the web app</param>
|
||||||
|
/// <param name="random_id">Unique client message ID to prevent duplicate sending of the same event</param>
|
||||||
|
/// <param name="button_text">Text of the <see cref="KeyboardButtonSimpleWebView"/> that was pressed to open the web app.</param>
|
||||||
|
/// <param name="data">Data to relay to the bot, obtained from a <a href="https://corefork.telegram.org/api/web-events#web_app_data_send"><c>web_app_data_send</c> JS event</a>.</param>
|
||||||
public static Task<UpdatesBase> Messages_SendWebViewData(this Client client, InputUserBase bot, long random_id, string button_text, string data)
|
public static Task<UpdatesBase> Messages_SendWebViewData(this Client client, InputUserBase bot, long random_id, string button_text, string data)
|
||||||
=> client.Invoke(new Messages_SendWebViewData
|
=> client.Invoke(new Messages_SendWebViewData
|
||||||
{
|
{
|
||||||
|
|
@ -3218,7 +3242,7 @@ namespace TL
|
||||||
data = data,
|
data = data,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Transcribe voice message <para>See <a href="https://corefork.telegram.org/method/messages.transcribeAudio"/></para></summary>
|
/// <summary><a href="https://corefork.telegram.org/api/transcribe">Transcribe voice message</a> <para>See <a href="https://corefork.telegram.org/method/messages.transcribeAudio"/></para></summary>
|
||||||
/// <param name="peer">Peer ID where the voice message was sent</param>
|
/// <param name="peer">Peer ID where the voice message was sent</param>
|
||||||
/// <param name="msg_id">Voice message ID</param>
|
/// <param name="msg_id">Voice message ID</param>
|
||||||
public static Task<Messages_TranscribedAudio> Messages_TranscribeAudio(this Client client, InputPeer peer, int msg_id)
|
public static Task<Messages_TranscribedAudio> Messages_TranscribeAudio(this Client client, InputPeer peer, int msg_id)
|
||||||
|
|
@ -3228,7 +3252,7 @@ namespace TL
|
||||||
msg_id = msg_id,
|
msg_id = msg_id,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Rate transcribed voice message <para>See <a href="https://corefork.telegram.org/method/messages.rateTranscribedAudio"/></para></summary>
|
/// <summary>Rate <a href="https://corefork.telegram.org/api/transcribe">transcribed voice message</a> <para>See <a href="https://corefork.telegram.org/method/messages.rateTranscribedAudio"/></para></summary>
|
||||||
/// <param name="peer">Peer where the voice message was sent</param>
|
/// <param name="peer">Peer where the voice message was sent</param>
|
||||||
/// <param name="msg_id">Message ID</param>
|
/// <param name="msg_id">Message ID</param>
|
||||||
/// <param name="transcription_id">Transcription ID</param>
|
/// <param name="transcription_id">Transcription ID</param>
|
||||||
|
|
@ -3325,7 +3349,7 @@ namespace TL
|
||||||
video_start_ts = video_start_ts.GetValueOrDefault(),
|
video_start_ts = video_start_ts.GetValueOrDefault(),
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Deletes profile photos. <para>See <a href="https://corefork.telegram.org/method/photos.deletePhotos"/></para></summary>
|
/// <summary>Deletes profile photos. The method returns a list of successfully deleted photo IDs. <para>See <a href="https://corefork.telegram.org/method/photos.deletePhotos"/></para></summary>
|
||||||
/// <param name="id">Input photos to delete</param>
|
/// <param name="id">Input photos to delete</param>
|
||||||
public static Task<long[]> Photos_DeletePhotos(this Client client, params InputPhoto[] id)
|
public static Task<long[]> Photos_DeletePhotos(this Client client, params InputPhoto[] id)
|
||||||
=> client.Invoke(new Photos_DeletePhotos
|
=> client.Invoke(new Photos_DeletePhotos
|
||||||
|
|
@ -3388,7 +3412,7 @@ namespace TL
|
||||||
bytes = bytes,
|
bytes = bytes,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Returns content of an HTTP file or a part, by proxying the request through telegram. <para>See <a href="https://corefork.telegram.org/method/upload.getWebFile"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/upload.getWebFile#possible-errors">details</a>)</para></summary>
|
/// <summary>Returns content of a web file, by proxying the request through telegram, see the <a href="https://corefork.telegram.org/api/files#downloading-webfiles">webfile docs for more info</a>. <para>See <a href="https://corefork.telegram.org/method/upload.getWebFile"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/upload.getWebFile#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="location">The file to download</param>
|
/// <param name="location">The file to download</param>
|
||||||
/// <param name="offset">Number of bytes to be skipped</param>
|
/// <param name="offset">Number of bytes to be skipped</param>
|
||||||
/// <param name="limit">Number of bytes to be returned</param>
|
/// <param name="limit">Number of bytes to be returned</param>
|
||||||
|
|
@ -3521,8 +3545,8 @@ namespace TL
|
||||||
id = id,
|
id = id,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Get info about a <c>t.me</c> link <para>See <a href="https://corefork.telegram.org/method/help.getDeepLinkInfo"/></para></summary>
|
/// <summary>Get info about an unsupported deep link, see <a href="https://corefork.telegram.org/api/links#unsupported-links">here for more info »</a>. <para>See <a href="https://corefork.telegram.org/method/help.getDeepLinkInfo"/></para></summary>
|
||||||
/// <param name="path">Path in <c>t.me/path</c></param>
|
/// <param name="path">Path component of a <c>tg:</c> link</param>
|
||||||
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/help.deepLinkInfoEmpty">help.deepLinkInfoEmpty</a></returns>
|
/// <returns>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/help.deepLinkInfoEmpty">help.deepLinkInfoEmpty</a></returns>
|
||||||
public static Task<Help_DeepLinkInfo> Help_GetDeepLinkInfo(this Client client, string path)
|
public static Task<Help_DeepLinkInfo> Help_GetDeepLinkInfo(this Client client, string path)
|
||||||
=> client.Invoke(new Help_GetDeepLinkInfo
|
=> client.Invoke(new Help_GetDeepLinkInfo
|
||||||
|
|
@ -4028,7 +4052,7 @@ namespace TL
|
||||||
participant = participant,
|
participant = participant,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Set whether all users <a href="https://corefork.telegram.org/api/discussion#requiring-users-to-join-the-group">should join a discussion group in order to comment on a post »</a> <para>See <a href="https://corefork.telegram.org/method/channels.toggleJoinToSend"/></para></summary>
|
/// <summary>Set whether all users <a href="https://corefork.telegram.org/api/discussion#requiring-users-to-join-the-group">should join a discussion group in order to comment on a post »</a> <para>See <a href="https://corefork.telegram.org/method/channels.toggleJoinToSend"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/channels.toggleJoinToSend#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="channel">Discussion group</param>
|
/// <param name="channel">Discussion group</param>
|
||||||
/// <param name="enabled">Toggle</param>
|
/// <param name="enabled">Toggle</param>
|
||||||
public static Task<UpdatesBase> Channels_ToggleJoinToSend(this Client client, InputChannelBase channel, bool enabled)
|
public static Task<UpdatesBase> Channels_ToggleJoinToSend(this Client client, InputChannelBase channel, bool enabled)
|
||||||
|
|
@ -4100,7 +4124,7 @@ namespace TL
|
||||||
lang_code = lang_code,
|
lang_code = lang_code,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Sets the menu button action for a given user or for all users <para>See <a href="https://corefork.telegram.org/method/bots.setBotMenuButton"/> [bots: ✓]</para></summary>
|
/// <summary>Sets the <a href="https://corefork.telegram.org/api/bots/menu">menu button action »</a> for a given user or for all users <para>See <a href="https://corefork.telegram.org/method/bots.setBotMenuButton"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.setBotMenuButton#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="user_id">User ID</param>
|
/// <param name="user_id">User ID</param>
|
||||||
/// <param name="button">Bot menu button action</param>
|
/// <param name="button">Bot menu button action</param>
|
||||||
public static Task<bool> Bots_SetBotMenuButton(this Client client, InputUserBase user_id, BotMenuButtonBase button)
|
public static Task<bool> Bots_SetBotMenuButton(this Client client, InputUserBase user_id, BotMenuButtonBase button)
|
||||||
|
|
@ -4118,7 +4142,7 @@ namespace TL
|
||||||
user_id = user_id,
|
user_id = user_id,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Set the default suggested admin rights for bots being added as admins to channels. <para>See <a href="https://corefork.telegram.org/method/bots.setBotBroadcastDefaultAdminRights"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: (<a href="https://corefork.telegram.org/method/bots.setBotBroadcastDefaultAdminRights#possible-errors">details</a>)</para></summary>
|
/// <summary>Set the default <a href="https://corefork.telegram.org/api/rights#suggested-bot-rights">suggested admin rights</a> for bots being added as admins to channels, see <a href="https://corefork.telegram.org/api/rights#suggested-bot-rights">here for more info on how to handle them »</a>. <para>See <a href="https://corefork.telegram.org/method/bots.setBotBroadcastDefaultAdminRights"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.setBotBroadcastDefaultAdminRights#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="admin_rights">Admin rights</param>
|
/// <param name="admin_rights">Admin rights</param>
|
||||||
public static Task<bool> Bots_SetBotBroadcastDefaultAdminRights(this Client client, ChatAdminRights admin_rights)
|
public static Task<bool> Bots_SetBotBroadcastDefaultAdminRights(this Client client, ChatAdminRights admin_rights)
|
||||||
=> client.Invoke(new Bots_SetBotBroadcastDefaultAdminRights
|
=> client.Invoke(new Bots_SetBotBroadcastDefaultAdminRights
|
||||||
|
|
@ -4126,7 +4150,7 @@ namespace TL
|
||||||
admin_rights = admin_rights,
|
admin_rights = admin_rights,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Set the default suggested admin rights for bots being added as admins to groups. <para>See <a href="https://corefork.telegram.org/method/bots.setBotGroupDefaultAdminRights"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: (<a href="https://corefork.telegram.org/method/bots.setBotGroupDefaultAdminRights#possible-errors">details</a>)</para></summary>
|
/// <summary>Set the default <a href="https://corefork.telegram.org/api/rights#suggested-bot-rights">suggested admin rights</a> for bots being added as admins to groups, see <a href="https://corefork.telegram.org/api/rights#suggested-bot-rights">here for more info on how to handle them »</a>. <para>See <a href="https://corefork.telegram.org/method/bots.setBotGroupDefaultAdminRights"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/bots.setBotGroupDefaultAdminRights#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="admin_rights">Admin rights</param>
|
/// <param name="admin_rights">Admin rights</param>
|
||||||
public static Task<bool> Bots_SetBotGroupDefaultAdminRights(this Client client, ChatAdminRights admin_rights)
|
public static Task<bool> Bots_SetBotGroupDefaultAdminRights(this Client client, ChatAdminRights admin_rights)
|
||||||
=> client.Invoke(new Bots_SetBotGroupDefaultAdminRights
|
=> client.Invoke(new Bots_SetBotGroupDefaultAdminRights
|
||||||
|
|
@ -4209,7 +4233,7 @@ namespace TL
|
||||||
number = number,
|
number = number,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Export invoice <para>See <a href="https://corefork.telegram.org/method/payments.exportInvoice"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/payments.exportInvoice#possible-errors">details</a>)</para></summary>
|
/// <summary>Generate an <a href="https://corefork.telegram.org/api/links#invoice-links">invoice deep link</a> <para>See <a href="https://corefork.telegram.org/method/payments.exportInvoice"/> [bots: ✓]</para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/payments.exportInvoice#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="invoice_media">Invoice</param>
|
/// <param name="invoice_media">Invoice</param>
|
||||||
public static Task<Payments_ExportedInvoice> Payments_ExportInvoice(this Client client, InputMedia invoice_media)
|
public static Task<Payments_ExportedInvoice> Payments_ExportInvoice(this Client client, InputMedia invoice_media)
|
||||||
=> client.Invoke(new Payments_ExportInvoice
|
=> client.Invoke(new Payments_ExportInvoice
|
||||||
|
|
@ -4217,7 +4241,9 @@ namespace TL
|
||||||
invoice_media = invoice_media,
|
invoice_media = invoice_media,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.assignAppStoreTransaction"/></para></summary>
|
/// <summary>Informs server about a purchase made through the App Store: for official applications only. <para>See <a href="https://corefork.telegram.org/method/payments.assignAppStoreTransaction"/></para></summary>
|
||||||
|
/// <param name="receipt">Receipt</param>
|
||||||
|
/// <param name="purpose">Payment purpose</param>
|
||||||
public static Task<UpdatesBase> Payments_AssignAppStoreTransaction(this Client client, byte[] receipt, InputStorePaymentPurpose purpose)
|
public static Task<UpdatesBase> Payments_AssignAppStoreTransaction(this Client client, byte[] receipt, InputStorePaymentPurpose purpose)
|
||||||
=> client.Invoke(new Payments_AssignAppStoreTransaction
|
=> client.Invoke(new Payments_AssignAppStoreTransaction
|
||||||
{
|
{
|
||||||
|
|
@ -4225,7 +4251,9 @@ namespace TL
|
||||||
purpose = purpose,
|
purpose = purpose,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.assignPlayMarketTransaction"/></para></summary>
|
/// <summary>Informs server about a purchase made through the Play Store: for official applications only. <para>See <a href="https://corefork.telegram.org/method/payments.assignPlayMarketTransaction"/></para></summary>
|
||||||
|
/// <param name="receipt">Receipt</param>
|
||||||
|
/// <param name="purpose">Payment purpose</param>
|
||||||
public static Task<UpdatesBase> Payments_AssignPlayMarketTransaction(this Client client, DataJSON receipt, InputStorePaymentPurpose purpose)
|
public static Task<UpdatesBase> Payments_AssignPlayMarketTransaction(this Client client, DataJSON receipt, InputStorePaymentPurpose purpose)
|
||||||
=> client.Invoke(new Payments_AssignPlayMarketTransaction
|
=> client.Invoke(new Payments_AssignPlayMarketTransaction
|
||||||
{
|
{
|
||||||
|
|
@ -4233,7 +4261,8 @@ namespace TL
|
||||||
purpose = purpose,
|
purpose = purpose,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary><para>See <a href="https://corefork.telegram.org/method/payments.canPurchasePremium"/></para></summary>
|
/// <summary>Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase. <para>See <a href="https://corefork.telegram.org/method/payments.canPurchasePremium"/></para></summary>
|
||||||
|
/// <param name="purpose">Payment purpose</param>
|
||||||
public static Task<bool> Payments_CanPurchasePremium(this Client client, InputStorePaymentPurpose purpose)
|
public static Task<bool> Payments_CanPurchasePremium(this Client client, InputStorePaymentPurpose purpose)
|
||||||
=> client.Invoke(new Payments_CanPurchasePremium
|
=> client.Invoke(new Payments_CanPurchasePremium
|
||||||
{
|
{
|
||||||
|
|
@ -4255,7 +4284,7 @@ namespace TL
|
||||||
/// <param name="videos">Whether this is a video stickerset</param>
|
/// <param name="videos">Whether this is a video stickerset</param>
|
||||||
/// <param name="user_id">Stickerset owner</param>
|
/// <param name="user_id">Stickerset owner</param>
|
||||||
/// <param name="title">Stickerset name, <c>1-64</c> chars</param>
|
/// <param name="title">Stickerset name, <c>1-64</c> chars</param>
|
||||||
/// <param name="short_name">Sticker set name. Can contain only English letters, digits and underscores. Must end with <em>"</em>by<em><bot username="">"</bot></em> (<em><bot_username></bot_username></em> is case insensitive); 1-64 characters</param>
|
/// <param name="short_name">Short name of sticker set, to be used in <a href="https://corefork.telegram.org/api/links#stickerset-links">sticker deep links »</a>. Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in <c>"_by_<bot_username>"</c>. <c><bot_username></c> is case insensitive. 1-64 characters.</param>
|
||||||
/// <param name="thumb">Thumbnail</param>
|
/// <param name="thumb">Thumbnail</param>
|
||||||
/// <param name="stickers">Stickers</param>
|
/// <param name="stickers">Stickers</param>
|
||||||
/// <param name="software">Used when <a href="https://corefork.telegram.org/import-stickers">importing stickers using the sticker import SDKs</a>, specifies the name of the software that created the stickers</param>
|
/// <param name="software">Used when <a href="https://corefork.telegram.org/import-stickers">importing stickers using the sticker import SDKs</a>, specifies the name of the software that created the stickers</param>
|
||||||
|
|
@ -4336,7 +4365,7 @@ namespace TL
|
||||||
{
|
{
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Start a telegram phone call <para>See <a href="https://corefork.telegram.org/method/phone.requestCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403,500 (<a href="https://corefork.telegram.org/method/phone.requestCall#possible-errors">details</a>)</para></summary>
|
/// <summary>Start a telegram phone call <para>See <a href="https://corefork.telegram.org/method/phone.requestCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400,403 (<a href="https://corefork.telegram.org/method/phone.requestCall#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="video">Whether to start a video call</param>
|
/// <param name="video">Whether to start a video call</param>
|
||||||
/// <param name="user_id">Destination of the phone call</param>
|
/// <param name="user_id">Destination of the phone call</param>
|
||||||
/// <param name="random_id">Random ID to avoid resending the same object</param>
|
/// <param name="random_id">Random ID to avoid resending the same object</param>
|
||||||
|
|
@ -4402,7 +4431,7 @@ namespace TL
|
||||||
connection_id = connection_id,
|
connection_id = connection_id,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Rate a call <para>See <a href="https://corefork.telegram.org/method/phone.setCallRating"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/phone.setCallRating#possible-errors">details</a>)</para></summary>
|
/// <summary>Rate a call, returns info about the rating message sent to the official VoIP bot. <para>See <a href="https://corefork.telegram.org/method/phone.setCallRating"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/phone.setCallRating#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="user_initiative">Whether the user decided on their own initiative to rate the call</param>
|
/// <param name="user_initiative">Whether the user decided on their own initiative to rate the call</param>
|
||||||
/// <param name="peer">The call to rate</param>
|
/// <param name="peer">The call to rate</param>
|
||||||
/// <param name="rating">Rating in <c>1-5</c> stars</param>
|
/// <param name="rating">Rating in <c>1-5</c> stars</param>
|
||||||
|
|
@ -4457,7 +4486,7 @@ namespace TL
|
||||||
/// <param name="video_stopped">If set, the user's video will be disabled by default upon joining.</param>
|
/// <param name="video_stopped">If set, the user's video will be disabled by default upon joining.</param>
|
||||||
/// <param name="call">The group call</param>
|
/// <param name="call">The group call</param>
|
||||||
/// <param name="join_as">Join the group call, presenting yourself as the specified user/channel</param>
|
/// <param name="join_as">Join the group call, presenting yourself as the specified user/channel</param>
|
||||||
/// <param name="invite_hash">The invitation hash from the invite link: <c>https://t.me/username?voicechat=hash</c></param>
|
/// <param name="invite_hash">The invitation hash from the <a href="https://corefork.telegram.org/api/links#video-chat-video-chat-livestream-links">invite link »</a>, if provided allows speaking in a livestream or muted group chat.</param>
|
||||||
/// <param name="params_">WebRTC parameters</param>
|
/// <param name="params_">WebRTC parameters</param>
|
||||||
public static Task<UpdatesBase> Phone_JoinGroupCall(this Client client, InputGroupCall call, InputPeer join_as, DataJSON params_, bool muted = false, bool video_stopped = false, string invite_hash = null)
|
public static Task<UpdatesBase> Phone_JoinGroupCall(this Client client, InputGroupCall call, InputPeer join_as, DataJSON params_, bool muted = false, bool video_stopped = false, string invite_hash = null)
|
||||||
=> client.Invoke(new Phone_JoinGroupCall
|
=> client.Invoke(new Phone_JoinGroupCall
|
||||||
|
|
@ -4535,7 +4564,7 @@ namespace TL
|
||||||
limit = limit,
|
limit = limit,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs <para>See <a href="https://corefork.telegram.org/method/phone.checkGroupCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/phone.checkGroupCall#possible-errors">details</a>)</para></summary>
|
/// <summary>Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs.<br/>Returns an intersection of the source IDs specified in <c>sources</c>, and the source IDs currently being forwarded by the SFU. <para>See <a href="https://corefork.telegram.org/method/phone.checkGroupCall"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/phone.checkGroupCall#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="call">Group call</param>
|
/// <param name="call">Group call</param>
|
||||||
/// <param name="sources">Source IDs</param>
|
/// <param name="sources">Source IDs</param>
|
||||||
public static Task<int[]> Phone_CheckGroupCall(this Client client, InputGroupCall call, int[] sources)
|
public static Task<int[]> Phone_CheckGroupCall(this Client client, InputGroupCall call, int[] sources)
|
||||||
|
|
@ -4601,8 +4630,8 @@ namespace TL
|
||||||
peer = peer,
|
peer = peer,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Get an invite link for a group call or livestream <para>See <a href="https://corefork.telegram.org/method/phone.exportGroupCallInvite"/></para></summary>
|
/// <summary>Get an <a href="https://corefork.telegram.org/api/links#voice-chat-video-chat-livestream-links">invite link</a> for a group call or livestream <para>See <a href="https://corefork.telegram.org/method/phone.exportGroupCallInvite"/></para></summary>
|
||||||
/// <param name="can_self_unmute">For livestreams, if set, users that join using this link will be able to speak without explicitly requesting permission by (for example by raising their hand).</param>
|
/// <param name="can_self_unmute">For livestreams or muted group chats, if set, users that join using this link will be able to speak without explicitly requesting permission by (for example by raising their hand).</param>
|
||||||
/// <param name="call">The group call</param>
|
/// <param name="call">The group call</param>
|
||||||
public static Task<Phone_ExportedGroupCallInvite> Phone_ExportGroupCallInvite(this Client client, InputGroupCall call, bool can_self_unmute = false)
|
public static Task<Phone_ExportedGroupCallInvite> Phone_ExportGroupCallInvite(this Client client, InputGroupCall call, bool can_self_unmute = false)
|
||||||
=> client.Invoke(new Phone_ExportGroupCallInvite
|
=> client.Invoke(new Phone_ExportGroupCallInvite
|
||||||
|
|
@ -4686,7 +4715,7 @@ namespace TL
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Get localization pack strings <para>See <a href="https://corefork.telegram.org/method/langpack.getLangPack"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/langpack.getLangPack#possible-errors">details</a>)</para></summary>
|
/// <summary>Get localization pack strings <para>See <a href="https://corefork.telegram.org/method/langpack.getLangPack"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/langpack.getLangPack#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="lang_pack">Language pack name</param>
|
/// <param name="lang_pack">Language pack name, usually obtained from a <a href="https://corefork.telegram.org/api/links#language-pack-links">language pack link</a></param>
|
||||||
/// <param name="lang_code">Language code</param>
|
/// <param name="lang_code">Language code</param>
|
||||||
public static Task<LangPackDifference> Langpack_GetLangPack(this Client client, string lang_pack, string lang_code)
|
public static Task<LangPackDifference> Langpack_GetLangPack(this Client client, string lang_pack, string lang_code)
|
||||||
=> client.Invoke(new Langpack_GetLangPack
|
=> client.Invoke(new Langpack_GetLangPack
|
||||||
|
|
@ -4696,7 +4725,7 @@ namespace TL
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Get strings from a language pack <para>See <a href="https://corefork.telegram.org/method/langpack.getStrings"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/langpack.getStrings#possible-errors">details</a>)</para></summary>
|
/// <summary>Get strings from a language pack <para>See <a href="https://corefork.telegram.org/method/langpack.getStrings"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/langpack.getStrings#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="lang_pack">Language pack name</param>
|
/// <param name="lang_pack">Language pack name, usually obtained from a <a href="https://corefork.telegram.org/api/links#language-pack-links">language pack link</a></param>
|
||||||
/// <param name="lang_code">Language code</param>
|
/// <param name="lang_code">Language code</param>
|
||||||
/// <param name="keys">Strings to get</param>
|
/// <param name="keys">Strings to get</param>
|
||||||
public static Task<LangPackStringBase[]> Langpack_GetStrings(this Client client, string lang_pack, string lang_code, string[] keys)
|
public static Task<LangPackStringBase[]> Langpack_GetStrings(this Client client, string lang_pack, string lang_code, string[] keys)
|
||||||
|
|
@ -4728,7 +4757,7 @@ namespace TL
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>Get information about a language in a localization pack <para>See <a href="https://corefork.telegram.org/method/langpack.getLanguage"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/langpack.getLanguage#possible-errors">details</a>)</para></summary>
|
/// <summary>Get information about a language in a localization pack <para>See <a href="https://corefork.telegram.org/method/langpack.getLanguage"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/langpack.getLanguage#possible-errors">details</a>)</para></summary>
|
||||||
/// <param name="lang_pack">Language pack name</param>
|
/// <param name="lang_pack">Language pack name, usually obtained from a <a href="https://corefork.telegram.org/api/links#language-pack-links">language pack link</a></param>
|
||||||
/// <param name="lang_code">Language code</param>
|
/// <param name="lang_code">Language code</param>
|
||||||
public static Task<LangPackLanguage> Langpack_GetLanguage(this Client client, string lang_pack, string lang_code)
|
public static Task<LangPackLanguage> Langpack_GetLanguage(this Client client, string lang_pack, string lang_code)
|
||||||
=> client.Invoke(new Langpack_GetLanguage
|
=> client.Invoke(new Langpack_GetLanguage
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,7 @@ namespace TL
|
||||||
public string file_name;
|
public string file_name;
|
||||||
/// <summary>File MIME-type</summary>
|
/// <summary>File MIME-type</summary>
|
||||||
public string mime_type;
|
public string mime_type;
|
||||||
/// <summary>Document size</summary>
|
/// <summary>Document size (<see cref="int"/> on layer <143, <see cref="long"/> on layer >=143)</summary>
|
||||||
public int size;
|
public int size;
|
||||||
/// <summary>Key to decrypt the attached document file</summary>
|
/// <summary>Key to decrypt the attached document file</summary>
|
||||||
public byte[] key;
|
public byte[] key;
|
||||||
|
|
@ -439,7 +439,7 @@ namespace TL
|
||||||
public int thumb_h;
|
public int thumb_h;
|
||||||
/// <summary>File MIME-type</summary>
|
/// <summary>File MIME-type</summary>
|
||||||
public string mime_type;
|
public string mime_type;
|
||||||
/// <summary>Document size</summary>
|
/// <summary>Document size (<see cref="int"/> on layer <143, <see cref="long"/> on layer >=143)</summary>
|
||||||
public int size;
|
public int size;
|
||||||
/// <summary>Key to decrypt the attached document file</summary>
|
/// <summary>Key to decrypt the attached document file</summary>
|
||||||
public byte[] key;
|
public byte[] key;
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
|
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
|
||||||
<PackageReference Include="IndexRange" Version="1.0.2" />
|
<PackageReference Include="IndexRange" Version="1.0.2" />
|
||||||
<PackageReference Include="System.Memory" Version="4.5.5" />
|
<PackageReference Include="System.Memory" Version="4.5.5" />
|
||||||
<PackageReference Include="System.Text.Json" Version="6.0.4" />
|
<PackageReference Include="System.Text.Json" Version="6.0.5" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue