chore: init commit from GitHub
Some checks are pending
Deploy / update (push) Waiting to run
Build Project .NET / build (push) Waiting to run

This commit is contained in:
Lisoveliy
2025-05-12 19:44:33 +03:00
parent 11a3f40596
commit aebe654c38
107 changed files with 18953 additions and 403 deletions

View File

@@ -0,0 +1,20 @@
using System.Diagnostics;
using System.Reflection;
using Telegram.Bot;
using Telegram.Bot.Types;
namespace TelegramBot.Commands.CommandMessages;
public class StartCommandMessage : CommandMessage
{
public const string CommandName = "/start";
public override async Task InvokeFromMessage(ITelegramBotClient botClient,
Update update,
CancellationToken cancellationToken)
{
var text = Program.Config.StartMessage;
text += $"\nBuild assembly version: {FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion}";
text += $"\n\nНововведения по комманде /changelog";
await botClient.SendTextMessageAsync(update.Message?.Chat!, text, cancellationToken: cancellationToken);
}
}