mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Use the new version of TelegramBotFramework
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user