-
Notifications
You must be signed in to change notification settings - Fork 101
/
callbackQueryAnswer.go
executable file
·32 lines (27 loc) · 1.07 KB
/
callbackQueryAnswer.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
27
28
29
30
31
32
// AUTOGENERATED - DO NOT EDIT
package tdlib
// CallbackQueryAnswer Contains a bot's answer to a callback query
type CallbackQueryAnswer struct {
tdCommon
Text string `json:"text"` // Text of the answer
ShowAlert bool `json:"show_alert"` // True, if an alert should be shown to the user instead of a toast notification
URL string `json:"url"` // URL to be opened
}
// MessageType return the string telegram-type of CallbackQueryAnswer
func (callbackQueryAnswer *CallbackQueryAnswer) MessageType() string {
return "callbackQueryAnswer"
}
// NewCallbackQueryAnswer creates a new CallbackQueryAnswer
//
// @param text Text of the answer
// @param showAlert True, if an alert should be shown to the user instead of a toast notification
// @param uRL URL to be opened
func NewCallbackQueryAnswer(text string, showAlert bool, uRL string) *CallbackQueryAnswer {
callbackQueryAnswerTemp := CallbackQueryAnswer{
tdCommon: tdCommon{Type: "callbackQueryAnswer"},
Text: text,
ShowAlert: showAlert,
URL: uRL,
}
return &callbackQueryAnswerTemp
}