public static async Task JoinChatAsync() { await ExecuteProtected(async() => { ChatInfoDto chat = await CHAT_CLIENT.GetChatInfo(ReadChatName()); (int publ, int priv) = DIFFIE.GetKeys(chat.P, chat.G); JoinChatDto joinDto = new JoinChatDto(chat.Name, LOGIN, publ); ChatInfoDto chatInfo = await CHAT_CLIENT.JoinChat(joinDto); Console.WriteLine($"Joined {chat.Name}, public: {publ}, private: {priv}\n"); USER_CHAT_KEYS.Add(chat.Name, new UserChatKeys(chat, publ, priv)); await OpenChatAsync(chat.Name); }); }