Skip to content

stopMessageLiveLocation

Returns Message | boolean

Use this method to stop updating a live location message before live_period expires.

Optional: 5 parameters

Try it
Token saved
Response

TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("stop_message_live_location")

Parameters

business_connection_id string
Unique identifier of the business connection on behalf of which the message to be edited was sent.

chat_id number | string
Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername).

message_id number
Required if inline_message_id is not specified. Identifier of the message with live location to stop.

inline_message_id string
Required if chat_id and message_id are not specified. Identifier of the inline message.

reply_markup InlineKeyboardMarkup
A JSON-serialized object for a new inline keyboard.

stopPoll