add setChatPhoto method
This commit is contained in:
parent
6e69f99d11
commit
57be988011
3 changed files with 58 additions and 0 deletions
15
configs.go
15
configs.go
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue