Merge branch 'main' of git.kizaing.ca:kizaing/TeleTok
This commit is contained in:
commit
1949c7af1b
@ -54,6 +54,8 @@ namespace TeleTok
|
|||||||
|
|
||||||
// Passes the url along to the video downloader if it is valid AND a tiktok link
|
// Passes the url along to the video downloader if it is valid AND a tiktok link
|
||||||
if (isUri)
|
if (isUri)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if(messageText.Contains("tiktok.com"))
|
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)
|
Task HandlePollingErrorAsync(ITelegramBotClient botClient, Exception exception, CancellationToken cancellationToken)
|
||||||
|
Loading…
Reference in New Issue
Block a user