diff --git a/Console/Console.csproj b/Console/Console.csproj index 140723d..62d4585 100644 --- a/Console/Console.csproj +++ b/Console/Console.csproj @@ -8,7 +8,7 @@ - + diff --git a/Console/Program.cs b/Console/Program.cs index fb31b7c..203eab3 100644 --- a/Console/Program.cs +++ b/Console/Program.cs @@ -65,6 +65,7 @@ await bot.SendTextMessageAsync(msg.Chat, """ /keyboard - send keyboard buttons /remove - remove keyboard buttons /poll - send a poll + /reaction - send a reaction """, parseMode: ParseMode.Html, linkPreviewOptions: true, replyMarkup: new ReplyKeyboardRemove()); // also remove keyboard to clean-up things break; @@ -99,6 +100,9 @@ await bot.SendTextMessageAsync(msg.Chat, """ case "/poll": await bot.SendPollAsync(msg.Chat, "Question", ["Option 0", "Option 1", "Option 2"], isAnonymous: false, allowsMultipleAnswers: true); break; + case "/reaction": + await bot.SetMessageReactionAsync(msg.Chat, msg.MessageId, ["❤"], false); + break; } }