diff --git a/Examples/Program_Heroku.cs b/Examples/Program_Heroku.cs index 23555ae..482b830 100644 --- a/Examples/Program_Heroku.cs +++ b/Examples/Program_Heroku.cs @@ -17,8 +17,8 @@ namespace WTelegramClientTest { static WTelegram.Client Client; static User My; - static readonly Dictionary Users = new(); - static readonly Dictionary Chats = new(); + static readonly Dictionary Users = []; + static readonly Dictionary Chats = []; // See steps at the end of this file to setup required Environment variables static async Task Main(string[] _) diff --git a/Examples/Program_ListenUpdates.cs b/Examples/Program_ListenUpdates.cs index baf09ca..ff0f502 100644 --- a/Examples/Program_ListenUpdates.cs +++ b/Examples/Program_ListenUpdates.cs @@ -9,8 +9,8 @@ namespace WTelegramClientTest { static WTelegram.Client Client; static User My; - static readonly Dictionary Users = new(); - static readonly Dictionary Chats = new(); + static readonly Dictionary Users = []; + static readonly Dictionary Chats = []; // go to Project Properties > Debug > Environment variables and add at least these: api_id, api_hash, phone_number static async Task Main(string[] _) diff --git a/Examples/Program_SecretChats.cs b/Examples/Program_SecretChats.cs index 637ead7..2d02d0d 100644 --- a/Examples/Program_SecretChats.cs +++ b/Examples/Program_SecretChats.cs @@ -13,8 +13,8 @@ namespace WTelegramClientTest static Client Client; static SecretChats Secrets; static ISecretChat ActiveChat; // the secret chat currently selected - static readonly Dictionary Users = new(); - static readonly Dictionary Chats = new(); + static readonly Dictionary Users = []; + static readonly Dictionary Chats = []; // go to Project Properties > Debug > Environment variables and add at least these: api_id, api_hash, phone_number static async Task Main()