From 345f10971b92a6ba407434fd0a83a8f4076b2141 Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:33:18 +0100 Subject: [PATCH] using [] syntax --- Examples/Program_Heroku.cs | 4 ++-- Examples/Program_ListenUpdates.cs | 4 ++-- Examples/Program_SecretChats.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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()