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:
@@ -53,7 +53,7 @@ namespace Kruzya.TelegramBot.Core
|
||||
await VerifyChatPair(chat.Id, user.Id);
|
||||
}
|
||||
|
||||
public async Task VerifyChatPair(long chat, int user)
|
||||
public async Task VerifyChatPair(long chat, long user)
|
||||
{
|
||||
var hasEntry = await databaseContext.Users.AnyAsync(e => e.ChatId == chat && e.UserId == user);
|
||||
if (hasEntry)
|
||||
@@ -64,7 +64,7 @@ namespace Kruzya.TelegramBot.Core
|
||||
await MakeChatPair(chat, user);
|
||||
}
|
||||
|
||||
public async Task MakeChatPair(long chat, int user)
|
||||
public async Task MakeChatPair(long chat, long user)
|
||||
{
|
||||
await databaseContext.Users.AddAsync(new BotUser()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user