mirror of
https://github.com/Jetsparrow/jetherald.git
synced 2026-01-21 07:56:09 +03:00
Fix crash when message sent to discord
This commit is contained in:
parent
2b0cd07997
commit
3e16199c1f
@ -92,7 +92,10 @@ namespace JetHerald
|
||||
foreach (var chatSent in await Db.GetExpiredTopics(token))
|
||||
{
|
||||
var formatted = $"!{chatSent.Description}!:\nTimeout expired at {chatSent.ExpiryTime}";
|
||||
if (chatSent.Service == "Telegram")
|
||||
await TelegramBot.SendTextMessageAsync(chatSent.ChatId, formatted, cancellationToken: token);
|
||||
else if (chatSent.Service == "Discord")
|
||||
await SendMessageToDiscordChannel(chatSent.ChatId, formatted);
|
||||
}
|
||||
|
||||
await Db.MarkExpiredTopics(token);
|
||||
|
||||
1
perfusion
Submodule
1
perfusion
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 5913a7e44f7e9ac63a5bfd04c837a9968cf1fe88
|
||||
Loading…
Reference in New Issue
Block a user