telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

Setting sticker emoji with `send_sticker`

Open Bibo-Joshi opened this issue 4 years ago • 2 comments

Hi. I just again stumbled over the fact, that one can specify the emoji associated with a sticker when adding it to a sticker pack with addStickerToSet, but not when sending them directly via send_sticker. Is there a specific reason for that? If not, would it be possible to add this functionality to send_sticker? 🙂

Bibo-Joshi avatar Sep 06 '21 20:09 Bibo-Joshi

This is possible. But similarly to any other file attribute, the attached emoji will be ignored unless the sticker is just uploaded.

levlam avatar Sep 10 '21 09:09 levlam

I'm not sure if I understand what you mean. Are you saying that passing an emoji to send_sticker wouldn't have any effect if the sticker is sent via file_id? If so: That makes sense and would be expected behavior for me personally. My main user case would be uploading new stickers anyway - that just don't need to end up in a sticker set.

Bibo-Joshi avatar Sep 10 '21 14:09 Bibo-Joshi

Looks like this is covered in API 6.6 https://core.telegram.org/bots/api-changelog#march-9-2023. Many thanks! :)

Bibo-Joshi avatar Mar 09 '23 17:03 Bibo-Joshi