mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
Upgrade to layer 137
This commit is contained in:
parent
8d70f241ad
commit
411fcad556
2
.github/dev.yml
vendored
2
.github/dev.yml
vendored
|
|
@ -2,7 +2,7 @@ pr: none
|
|||
trigger:
|
||||
- master
|
||||
|
||||
name: 1.9.3-dev.$(Rev:r)
|
||||
name: 1.9.4-dev.$(Rev:r)
|
||||
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
|
|
|
|||
12
README.md
12
README.md
|
|
@ -1,6 +1,6 @@
|
|||
[](https://www.nuget.org/packages/WTelegramClient/)
|
||||
[](https://dev.azure.com/wiz0u/WTelegramClient/_build?definitionId=7)
|
||||
[](https://corefork.telegram.org/methods)
|
||||
[](https://corefork.telegram.org/methods)
|
||||
[](https://dev.azure.com/wiz0u/WTelegramClient/_packaging?_a=package&feed=WTelegramClient&package=WTelegramClient&protocolType=NuGet)
|
||||
[](https://t.me/WTelegramClient)
|
||||
[](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.
|
||||
|
||||
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
|
||||
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`.
|
||||
|
||||
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
|
||||
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).
|
||||
|
||||
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.
|
||||
|
||||
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
|
||||
This library can be used for any Telegram scenarios including:
|
||||
- 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
|
||||
- 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).
|
||||
Secret chats (end-to-end encryption, PFS) and connection to CDN DCs have not been tested yet.
|
||||
|
|
|
|||
|
|
@ -12507,7 +12507,7 @@ namespace TL
|
|||
}
|
||||
|
||||
/// <summary><para>See <a href="https://corefork.telegram.org/constructor/availableReaction"/></para></summary>
|
||||
[TLDef(0x021D7C4B)]
|
||||
[TLDef(0xC077EC01)]
|
||||
public class AvailableReaction : IObject
|
||||
{
|
||||
public Flags flags;
|
||||
|
|
@ -12518,10 +12518,14 @@ namespace TL
|
|||
public DocumentBase select_animation;
|
||||
public DocumentBase activate_animation;
|
||||
public DocumentBase effect_animation;
|
||||
[IfFlag(1)] public DocumentBase around_animation;
|
||||
[IfFlag(1)] public DocumentBase center_icon;
|
||||
|
||||
[Flags] public enum Flags
|
||||
{
|
||||
inactive = 0x1,
|
||||
/// <summary>Field <see cref="around_animation"/> has a value</summary>
|
||||
has_around_animation = 0x2,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace TL
|
|||
{
|
||||
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 NullCtor = 0x56730BCC;
|
||||
internal const uint RpcResultCtor = 0xF35C6D01;
|
||||
|
|
@ -937,7 +937,7 @@ namespace TL
|
|||
[0x087B6E36] = typeof(MessageReactions),
|
||||
[0x932844FA] = typeof(MessageUserReaction),
|
||||
[0xA366923C] = typeof(Messages_MessageReactionsList),
|
||||
[0x021D7C4B] = typeof(AvailableReaction),
|
||||
[0xC077EC01] = typeof(AvailableReaction),
|
||||
[0x9F071957] = null,//Messages_AvailableReactionsNotModified
|
||||
[0x768E3AAD] = typeof(Messages_AvailableReactions),
|
||||
// from TL.Secret:
|
||||
|
|
|
|||
Loading…
Reference in a new issue