add setChatPhoto method

This commit is contained in:
Oleksandr Savchuk 2018-03-05 17:04:37 +02:00
parent 6e69f99d11
commit 57be988011
3 changed files with 58 additions and 0 deletions

View file

@ -1111,3 +1111,18 @@ func (config SetChatDescriptionConfig) values() (url.Values, error) {
return v, nil
}
// SetChatPhotoConfig contains information for change chat photo
type SetChatPhotoConfig struct {
BaseFile
}
// name returns the field name for the Photo.
func (config SetChatPhotoConfig) name() string {
return "photo"
}
// method returns Telegram API method name for sending Photo.
func (config SetChatPhotoConfig) method() string {
return "setChatPhoto"
}