all repos — telegram-bot-api @ a4b5cdb16fde6853486990878f019251eca5c542

Golang bindings for the Telegram Bot API

add field
stdkhai k.o.zhuk@student.khai,edu
Tue, 04 Jul 2023 22:38:56 +0300
commit

a4b5cdb16fde6853486990878f019251eca5c542

parent

ef8307cc42d0aca04fcc928dc6b7d36859ef4858

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M configs.goconfigs.go

@@ -2179,6 +2179,7 @@ UserID int64

Name string Title string Stickers []InputSticker + StickerFormat string StickerType string NeedsRepainting bool //optional; Pass True if stickers in the sticker set must be repainted to the color of text when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context; for custom emoji sticker sets only }

@@ -2193,6 +2194,7 @@

params.AddNonZero64("user_id", config.UserID) params["name"] = config.Name params["title"] = config.Title + params["sticker_format"] = config.StickerFormat params.AddBool("needs_repainting", config.NeedsRepainting) params.AddNonEmpty("sticker_type", string(config.StickerType))