new getFile and File types from Telegram Bot API update

This commit is contained in:
Syfaro 2015-09-19 10:46:20 -05:00
parent 3ce6dbabe0
commit 1bceea1ca5
2 changed files with 35 additions and 0 deletions

View file

@ -171,6 +171,13 @@ type UserProfilePhotos struct {
Photos []PhotoSize `json:"photos"`
}
// File contains information about a file to download from Telegram
type File struct {
FileID string `json:"file_id"`
FileSize int `json:"file_size"`
FilePath string `json:"file_path"`
}
// ReplyKeyboardMarkup allows the Bot to set a custom keyboard.
type ReplyKeyboardMarkup struct {
Keyboard [][]string `json:"keyboard"`