/
Laxerem
/
BaskBot
Обзор
Документация
Войти
/
Laxerem
/
BaskBot
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
BaskBot.Application/Bot/Abstractions/UserEvent.cs
26 строк
733 B
Laxerem
LLM generating for messages
03 янв 2026, 16:57
03 янв 2026, 16:57
af553cc
Код
Авторство
О чём код?
using BaskBot.Application.Bot.Data; using Telegram.Bot.Types; using Telegram.Bot.Types.Enums; namespace BaskBot.Application.Bot.Abstractions; public abstract class UserEvent { public readonly UpdateType Type; public readonly Chat Chat; public readonly long UserId; public readonly string Username; public readonly MessageId MessageId; public UserEvent(UpdateInfo info) { Type = info.Type; Chat = info.Chat; UserId = info.UserId; Username = info.Username; MessageId = info.MessageId; } public abstract string GetContent(); public override string ToString() { return $"Type: {Type}, Chat: {Chat}, UserId: {UserId}, MessageId: {MessageId}"; } }