我正在尝试使用sendPhoto(Telegram的Bot API)发送带有此请求的动画GIF:
https://api.telegram.org/bot<token>/sendPhoto?chat_id=<chat_id>&photo=http://i.giphy.com/13IC4LVeP5NGNi.gif
Run Code Online (Sandbox Code Playgroud)
该方法有效,我ok:true回来了,但聊天窗口中的图像是移动GIF的静态快照.
如何才能显示动画GIF?我应该使用另一种方法吗?
我已经尝试使用Iron Router进行服务器路由,但这不起作用.然后我发现了WebApp,它似乎应该处理这个问题.
但是当我检查req对象时:
WebApp.connectHandlers.use("/api/add", function( req, res, next ) {
console.log( req );
res.writeHead(200);
res.end("Hello world from: " + Meteor.release);
});
Run Code Online (Sandbox Code Playgroud)
我没有看到任何POST表单数据.没有身体属性,我没有看到任何其他属性下的数据本身.
我该如何访问这些数据?我疯狂地想弄清楚我认为会比较简单的东西......