@@ -1044,31 +1044,62 @@ type Game struct {
1044
1044
1045
1045
// Animation is a GIF animation demonstrating the game.
1046
1046
type Animation struct {
1047
- FileID string `json:"file_id"`
1048
- Thumb PhotoSize `json:"thumb"`
1049
- FileName string `json:"file_name"`
1050
- MimeType string `json:"mime_type"`
1051
- FileSize int `json:"file_size"`
1047
+ // FileID identifier for this file, which can be used to download or reuse the file.
1048
+ FileID string `json:"file_id"`
1049
+ // Thumb animation thumbnail as defined by sender.
1050
+ //
1051
+ // optional
1052
+ Thumb PhotoSize `json:"thumb"`
1053
+ // FileName original animation filename as defined by sender.
1054
+ //
1055
+ // optional
1056
+ FileName string `json:"file_name"`
1057
+ // MimeType of the file as defined by sender.
1058
+ //
1059
+ // optional
1060
+ MimeType string `json:"mime_type"`
1061
+ // FileSize ile size
1062
+ //
1063
+ // optional
1064
+ FileSize int `json:"file_size"`
1052
1065
}
1053
1066
1054
1067
// GameHighScore is a user's score and position on the leaderboard.
1055
1068
type GameHighScore struct {
1056
- Position int `json:"position"`
1057
- User User `json:"user"`
1058
- Score int `json:"score"`
1069
+ // Position in high score table for the game
1070
+ Position int `json:"position"`
1071
+ // User user
1072
+ User User `json:"user"`
1073
+ // Score score
1074
+ Score int `json:"score"`
1059
1075
}
1060
1076
1061
1077
// CallbackGame is for starting a game in an inline keyboard button.
1062
1078
type CallbackGame struct {}
1063
1079
1064
1080
// WebhookInfo is information about a currently set webhook.
1065
1081
type WebhookInfo struct {
1066
- URL string `json:"url"`
1067
- HasCustomCertificate bool `json:"has_custom_certificate"`
1068
- PendingUpdateCount int `json:"pending_update_count"`
1069
- LastErrorDate int `json:"last_error_date"` // optional
1070
- LastErrorMessage string `json:"last_error_message"` // optional
1071
- MaxConnections int `json:"max_connections"` // optional
1082
+ // URL webhook URL, may be empty if webhook is not set up.
1083
+ URL string `json:"url"`
1084
+ // HasCustomCertificate true, if a custom certificate was provided for webhook certificate checks.
1085
+ HasCustomCertificate bool `json:"has_custom_certificate"`
1086
+ // PendingUpdateCount number of updates awaiting delivery.
1087
+ PendingUpdateCount int `json:"pending_update_count"`
1088
+ // LastErrorDate unix time for the most recent error
1089
+ // that happened when trying to deliver an update via webhook.
1090
+ //
1091
+ // optional
1092
+ LastErrorDate int `json:"last_error_date"`
1093
+ // LastErrorMessage error message in human-readable format for the most recent error
1094
+ // that happened when trying to deliver an update via webhook.
1095
+ //
1096
+ // optional
1097
+ LastErrorMessage string `json:"last_error_message"`
1098
+ // MaxConnections maximum allowed number of simultaneous
1099
+ // HTTPS connections to the webhook for update delivery.
1100
+ //
1101
+ // optional
1102
+ MaxConnections int `json:"max_connections"`
1072
1103
}
1073
1104
1074
1105
// IsSet returns true if a webhook is currently set.
0 commit comments