Merge pull request #210 from overplumbum/develop
fix add sticker to stickerset uploads by url and fileId
This commit is contained in:
commit
da98517cd2
2 changed files with 21 additions and 14 deletions
|
@ -1421,7 +1421,9 @@ func (config UploadStickerConfig) getFile() interface{} {
|
|||
}
|
||||
|
||||
func (config UploadStickerConfig) useExistingFile() bool {
|
||||
return false
|
||||
_, ok := config.PNGSticker.(string)
|
||||
|
||||
return ok
|
||||
}
|
||||
|
||||
// NewStickerSetConfig allows creating a new sticker set.
|
||||
|
@ -1527,7 +1529,9 @@ func (config AddStickerConfig) getFile() interface{} {
|
|||
}
|
||||
|
||||
func (config AddStickerConfig) useExistingFile() bool {
|
||||
return false
|
||||
_, ok := config.PNGSticker.(string)
|
||||
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetStickerPositionConfig allows you to change the position of a sticker in a set.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue