Upgrade to layer 137

This commit is contained in:
Wizou 2022-01-19 21:31:07 +01:00
parent 8d70f241ad
commit 411fcad556
4 changed files with 14 additions and 10 deletions

2
.github/dev.yml vendored
View file

@ -2,7 +2,7 @@ pr: none
trigger: trigger:
- master - master
name: 1.9.3-dev.$(Rev:r) name: 1.9.4-dev.$(Rev:r)
pool: pool:
vmImage: ubuntu-latest vmImage: ubuntu-latest

View file

@ -1,6 +1,6 @@
[![NuGet version](https://img.shields.io/nuget/v/WTelegramClient)](https://www.nuget.org/packages/WTelegramClient/) [![NuGet version](https://img.shields.io/nuget/v/WTelegramClient)](https://www.nuget.org/packages/WTelegramClient/)
[![Build Status](https://img.shields.io/azure-devops/build/wiz0u/WTelegramClient/7)](https://dev.azure.com/wiz0u/WTelegramClient/_build?definitionId=7) [![Build Status](https://img.shields.io/azure-devops/build/wiz0u/WTelegramClient/7)](https://dev.azure.com/wiz0u/WTelegramClient/_build?definitionId=7)
[![API Layer](https://img.shields.io/badge/API_Layer-136-blueviolet)](https://corefork.telegram.org/methods) [![API Layer](https://img.shields.io/badge/API_Layer-137-blueviolet)](https://corefork.telegram.org/methods)
[![dev nuget](https://img.shields.io/badge/dynamic/json?color=ffc040&label=dev%20nuget&query=%24.versions%5B0%5D&url=https%3A%2F%2Fpkgs.dev.azure.com%2Fwiz0u%2F81bd92b7-0bb9-4701-b426-09090b27e037%2F_packaging%2F46ce0497-7803-4bd4-8c6c-030583e7c371%2Fnuget%2Fv3%2Fflat2%2Fwtelegramclient%2Findex.json)](https://dev.azure.com/wiz0u/WTelegramClient/_packaging?_a=package&feed=WTelegramClient&package=WTelegramClient&protocolType=NuGet) [![dev nuget](https://img.shields.io/badge/dynamic/json?color=ffc040&label=dev%20nuget&query=%24.versions%5B0%5D&url=https%3A%2F%2Fpkgs.dev.azure.com%2Fwiz0u%2F81bd92b7-0bb9-4701-b426-09090b27e037%2F_packaging%2F46ce0497-7803-4bd4-8c6c-030583e7c371%2Fnuget%2Fv3%2Fflat2%2Fwtelegramclient%2Findex.json)](https://dev.azure.com/wiz0u/WTelegramClient/_packaging?_a=package&feed=WTelegramClient&package=WTelegramClient&protocolType=NuGet)
[![Support Chat](https://img.shields.io/badge/Chat_with_us-on_Telegram-0088cc)](https://t.me/WTelegramClient) [![Support Chat](https://img.shields.io/badge/Chat_with_us-on_Telegram-0088cc)](https://t.me/WTelegramClient)
[![Donate](https://img.shields.io/badge/Help_this_project:-Donate-ff4444)](http://wizou.fr/donate.html) [![Donate](https://img.shields.io/badge/Help_this_project:-Donate-ff4444)](http://wizou.fr/donate.html)
@ -35,7 +35,7 @@ If you run this program again, you will notice that only **api_id** and **api_ha
This is because WTelegramClient saves (typically in the encrypted file **bin\WTelegram.session**) its state and the authentication keys that were negociated with Telegram so that you needn't sign-in again every time. This is because WTelegramClient saves (typically in the encrypted file **bin\WTelegram.session**) its state and the authentication keys that were negociated with Telegram so that you needn't sign-in again every time.
That file path is configurable, and under various circumstances (changing user or server address) you may want to change it or simply delete the existing session file in order to restart the authentification process. That file path is configurable (session_pathname), and under various circumstances (changing user or server address) you may want to change it or simply delete the existing session file in order to restart the authentification process.
# Non-interactive configuration # Non-interactive configuration
Your next step will probably be to provide a configuration to the client so that the required elements (in bold above) are not prompted through the Console but answered by your program. Your next step will probably be to provide a configuration to the client so that the required elements (in bold above) are not prompted through the Console but answered by your program.
@ -78,7 +78,7 @@ All the Telegram API classes/methods are fully documented through Intellisense:
The Telegram [API object classes](https://corefork.telegram.org/schema) are defined in the `TL` namespace, and the [API functions](https://corefork.telegram.org/methods) are available as async methods of `Client`. The Telegram [API object classes](https://corefork.telegram.org/schema) are defined in the `TL` namespace, and the [API functions](https://corefork.telegram.org/methods) are available as async methods of `Client`.
Below is an example of calling the [messages.getAllChats](https://corefork.telegram.org/method/messages.getAllChats) API function and enumerating the various groups/channels the user is in, and then using `client.SendMessageAsync` helper function to easily send a message: Below is an example of calling the [messages.getAllChats](https://corefork.telegram.org/method/messages.getAllChats) API function, enumerating the various groups/channels the user is in, and then using `client.SendMessageAsync` helper function to easily send a message:
```csharp ```csharp
using TL; using TL;
... ...
@ -129,18 +129,18 @@ The other configuration items that you can override include: **session_pathname,
Optional API parameters have a default value of `null` when unset. Passing `null` for a required string/array is the same as *empty* (0-length). Required API parameters/fields can sometimes be set to 0 or `null` when unused (check API documentation or experiment). Optional API parameters have a default value of `null` when unset. Passing `null` for a required string/array is the same as *empty* (0-length). Required API parameters/fields can sometimes be set to 0 or `null` when unused (check API documentation or experiment).
I've added several useful converters, implicit cast or helper properties to various API object so that they are more easy to manipulate. I've added several useful converters, implicit cast or helper properties to various API objects so that they are more easy to manipulate.
Beyond the TL async methods, the Client class offers a few other methods to simplify the sending/receiving of files, medias or messages. Beyond the TL async methods, the Client class offers a few other methods to simplify the sending/receiving of files, medias or messages.
This library works best with **.NET 5.0+** and is also available for **.NET Standard 2.0** (.NET Framework 4.6.1+ & .NET Core 2.0+) This library works best (faster) with **.NET 5.0+** and is also available for **.NET Standard 2.0** (.NET Framework 4.6.1+ & .NET Core 2.0+)
# Library uses and limitations # Library uses and limitations
This library can be used for any Telegram scenarios including: This library can be used for any Telegram scenarios including:
- Sequential or parallel automated steps based on API requests/responses - Sequential or parallel automated steps based on API requests/responses
- Real-time [monitoring](https://github.com/wiz0u/WTelegramClient/blob/master/EXAMPLES.md#updates) of incoming Updates/Messages - Real-time [monitoring](https://github.com/wiz0u/WTelegramClient/blob/master/EXAMPLES.md#updates) of incoming Updates/Messages
- Download/upload of files/media - Download/upload of files/media
- or even a full-featured interactive client - Building a full-featured interactive client
It has been tested in a Console app, [in a WinForms app](https://github.com/wiz0u/WTelegramClient/blob/master/FAQ.md#gui), [in ASP.NET webservice](https://github.com/wiz0u/WTelegramClient/blob/master/EXAMPLES.md#logging). It has been tested in a Console app, [in a WinForms app](https://github.com/wiz0u/WTelegramClient/blob/master/FAQ.md#gui), [in ASP.NET webservice](https://github.com/wiz0u/WTelegramClient/blob/master/EXAMPLES.md#logging).
Secret chats (end-to-end encryption, PFS) and connection to CDN DCs have not been tested yet. Secret chats (end-to-end encryption, PFS) and connection to CDN DCs have not been tested yet.

View file

@ -12507,7 +12507,7 @@ namespace TL
} }
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/availableReaction"/></para></summary> /// <summary><para>See <a href="https://corefork.telegram.org/constructor/availableReaction"/></para></summary>
[TLDef(0x021D7C4B)] [TLDef(0xC077EC01)]
public class AvailableReaction : IObject public class AvailableReaction : IObject
{ {
public Flags flags; public Flags flags;
@ -12518,10 +12518,14 @@ namespace TL
public DocumentBase select_animation; public DocumentBase select_animation;
public DocumentBase activate_animation; public DocumentBase activate_animation;
public DocumentBase effect_animation; public DocumentBase effect_animation;
[IfFlag(1)] public DocumentBase around_animation;
[IfFlag(1)] public DocumentBase center_icon;
[Flags] public enum Flags [Flags] public enum Flags
{ {
inactive = 0x1, inactive = 0x1,
/// <summary>Field <see cref="around_animation"/> has a value</summary>
has_around_animation = 0x2,
} }
} }

View file

@ -7,7 +7,7 @@ namespace TL
{ {
public static class Layer public static class Layer
{ {
public const int Version = 136; // fetched 30/12/2021 11:11:54 public const int Version = 137; // fetched 19/01/2022 20:17:41
internal const uint VectorCtor = 0x1CB5C415; internal const uint VectorCtor = 0x1CB5C415;
internal const uint NullCtor = 0x56730BCC; internal const uint NullCtor = 0x56730BCC;
internal const uint RpcResultCtor = 0xF35C6D01; internal const uint RpcResultCtor = 0xF35C6D01;
@ -937,7 +937,7 @@ namespace TL
[0x087B6E36] = typeof(MessageReactions), [0x087B6E36] = typeof(MessageReactions),
[0x932844FA] = typeof(MessageUserReaction), [0x932844FA] = typeof(MessageUserReaction),
[0xA366923C] = typeof(Messages_MessageReactionsList), [0xA366923C] = typeof(Messages_MessageReactionsList),
[0x021D7C4B] = typeof(AvailableReaction), [0xC077EC01] = typeof(AvailableReaction),
[0x9F071957] = null,//Messages_AvailableReactionsNotModified [0x9F071957] = null,//Messages_AvailableReactionsNotModified
[0x768E3AAD] = typeof(Messages_AvailableReactions), [0x768E3AAD] = typeof(Messages_AvailableReactions),
// from TL.Secret: // from TL.Secret: