forked from tucnak/telebot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web_app.go
26 lines (22 loc) · 905 Bytes
/
web_app.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package telebot
// WebApp represents a parameter of the inline keyboard button
// or the keyboard button used to launch Web App.
type WebApp struct {
URL string `json:"url"`
}
// WebAppMessage describes an inline message sent by a Web App on behalf of a user.
type WebAppMessage struct {
InlineMessageID string `json:"inline_message_id"`
}
// WebAppData object represents a data sent from a Web App to the bot
type WebAppData struct {
Data string `json:"data"`
Text string `json:"button_text"`
}
// WebAppAccessAllowed represents a service message about a user allowing
// a bot to write messages after adding the bot to the attachment menu or launching a Web App from a link.
type WriteAccessAllowed struct {
WebAppName string `json:"web_app_name,omitempty"`
FromRequest bool `json:"from_request,omitempty"`
FromAttachmentMenu bool `json:"from_attachment_menu,omitempty"`
}