mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-04 22:17:43 +00:00
change Dictionary of UserBase into Dictionary of User
This commit is contained in:
parent
2881155f8b
commit
51a89bc6a1
6 changed files with 131 additions and 122 deletions
|
|
@ -35,7 +35,7 @@ namespace WTelegramClientTest
|
|||
}
|
||||
|
||||
|
||||
private static readonly Dictionary<long, UserBase> _users = new();
|
||||
private static readonly Dictionary<long, User> _users = new();
|
||||
private static readonly Dictionary<long, ChatBase> _chats = new();
|
||||
private static string User(long id) => _users.TryGetValue(id, out var user) ? user.ToString() : $"User {id}";
|
||||
private static string Chat(long id) => _chats.TryGetValue(id, out var chat) ? chat.ToString() : $"Chat {id}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue