add getStickerSet call

This commit is contained in:
Daniel Leining 2020-01-29 22:58:02 -05:00
parent aa124ef1e8
commit f44d515f71
3 changed files with 42 additions and 0 deletions

View file

@ -1262,3 +1262,18 @@ func (config DeleteChatPhotoConfig) values() (url.Values, error) {
return v, nil
}
// GetStickerSetConfig contains information for get sticker set.
type GetStickerSetConfig struct {
Name string
}
func (config GetStickerSetConfig) method() string {
return "getStickerSet"
}
func (config GetStickerSetConfig) values() (url.Values, error) {
v := url.Values{}
v.Add("name", config.Name)
return v, nil
}