bugfixes/crash-handler #1

Merged
kizaing merged 4 commits from bugfixes/crash-handler into main 2023-02-14 14:53:46 -05:00
Showing only changes of commit 9faaeef68f - Show all commits

View File

@ -54,6 +54,8 @@ namespace TeleTok
// Passes the url along to the video downloader if it is valid AND a tiktok link
if (isUri)
{
try
{
if(messageText.Contains("tiktok.com"))
{
@ -66,6 +68,11 @@ namespace TeleTok
);
}
}
catch
{
Console.WriteLine("Valid TikTok URI was sent, but was not a video!");
}
}
}
Task HandlePollingErrorAsync(ITelegramBotClient botClient, Exception exception, CancellationToken cancellationToken)