method ApiMethods.editMessageLiveLocation
ApiMethods.editMessageLiveLocation(args: { business_connection_id?: string; chat_id?: number | string; message_id?: number; inline_message_id?: string; latitude: number; longitude: number; live_period?: number; horizontal_accuracy?: number; heading?: number; proximity_alert_radius?: number; reply_markup?: InlineKeyboardMarkup; }): (Update.Edited & Message.LocationMessage) | true

Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.

Parameters

args: { business_connection_id?: string; chat_id?: number | string; message_id?: number; inline_message_id?: string; latitude: number; longitude: number; live_period?: number; horizontal_accuracy?: number; heading?: number; proximity_alert_radius?: number; reply_markup?: InlineKeyboardMarkup; }

Return Type

Usage

import { type ApiMethods } from "types";