mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
22 lines
747 B
C#
22 lines
747 B
C#
using Kruzya.TelegramBot.Core.Attributes;
|
|
using Newtonsoft.Json;
|
|
using Telegram.Bot;
|
|
using Telegram.Bot.Types;
|
|
|
|
namespace Kruzya.TelegramBot.CustomChatAddOns.Data.WebhookCommand
|
|
{
|
|
[AllowedSerializableType("text_reply_message")]
|
|
public class TextReplyMessage : BaseReplyMessage, IWebhookCommand
|
|
{
|
|
[JsonProperty("disable_web_page_preview")]
|
|
public bool? DisableWebPagePreview { get; set; }
|
|
|
|
public async Task Execute(ITelegramBotClient botClient, Message message)
|
|
{
|
|
await botClient.SendTextMessageAsync(message.Chat.Id, Content,
|
|
parseMode: ParseMode, disableNotification: DisableNotification,
|
|
disableWebPagePreview: DisableWebPagePreview);
|
|
}
|
|
}
|
|
}
|