diff --git a/configs.go b/configs.go index 87e1633..523c539 100644 --- a/configs.go +++ b/configs.go @@ -2264,17 +2264,17 @@ func (config SetStickerPositionConfig) params() (Params, error) { return params, nil } -// SetCustomEmojiStickerSetThumbnalConfig allows you to set the thumbnail of a custom emoji sticker set -type SetCustomEmojiStickerSetThumbnalConfig struct { +// SetCustomEmojiStickerSetThumbnailConfig allows you to set the thumbnail of a custom emoji sticker set +type SetCustomEmojiStickerSetThumbnailConfig struct { Name string CustomEmojiID string } -func (config SetCustomEmojiStickerSetThumbnalConfig) method() string { +func (config SetCustomEmojiStickerSetThumbnailConfig) method() string { return "setCustomEmojiStickerSetThumbnail" } -func (config SetCustomEmojiStickerSetThumbnalConfig) params() (Params, error) { +func (config SetCustomEmojiStickerSetThumbnailConfig) params() (Params, error) { params := make(Params) params["name"] = config.Name diff --git a/helpers.go b/helpers.go index 4c7a074..4001d43 100644 --- a/helpers.go +++ b/helpers.go @@ -131,8 +131,8 @@ func NewSticker(chatID int64, file RequestFileData) StickerConfig { } // NewCustomEmojiStickerSetThumbnal creates a new setCustomEmojiStickerSetThumbnal request -func NewCustomEmojiStickerSetThumbnal(name, customEmojiID string) SetCustomEmojiStickerSetThumbnalConfig { - return SetCustomEmojiStickerSetThumbnalConfig{ +func NewCustomEmojiStickerSetThumbnal(name, customEmojiID string) SetCustomEmojiStickerSetThumbnailConfig { + return SetCustomEmojiStickerSetThumbnailConfig{ Name: name, CustomEmojiID: customEmojiID, } diff --git a/types_test.go b/types_test.go index 69c0593..90d01ea 100644 --- a/types_test.go +++ b/types_test.go @@ -359,7 +359,7 @@ var ( _ Chattable = ReopenGeneralForumTopicConfig{} _ Chattable = HideGeneralForumTopicConfig{} _ Chattable = UnhideGeneralForumTopicConfig{} - _ Chattable = SetCustomEmojiStickerSetThumbnalConfig{} + _ Chattable = SetCustomEmojiStickerSetThumbnailConfig{} _ Chattable = SetStickerSetTitleConfig{} _ Chattable = DeleteStickerSetConfig{} _ Chattable = SetStickerEmojiListConfig{}