update doc

This commit is contained in:
Wizou 2022-10-10 13:56:41 +02:00
parent 9c14a17af1
commit 2cee5b8e6e
3 changed files with 8 additions and 7 deletions

2
.github/FUNDING.yml vendored
View file

@ -1 +1 @@
custom: ["http://wizou.fr/donate.html"]
custom: ["http://t.me/WTelegramBot?start=donate"]

View file

@ -483,10 +483,11 @@ await client.SendMessageAsync(to_chat, msg.message, msg.media?.ToInputMedia(), e
```
<a name="e2e"></a><a name="secrets"></a>
### 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).

View file

@ -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),