mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
small update to ReadMe
This commit is contained in:
parent
c157fba5e4
commit
c0b10e82f4
2
.github/dev.yml
vendored
2
.github/dev.yml
vendored
|
|
@ -2,7 +2,7 @@ pr: none
|
|||
trigger:
|
||||
- master
|
||||
|
||||
name: 1.7.1-dev.$(Rev:r)
|
||||
name: 1.7.2-dev.$(Rev:r)
|
||||
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
|
|
|
|||
14
README.md
14
README.md
|
|
@ -1,7 +1,7 @@
|
|||
[](https://www.nuget.org/packages/WTelegramClient/)
|
||||
[](https://dev.azure.com/wiz0u/WTelegramClient/_packaging?_a=package&feed=WTelegramClient&package=WTelegramClient&protocolType=NuGet)
|
||||
[](https://dev.azure.com/wiz0u/WTelegramClient/_build?definitionId=7)
|
||||
[](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)
|
||||
|
||||
|
|
@ -85,15 +85,15 @@ Console.WriteLine("This user has joined the following:");
|
|||
foreach (var (id, chat) in chats.chats)
|
||||
switch (chat)
|
||||
{
|
||||
case Chat smallgroup when (smallgroup.flags & Chat.Flags.deactivated) == 0:
|
||||
case Chat smallgroup when smallgroup.IsActive:
|
||||
Console.WriteLine($"{id}: Small group: {smallgroup.title} with {smallgroup.participants_count} members");
|
||||
break;
|
||||
case Channel channel when (channel.flags & Channel.Flags.broadcast) != 0:
|
||||
Console.WriteLine($"{id}: Channel {channel.username}: {channel.title}");
|
||||
break;
|
||||
case Channel group:
|
||||
case Channel group when group.IsGroup:
|
||||
Console.WriteLine($"{id}: Group {group.username}: {group.title}");
|
||||
break;
|
||||
case Channel channel:
|
||||
Console.WriteLine($"{id}: Channel {channel.username}: {channel.title}");
|
||||
break;
|
||||
}
|
||||
Console.Write("Type a chat ID to send a message: ");
|
||||
long chatId = long.Parse(Console.ReadLine());
|
||||
|
|
@ -111,7 +111,7 @@ In the API, Telegram uses some terms/classnames that can be confusing as they di
|
|||
- `Peer` : Either a `Chat`, `Channel` or a private chat with a `User`
|
||||
- Dialog : The current status of a chat with a `Peer` *(draft, last message, unread count, pinned...)*
|
||||
- DC (DataCenter) : There are a few datacenters depending on where in the world the user (or an uploaded media file) is from.
|
||||
- Access Hash : For more security, Telegram requires you to provide the specific `access_hash` for chats, files and other resources before interacting with them (not required for a simple `Chat`). This is like showing a pass that proves you are entitled to access it. You obtain this hash when you first gain access to a resource and occasionnally later when some events about this resource are happening or if you query the API. You should remember this hash if you want to access that resource later.
|
||||
- Access Hash : For more security, Telegram requires you to provide the specific `access_hash` for users, chats, and other resources before interacting with them (not required for a simple `Chat`). This acts like a proof you are entitled to access it. You obtain this hash when you first gain access to a resource, or by querying the API or if there is an update about this resource. You should save this hash if you want to access that resource later.
|
||||
|
||||
# Other things to know
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace WTelegram
|
|||
{
|
||||
public static class Helpers
|
||||
{
|
||||
/// <summary>Callback for logging a line (string) with the associated <see href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.loglevel">severity level</see> (int)</summary>
|
||||
/// <summary>Callback for logging a line (string) with its associated <see href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.loglevel">severity level</see> (int)</summary>
|
||||
public static Action<int, string> Log { get; set; } = DefaultLogger;
|
||||
|
||||
/// <summary>For serializing indented Json with fields included</summary>
|
||||
|
|
|
|||
Loading…
Reference in a new issue