add validation for configured URL

This commit is contained in:
2024-05-29 00:59:55 +03:00
parent 621ce7fbce
commit ec13a3be35
3 changed files with 65 additions and 4 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ namespace Kruzya.TelegramBot.CustomChatAddOns.Data
[JsonProperty("confirmation")]
public string Confirmation { get; set; } = Guid.NewGuid().ToString();
public Ping From(Message message) => new() {
public static Ping From(Message message) => new() {
ChatId = message.Chat.Id,
UserId = message.From!.Id
};