Skip to content

Commit 3852af8

Browse files
committed
Add /receipt command to Telegram bot
Updated Program.cs in TelegramBot.ConsoleTest to include a new command `/receipt` that shows the receipt. This command is now part of the bot's command registry, enhancing user functionality without affecting other parts of the application.
1 parent ad92812 commit 3852af8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Sources/TelegramBot.ConsoleTest/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ public static void Main(string[] args)
1717
x.RegisterCommand("/start", "initiates the bot")
1818
.RegisterCommand("/help", "shows help message")
1919
.RegisterCommand("/burgers", "shows burgers menu")
20-
.RegisterCommand("/burgersdone", "notifies that the order is ready");
20+
.RegisterCommand("/burgersdone", "notifies that the order is ready")
21+
.RegisterCommand("/receipt", "shows the receipt");
2122
}, "en");
2223

2324
builder.Services

0 commit comments

Comments
 (0)