Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sticker gets sent as an image file #209

Open
xypnox opened this issue Jul 19, 2021 · 1 comment
Open

Sticker gets sent as an image file #209

xypnox opened this issue Jul 19, 2021 · 1 comment

Comments

@xypnox
Copy link

xypnox commented Jul 19, 2021

The example from the readme for sending a sticker at a URL sends the sticker as an image file on both desktop and phone.

The relevant code:

bot.on('sticker', (msg) => {
    return msg.reply.sticker('http://i.imgur.com/VRYdhuD.png', { asReply: true });
});

Removing asReply resulted in the same messages.

Screenshot (first with asReply, second without):

image

PS: Please ignore the first sticker :|

@ghost
Copy link

ghost commented Jul 21, 2021

As mentioned in the README, sendSticker seems only to work with .webp files

Use this method to send .webp stickers.

The official Telegram docs also only mention .webp files

sendSticker
Use this method to send static .WEBP or animated .TGS stickers. On success, the sent Message is returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant