move to correct directory

This commit is contained in:
2024-05-29 01:49:53 +03:00
parent db5cd93977
commit 615e39b326
17 changed files with 2 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
using Kruzya.TelegramBot.Core.Attributes;
using Newtonsoft.Json;
using Telegram.Bot.Types;
namespace Kruzya.TelegramBot.CustomChatAddOns.Data
{
[AllowedSerializableType("ping")]
public class Ping
{
[JsonProperty("chat_id")]
public long ChatId { get; set; }
[JsonProperty("user_id")]
public long UserId { get; set; }
[JsonProperty("confirmation")]
public string Confirmation { get; set; } = Guid.NewGuid().ToString();
public static Ping From(Message message) => new() {
ChatId = message.Chat.Id,
UserId = message.From!.Id
};
}
}