我如何发送电报机器人实时位置?
我正在使用 node-telegram-bot-api
模块。
代码:
此代码只是发送一个位置
await bot.sendLocation(msg.chat.id, 35.804819, 51.434070);
最佳答案
已解决。
bot.onText(/\/livelocation/, async msg => {
await bot.sendLocation(msg.chat.id, 35.804819, 51.434070, {
live_period: 86400,
});
});
关于javascript - 通过 node.js 的 Telegram Bot Live Location,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46994056/