all repos — telegram-bot-api @ 10078d149287c57e4eb9bf34848ebf872324b001

Golang bindings for the Telegram Bot API

Fix typo in the name of config struct SetCustomEmojiStickerSetThumbnailConfig.
OvyFlash olegshva4ko@gmail.com
Tue, 11 Jul 2023 12:12:23 +0300
commit

10078d149287c57e4eb9bf34848ebf872324b001

parent

dcd469ffa55d2df26d583b5474bf54cbc4ca2f06

3 files changed, 7 insertions(+), 7 deletions(-)

jump to
M configs.goconfigs.go

@@ -2264,17 +2264,17 @@

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
M helpers.gohelpers.go

@@ -131,8 +131,8 @@ }

} // 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, }
M types_test.gotypes_test.go

@@ -359,7 +359,7 @@ _ Chattable = CloseGeneralForumTopicConfig{}

_ Chattable = ReopenGeneralForumTopicConfig{} _ Chattable = HideGeneralForumTopicConfig{} _ Chattable = UnhideGeneralForumTopicConfig{} - _ Chattable = SetCustomEmojiStickerSetThumbnalConfig{} + _ Chattable = SetCustomEmojiStickerSetThumbnailConfig{} _ Chattable = SetStickerSetTitleConfig{} _ Chattable = DeleteStickerSetConfig{} _ Chattable = SetStickerEmojiListConfig{}