Document button as a convenience shortcut, not a deprecation

The single-key `button` field on `OutputDTMFFrame` and
`OutputDTMFUrgentFrame` is kept as a first-class ergonomic shortcut
for the common single-keypress case, equivalent to
`buttons=[button]`. `buttons` takes precedence when both are set.
This commit is contained in:
Aleix Conchillo Flaqué
2026-04-15 15:09:01 -07:00
parent d8b0e78bc8
commit 9fbe1bf2a3
2 changed files with 6 additions and 11 deletions

View File

@@ -1 +0,0 @@
- Deprecated the `button` field on `OutputDTMFFrame` and `OutputDTMFUrgentFrame`. Use the new `buttons` field (a `list[KeypadEntry]`) instead. When only `button` is set, it is wrapped in a single-entry list for backward compatibility.