add deleteChatPhoto method
This commit is contained in:
parent
57be988011
commit
a36af7a672
2 changed files with 29 additions and 0 deletions
17
configs.go
17
configs.go
|
@ -1126,3 +1126,20 @@ func (config SetChatPhotoConfig) name() string {
|
|||
func (config SetChatPhotoConfig) method() string {
|
||||
return "setChatPhoto"
|
||||
}
|
||||
|
||||
// DeleteChatPhotoConfig contains information for delete chat photo.
|
||||
type DeleteChatPhotoConfig struct {
|
||||
ChatID int64
|
||||
}
|
||||
|
||||
func (config DeleteChatPhotoConfig) method() string {
|
||||
return "deleteChatPhoto"
|
||||
}
|
||||
|
||||
func (config DeleteChatPhotoConfig) values() (url.Values, error) {
|
||||
v := url.Values{}
|
||||
|
||||
v.Add("chat_id", strconv.FormatInt(config.ChatID, 10))
|
||||
|
||||
return v, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue