diff --git a/Examples/Program_CollectAccessHash.cs b/Examples/Program_CollectAccessHash.cs index f67465d..4ed535f 100644 --- a/Examples/Program_CollectAccessHash.cs +++ b/Examples/Program_CollectAccessHash.cs @@ -8,7 +8,7 @@ using TL; namespace WTelegramClientTest { - class Program_CollectAccessHash + static class Program_CollectAccessHash { private const string StateFilename = "SavedState.json"; private const long DurovID = 1006503122; // known ID for Durov's Channel diff --git a/Examples/Program_DownloadSavedMedia.cs b/Examples/Program_DownloadSavedMedia.cs index 9ae18eb..f6e088c 100644 --- a/Examples/Program_DownloadSavedMedia.cs +++ b/Examples/Program_DownloadSavedMedia.cs @@ -7,7 +7,7 @@ using TL; namespace WTelegramClientTest { - class Program_DownloadSavedMedia + static class Program_DownloadSavedMedia { // go to Project Properties > Debug > Environment variables and add at least these: api_id, api_hash, phone_number static async Task Main(string[] args) diff --git a/Examples/Program_GetAllChats.cs b/Examples/Program_GetAllChats.cs index 471b79f..bcd0cf4 100644 --- a/Examples/Program_GetAllChats.cs +++ b/Examples/Program_GetAllChats.cs @@ -5,7 +5,7 @@ using TL; namespace WTelegramClientTest { - class Program_GetAllChats + static class Program_GetAllChats { // This code is similar to what you should have obtained if you followed the README introduction // I've just added a few comments to explain further what's going on diff --git a/Examples/Program_ListenUpdates.cs b/Examples/Program_ListenUpdates.cs index a0e8585..e7784d6 100644 --- a/Examples/Program_ListenUpdates.cs +++ b/Examples/Program_ListenUpdates.cs @@ -6,7 +6,7 @@ using TL; namespace WTelegramClientTest { - class Program_ListenUpdates + static class Program_ListenUpdates { // go to Project Properties > Debug > Environment variables and add at least these: api_id, api_hash, phone_number static async Task Main(string[] _) @@ -45,8 +45,8 @@ namespace WTelegramClientTest private static void Client_Update(IObject arg) { if (arg is not UpdatesBase updates) return; - foreach(var (id, user) in updates.Users) _users[id] = user; - foreach(var (id, chat) in updates.Chats) _chats[id] = chat; + foreach (var (id, user) in updates.Users) _users[id] = user; + foreach (var (id, chat) in updates.Chats) _chats[id] = chat; foreach (var update in updates.UpdateList) switch (update) {