@altiore/twa / ShowPopupButton
You have to see original interface telegram!PopupButton.
-
Record
<string
,unknown
>↳
ShowPopupButton
• Optional
id: string
Optional. Identifier of the button, 0-64 characters. Set to empty string by default. If the button is pressed, its id is returned in the callback and the popupClosed event.
• Optional
text: string
Optional. The text to be displayed on the button, 0-64 characters. Required if type is default or destructive. Irrelevant for other types.
• Optional
type: string
Optional. Type of the button. Set to default by default.