-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathstickerEditor.go
28 lines (22 loc) · 1 KB
/
stickerEditor.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package telego
import objs "github.com/SakoDroid/telego/objects"
type stickerEditor struct {
bot *Bot
stickerId string
}
// SetEmojiList sets a new emoji list for this sticker.
func (se *stickerEditor) SetEmojiList(emojiList []string) (*objs.Result[bool], error) {
return se.bot.apiInterface.SetStickerEmojiList(se.stickerId, emojiList)
}
// SetKeyword sets a new keyword list for this sticker. Maximum length is 20.
func (se *stickerEditor) SetKeywords(keywords []string) (*objs.Result[bool], error) {
return se.bot.apiInterface.SetStickerKeywords(se.stickerId, keywords)
}
// SetMaskPosition sets a new mask position for this sticker.
func (se *stickerEditor) SetMaskPosition(maskPosition *objs.MaskPosition) (*objs.Result[bool], error) {
return se.bot.apiInterface.SetStickerMaskPosition(se.stickerId, maskPosition)
}
// Delete deletes this sticker from the set it belongs to.
func (se *stickerEditor) Delete() (*objs.Result[bool], error) {
return se.bot.apiInterface.DeleteStickerFromSet(se.stickerId)
}