如何发送电报机器人实时位置?
我在用着node-telegram-bot-api
Module.
Code:
此代码仅发送位置
await bot.sendLocation(msg.chat.id, 35.804819, 51.434070);
Solved.
bot.onText(/\/livelocation/, async msg => {
await bot.sendLocation(msg.chat.id, 35.804819, 51.434070, {
live_period: 86400,
});
});
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)