diff --git a/Examples/ASPnet_webapp.zip b/Examples/ASPnet_webapp.zip index 92b8790..238bda9 100644 Binary files a/Examples/ASPnet_webapp.zip and b/Examples/ASPnet_webapp.zip differ diff --git a/Examples/Program_ListenUpdates.cs b/Examples/Program_ListenUpdates.cs index faaa057..673754c 100644 --- a/Examples/Program_ListenUpdates.cs +++ b/Examples/Program_ListenUpdates.cs @@ -23,7 +23,7 @@ namespace WTelegramClientTest Client.Update += Client_Update; My = await Client.LoginUserIfNeeded(); Users[My.id] = My; - // Note that on login Telegram may sends a bunch of updates/messages that happened in the past and were not acknowledged + // Note: on login, Telegram may sends a bunch of updates/messages that happened in the past and were not acknowledged Console.WriteLine($"We are logged-in as {My.username ?? My.first_name + " " + My.last_name} (id {My.id})"); // We collect all infos about the users/chats so that updates can be printed with their names var dialogs = await Client.Messages_GetAllDialogs(); // dialogs = groups/channels/users diff --git a/Examples/WinForms_app.zip b/Examples/WinForms_app.zip index ce5ab3f..e7cbfb3 100644 Binary files a/Examples/WinForms_app.zip and b/Examples/WinForms_app.zip differ diff --git a/FAQ.md b/FAQ.md index c9b2f0b..eb69319 100644 --- a/FAQ.md +++ b/FAQ.md @@ -210,7 +210,7 @@ In particular, it will detect and handle automatically and properly the various * 2FA password required (your Config needs to provide "password") * Account registration/sign-up required (your Config needs to provide "first_name", "last_name") * Request to resend the verification code through alternate ways like SMS (if your Config answer an empty "verification_code" initially) -* Transient failures, slowness to respond, checks for encryption key safety, etc.. +* Transient failures, slowness to respond, wrong code/password, checks for encryption key safety, etc.. Contrary to TLSharp, WTelegramClient supports MTProto v2.0 (more secured), transport obfuscation, protocol security checks, MTProto Proxy, real-time updates, multiple DC connections, API documentation in Intellisense... diff --git a/src/Client.cs b/src/Client.cs index f5cf015..507c351 100644 --- a/src/Client.cs +++ b/src/Client.cs @@ -24,7 +24,7 @@ namespace WTelegram { public partial class Client : IDisposable { - /// This event will be called when an unsollicited update/message is sent by Telegram servers + /// This event will be called when unsollicited updates/messages are sent by Telegram servers /// See Examples/Program_ListenUpdate.cs for how to use this public event Action Update; /// Used to create a TcpClient connected to the given address/port, or throw an exception on failure @@ -322,8 +322,8 @@ namespace WTelegram // TODO: implement an Updates gaps handling system? https://core.telegram.org/api/updates if (IsMainDC) { - var udpatesState = await this.Updates_GetState(); // this call reenables incoming Updates - OnUpdate(udpatesState); + var updatesState = await this.Updates_GetState(); // this call reenables incoming Updates + OnUpdate(updatesState); } } else @@ -669,7 +669,7 @@ namespace WTelegram } catch (Exception ex) { - Helpers.Log(4, $"Update callback on {obj.GetType().Name} raised {ex}"); + Helpers.Log(4, $"{nameof(Update)} callback on {obj.GetType().Name} raised {ex}"); } }