Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chr233 committed Dec 8, 2023
1 parent 73bfad2 commit 40736c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>2.2.4.9</Version>
<Version>2.2.4.10</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions XinjingdailyBot.Service/Data/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -501,12 +501,12 @@ private async Task AutoDeleteNotification(Message message)
return null;
}

if (target.StartsWith('@'))
if (target.StartsWith("https://t.me/") || target.StartsWith('@'))
{
return await FetchUserByUserName(target[1..]);
target = target.Replace("https://t.me/", "").Replace("@", "");
return await FetchUserByUserName(target);
}


if (long.TryParse(target, out var userID))
{
return await FetchUserByUserID(userID) ?? await FetchUserByUserName(target);
Expand Down

0 comments on commit 40736c5

Please sign in to comment.