Skip to content

Commit d2959fc

Browse files
committed
Console: added /reaction
1 parent d7696bf commit d2959fc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Console/Console.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Telegram.Bot" Version="21.7.1" />
11+
<ProjectReference Include="..\..\Telegram.Bot\src\Telegram.Bot\Telegram.Bot.csproj" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

Console/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ await bot.SendTextMessageAsync(msg.Chat, """
6565
/keyboard - send keyboard buttons
6666
/remove - remove keyboard buttons
6767
/poll - send a poll
68+
/reaction - send a reaction
6869
""", parseMode: ParseMode.Html, linkPreviewOptions: true,
6970
replyMarkup: new ReplyKeyboardRemove()); // also remove keyboard to clean-up things
7071
break;
@@ -99,6 +100,9 @@ await bot.SendTextMessageAsync(msg.Chat, """
99100
case "/poll":
100101
await bot.SendPollAsync(msg.Chat, "Question", ["Option 0", "Option 1", "Option 2"], isAnonymous: false, allowsMultipleAnswers: true);
101102
break;
103+
case "/reaction":
104+
await bot.SetMessageReactionAsync(msg.Chat, msg.MessageId, ["❤"], false);
105+
break;
102106
}
103107
}
104108

0 commit comments

Comments
 (0)