[英]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,
});
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.