From ba523f7d21c7273d1b35bafcba3ff73ccafcafe5 Mon Sep 17 00:00:00 2001
From: Wizou <11647984+wiz0u@users.noreply.github.com>
Date: Sat, 12 Nov 2022 19:40:34 +0100
Subject: [PATCH] Releasing 3.1.1
---
README.md | 20 ++++++++++----------
src/WTelegramClient.csproj | 6 +++---
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/README.md b/README.md
index 16da3f6..436378c 100644
--- a/README.md
+++ b/README.md
@@ -96,15 +96,15 @@ await DoLogin("+12025550156"); // user's phone_number
async Task DoLogin(string loginInfo) // (add this method to your code)
{
- while (client.User == null)
- switch (await client.Login(loginInfo)) // returns which config info is needed to continue login
- {
- case "verification_code": Console.Write("Code: "); loginInfo = Console.ReadLine(); break;
- case "name": loginInfo = "John Doe"; break; // if sign-up is required (first_name last_name)
- case "password": loginInfo = "secret!"; break; // if user has enabled 2FA
- default: loginInfo = null; break;
- }
- Console.WriteLine($"We are logged-in as {client.User} (id {client.User.id})");
+ while (client.User == null)
+ switch (await client.Login(loginInfo)) // returns which config is needed to continue login
+ {
+ case "verification_code": Console.Write("Code: "); loginInfo = Console.ReadLine(); break;
+ case "name": loginInfo = "John Doe"; break; // if sign-up is required (first/last_name)
+ case "password": loginInfo = "secret!"; break; // if user has enabled 2FA
+ default: loginInfo = null; break;
+ }
+ Console.WriteLine($"We are logged-in as {client.User} (id {client.User.id})");
}
```
@@ -134,7 +134,7 @@ foreach (var (id, chat) in chats.chats)
switch (chat) // example of downcasting to their real classes:
{
case Chat basicChat when basicChat.IsActive:
- Console.WriteLine($"{id}: Basic chat: {basicChat.title} with {basicChat.participants_count} members");
+ Console.WriteLine($"{id}: Basic chat: {basicChat.title}");
break;
case Channel group when group.IsGroup:
Console.WriteLine($"{id}: Group {group.username}: {group.title}");
diff --git a/src/WTelegramClient.csproj b/src/WTelegramClient.csproj
index 8fce696..5ff24ba 100644
--- a/src/WTelegramClient.csproj
+++ b/src/WTelegramClient.csproj
@@ -23,7 +23,7 @@
git
Telegram;Client;Api;UserBot;MTProto;TLSharp;OpenTl
README.md
- $(ReleaseNotes.Replace('|',$([System.Environment]::NewLine)))
+ $(ReleaseNotes.Replace("|", "%0D%0A").Replace(" - ","%0D%0A- ").Replace(" ", "%0D%0A%0D%0A"))
IDE0079;0419;1573;1591;NETSDK1138
TRACE;OBFUSCATION
@@ -42,9 +42,9 @@
-
+