小编m52*_*2go的帖子

使用sendPhoto发送动画GIF(Telegram bot)

我正在尝试使用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?我应该使用另一种方法吗?

telegram telegram-bot php-telegram-bot

7
推荐指数
2
解决办法
9407
查看次数

如何使用Meteor的WebApp访问HTTP POST主体(表单数据)?还是其他什么?

我已经尝试使用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表单数据.没有身体属性,我没有看到任何其他属性下的数据本身.

我该如何访问这些数据?我疯狂地想弄清楚我认为会比较简单的东西......

javascript node.js meteor iron-router

0
推荐指数
1
解决办法
1815
查看次数