new getFile and File types from Telegram Bot API update
This commit is contained in:
parent
3ce6dbabe0
commit
1bceea1ca5
2 changed files with 35 additions and 0 deletions
7
types.go
7
types.go
|
@ -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"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue