diff --git a/Program.cs b/Program.cs
index cd93301..a1fe9bf 100644
--- a/Program.cs
+++ b/Program.cs
@@ -1,8 +1,11 @@
-using Telegram.Bot;
+using System.Reflection;
+using Telegram.Bot;
using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
var token = Environment.GetEnvironmentVariable("TELEGRAM_BOT_TOKEN")!;
+var version = ((AssemblyInformationalVersionAttribute)Assembly.GetEntryAssembly()!.GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), false)[0])
+ .InformationalVersion[6..];
using var cts = new CancellationTokenSource();
@@ -118,7 +121,7 @@ async Task BotOnMessageReceived(ITelegramBotClient botClient, Message message) {
break;
case "help":
case "start":
- await botClient.SendTextMessageAsync(message.Chat.Id, """
+ await botClient.SendTextMessageAsync(message.Chat.Id, $"""
Heya, I am a bot that can help you make decisions! Here's a list of things I can do:
/coinflip - flips a coin
@@ -139,7 +142,7 @@ async Task BotOnMessageReceived(ITelegramBotClient botClient, Message message) {
Enjoy!
- - Powered by [~zotan](https://zotan.pw)'s [Telegram.Bot.DecisionMaker](https://git.ztn.sh/zotan/Telegram.Bot.DecisionMaker) v1.0
+ I'm powered by [~zotan](https://zotan.pw)'s [Telegram.Bot.DecisionMaker](https://git.ztn.sh/zotan/Telegram.Bot.DecisionMaker) rev. [{version}](https://git.ztn.sh/zotan/Telegram.Bot.DecisionMaker/commit/{version.Replace("-dirty", "")})
""", replyToMessageId: message.MessageId, parseMode: ParseMode.Markdown, disableWebPagePreview: true);
break;
default:
diff --git a/Telegram.Bot.DecisionMaker.csproj b/Telegram.Bot.DecisionMaker.csproj
index 4b8f47b..58ca26d 100644
--- a/Telegram.Bot.DecisionMaker.csproj
+++ b/Telegram.Bot.DecisionMaker.csproj
@@ -11,4 +11,10 @@
+
+
+
+
+
+