Use the new version of TelegramBotFramework

This commit is contained in:
2021-12-22 01:27:56 +04:00
parent 2c158330cc
commit 73ed1d88a9
7 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -15,7 +15,7 @@ namespace Kruzya.TelegramBot.UrlLimitations
foreach (var mention in message.Entities.Where(e =>
e.Type == MessageEntityType.Mention || e.Type == MessageEntityType.TextMention))
{
var userId = 0;
long userId = 0;
if (mention.Type == MessageEntityType.TextMention)
{
userId = mention.User.Id;
@@ -34,10 +34,10 @@ namespace Kruzya.TelegramBot.UrlLimitations
return true;
}
userId = Convert.ToInt32(chat.Id);
userId = Convert.ToInt64(chat.Id);
}
}
catch (Exception e)
catch (Exception)
{
return true;
}