mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
🚧 Anti-spam system based on entities
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using Telegram.Bot.Types;
|
||||
|
||||
namespace Kruzya.TelegramBot.UrlLimitations
|
||||
{
|
||||
public struct ChatMember
|
||||
{
|
||||
public long Chat;
|
||||
public long User;
|
||||
|
||||
public static ChatMember From(long chatId, long userId)
|
||||
{
|
||||
return new ChatMember()
|
||||
{
|
||||
Chat = chatId,
|
||||
User = userId
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user