Possible null dereference fixes

This commit is contained in:
2022-01-22 17:21:29 +03:00
parent ff63d6dfaa
commit b7c4e1df93
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ namespace UserGroupTag
User user;
if (!_userCache.TryGetValue(userId, out user))
{
user = (await Bot.GetChatMemberAsync(Chat, userId)).User;
user = (await Bot.GetChatMemberAsync(Chat.Id, userId)).User;
_userCache.SetValue(userId, user, Int32.MaxValue);
}