Node-telegram-bot-api: Sending Gif example

Created on 16 Jul 2015  路  5Comments  路  Source: yagop/node-telegram-bot-api

Currently to send an animated gif you must use the method "sendDocument", but in the example you use "sendPhoto" so it's a little confused...

Anyway, I think the method "sendPhoto" would support sending animated gif, don't you?

Pd: thank you for this wonderful api!!

docs

Most helpful comment

We have added some help information on this issue!

All 5 comments

Sorry, the example might be confusing. I am sending a static GIF bot.gif as a photo on the examples.

I will change it, thanks.

When this bug will be fixed?

I was so confused until I found this thread. Just couldn't understand why my bot kept saying "{"ok":false,"error_code":400,"description":"[Error]: Bad Request: there is no photo in request"}"

This should be mentioned in the docs. Very misleading when sending gifs. :-)

We have added some help information on this issue!

Was this page helpful?
0 / 5 - 0 ratings