Skip to content

Commit

Permalink
v22.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wiz0u committed Feb 16, 2025
1 parent a7e3584 commit d57cda1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/migrate/Version-22.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,7 @@ _(if you use this [non-recommended](Version-21.x.md#request-structures) method)_
| `InlineKeyboardButton[]` | inline buttons on 1 row |
| `InlineKeyboardButton[][]` or `IEnumerable<InlineKeyboardButton>[]` | multiple inline buttons |

`InlineKeyboardButton` can also now be implicitly constructed from a `(string text, string callbackOrUrl)` tuple for Callback or Url buttons (v22.4.1)
- `InlineKeyboardButton` can also now be implicitly constructed from a `(string text, string callbackOrUrl)` tuple for Callback or Url buttons (v22.4.1)
- `BotCommand` can also now be implicitly constructed from a `(string command, string description)` tuple or new explicit constructor (v22.4.3)
Example: `await Bot.SetMyCommands([("/start", "Start the bot"), ("/privacy", "Privacy policy")]);`

0 comments on commit d57cda1

Please sign in to comment.