From 2cee5b8e6e7e50852f13306b583068990b455fbb Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Mon, 10 Oct 2022 13:56:41 +0200 Subject: [PATCH] update doc --- .github/FUNDING.yml | 2 +- EXAMPLES.md | 7 ++++--- README.md | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index f6efc6d..cf80d38 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1 @@ -custom: ["http://wizou.fr/donate.html"] +custom: ["http://t.me/WTelegramBot?start=donate"] diff --git a/EXAMPLES.md b/EXAMPLES.md index 162ffa8..e3b29c3 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -483,10 +483,11 @@ await client.SendMessageAsync(to_chat, msg.message, msg.media?.ToInputMedia(), e ``` -### Send/receive end-to-end encrypted messages in Secret Chats +### Send/receive end-to-end encrypted messages & files in Secret Chats -This can be done easily using the helper class `WTelegram.SecretChats` offering methods to manage/encrypt/decrypt secret chats & encrypted messages. +This can be done easily using the helper class `WTelegram.SecretChats` offering methods to manage/encrypt/decrypt secret chats & encrypted messages/files. You can view a full working example at [Examples/Program_SecretChats.cs](Examples/Program_SecretChats.cs). -Secret Chats have been tested successfully with Telegram Android & iOS official clients. +Secret Chats have been tested successfully with Telegram Android & iOS official clients. +You can also check our [FAQ for more implementation details](FAQ.md#14-secret-chats-implementation-details). \ No newline at end of file diff --git a/README.md b/README.md index ef4c92e..5b4fa8a 100644 --- a/README.md +++ b/README.md @@ -97,10 +97,10 @@ await DoLogin("+12025550156"); async Task DoLogin(string loginInfo) // add this method to your code { while (client.User == null) - switch (await client.Login(loginInfo)) // returns which configuration info is requested for the login to continue + 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 "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; } @@ -193,7 +193,7 @@ 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 -- Exchange end-to-end encrypted messages in [Secret Chats](https://github.com/wiz0u/WTelegramClient/blob/master/EXAMPLES.md#e2e) +- Exchange end-to-end encrypted messages/files in [Secret Chats](https://github.com/wiz0u/WTelegramClient/blob/master/EXAMPLES.md#e2e) - Building a full-featured interactive client It has been tested in a Console app, [in Windows Forms](https://github.com/wiz0u/WTelegramClient/raw/master/Examples/WinForms_app.zip),