#sendLocation
使用此方法发送地理位置。成功返回发送的 Message 对象。
参数
| 参数 | 类型 | 必需 | 说明 |
|---|---|---|---|
| chat_id | Integer | Yes | 目标聊天 ID |
| latitude | Float | Yes | 纬度 |
| longitude | Float | Yes | 经度 |
| horizontal_accuracy | Float | Optional | 水平定位精度(米) |
| live_period | Integer | Optional | 实时位置有效期(秒,1–86400) |
| chat_id | Integer | Yes | 目标聊天 ID |
| reply_markup | InlineKeyboardMarkup 等 | Optional | 消息附带的回复键盘 |
| disable_notification | Boolean | Optional | 静默发送,不触发通知 |
| reply_to_message_id | Integer | Optional | 回复的消息 ID |
