diff --git a/media.go b/media.go index 93ec1b4..6e8eaff 100644 --- a/media.go +++ b/media.go @@ -334,6 +334,12 @@ type Venue struct { GooglePlaceType string `json:"google_place_type,omitempty"` } +// WebAppData object represents a data sent from a Web App to the bot +type WebAppData struct { + Data string `json:"data"` + ButtonText string `json:"button_text"` +} + // Dice object represents a dice with a random value // from 1 to 6 for currently supported base emoji. type Dice struct { diff --git a/message.go b/message.go index 3d4511c..ac02f0f 100644 --- a/message.go +++ b/message.go @@ -238,6 +238,9 @@ type Message struct { // For a service message, a voice chat schedule in the chat. VoiceChatScheduled *VoiceChatScheduled `json:"voice_chat_scheduled,omitempty"` + // For a data sent by a Web App + WebAppData *WebAppData `json:"web_app_data,omitempty"` + // For a service message, represents the content of a service message, // sent whenever a user in the chat triggers a proximity alert set by another user. ProximityAlert *ProximityAlert `json:"proximity_alert_triggered,omitempty"`