Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
修复
Browse files Browse the repository at this point in the history
  • Loading branch information
Yushu2606 authored Mar 5, 2024
1 parent ccac4f5 commit 353fddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Functions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static async Task OnRequest(this ChatJoinRequest chatJoinRequest)
Localizer lang = Program.Localizer.GetLocalizer(chatJoinRequest.From.LanguageCode);
const int min = 3; // TODO:群组管理员自定义时长
string message = lang.Translate("Message",
$"[{(string.IsNullOrWhiteSpace(chatJoinRequest.From.Username) ? $"{chatJoinRequest.From.FirstName} {chatJoinRequest.From.LastName}".Escape() : chatJoinRequest.From.Username)}](tg://user?id={chatJoinRequest.From.Id})",
$"[{(string.IsNullOrWhiteSpace(chatJoinRequest.From.Username) ? $"{chatJoinRequest.From.FirstName} {chatJoinRequest.From.LastName}".Escape() : chatJoinRequest.From.Username.Escape())}](tg://user?id={chatJoinRequest.From.Id})",
min);
try
{
Expand Down

0 comments on commit 353fddd

Please sign in to comment.