Telegram Bot 实时位置来自 node.js
Telegram Bot Live Location via node.js
如何发送电报机器人实时位置?
我正在使用 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,
});
});
如何发送电报机器人实时位置?
我正在使用 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,
});
});