benjick / meteor-telegram-bot

Telegram bot plugin for Meteor
24 stars 15 forks source link

uploading images etc #4

Open dcsan opened 9 years ago

dcsan commented 9 years ago

did you look at supporting upload of images yet? if not, i was going to ask your advice on how to proceed

I see the docs state Must be posted using multipart/form-data https://core.telegram.org/bots/api#inputfile

I was going to look at adding it using this https://github.com/rosh93/meteor-multipart-form-data/

or else just wrap up a full-featured telegram node package such as https://github.com/mast/telegram-bot-api which makes it trivial to send images

do you see any problems with the second approach? (npm inside meteor and fibers has caused me headaches in the past).