mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-03-14 12:46:15 +01:00
Move SendToEveryone on its own Thread
This commit is contained in:
parent
8870edf3a8
commit
0120b74d90
1 changed files with 5 additions and 1 deletions
|
@ -107,7 +107,11 @@ namespace SoUnBot.Telegram
|
||||||
chatId: chatId,
|
chatId: chatId,
|
||||||
text: "Invio annuncio in corso...",
|
text: "Invio annuncio in corso...",
|
||||||
cancellationToken: cancellationToken);
|
cancellationToken: cancellationToken);
|
||||||
|
new Thread(() =>
|
||||||
|
{
|
||||||
|
Thread.CurrentThread.IsBackground = true;
|
||||||
SendToEveryone(botClient, chatId, update.Message.Text.Substring(6));
|
SendToEveryone(botClient, chatId, update.Message.Text.Substring(6));
|
||||||
|
}).Start();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue