Send Live Location
fun SendLiveLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, livePeriod: Seconds, horizontalAccuracy: Meters? = null, heading: Degrees? = null, proximityAlertRadius: Meters? = null, threadId: MessageThreadId? = chatId.threadId, directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, receiverUserId: UserId? = chatId.receiverUser, callbackQueryId: CallbackQueryId? = null, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, suggestedPostParameters: SuggestedPostParameters? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendLocation.Live(source)
Parameters
live Period
According to Telegram Bots API, must be 0 when sending as an ephemeral message (with receiverUserId set), as ephemeral messages do not support live location updates. Prefer SendStaticLocation for ephemeral locations.