Commit 232c353
committed
Add QueryController for handling specific text queries
Introduced a new `QueryController` class in the `TelegramBot.ConsoleTest.Controllers` namespace. This class inherits from `BotControllerBase` and includes two methods, `HandleHelloAsync` and `HandleByeAsync`, which handle text queries matching "hello" and "bye" patterns, respectively. The class uses attributes from the `TelegramBot` namespace to define these text query patterns and provides appropriate responses.1 parent 4ad80dc commit 232c353
1 file changed
Lines changed: 21 additions & 0 deletions
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments