2020-10-04 10:57:39 +00:00
|
|
|
package dev.inmo.tgbotapi.extensions.api.edit.LiveLocation
|
2020-02-15 09:33:04 +00:00
|
|
|
|
2020-10-04 11:06:30 +00:00
|
|
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
2022-05-01 15:33:36 +00:00
|
|
|
import dev.inmo.tgbotapi.extensions.api.edit.location.live.editLiveLocation
|
2022-05-01 15:20:31 +00:00
|
|
|
import dev.inmo.tgbotapi.requests.edit.location.live.EditInlineMessageLiveLocation
|
2020-11-05 17:48:23 +00:00
|
|
|
import dev.inmo.tgbotapi.types.*
|
2020-10-04 11:06:30 +00:00
|
|
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
|
2020-11-05 17:48:23 +00:00
|
|
|
import dev.inmo.tgbotapi.types.location.LiveLocation
|
2020-02-15 09:33:04 +00:00
|
|
|
|
2022-05-01 15:33:36 +00:00
|
|
|
@Deprecated("Replaced", ReplaceWith("editLiveLocation", "dev.inmo.tgbotapi.extensions.api.edit.location.live.editLiveLocation"))
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.editLiveLocation(
|
2020-02-15 09:33:04 +00:00
|
|
|
inlineMessageId: InlineMessageIdentifier,
|
|
|
|
latitude: Double,
|
|
|
|
longitude: Double,
|
2020-11-05 17:48:23 +00:00
|
|
|
horizontalAccuracy: Meters? = null,
|
|
|
|
heading: Degrees? = null,
|
|
|
|
proximityAlertRadius: Meters? = null,
|
2020-02-15 09:33:04 +00:00
|
|
|
replyMarkup: InlineKeyboardMarkup? = null
|
2022-05-01 15:33:36 +00:00
|
|
|
) = editLiveLocation(inlineMessageId, latitude, longitude, horizontalAccuracy, heading, proximityAlertRadius, replyMarkup)
|
|
|
|
@Deprecated("Replaced", ReplaceWith("editLiveLocation", "dev.inmo.tgbotapi.extensions.api.edit.location.live.editLiveLocation"))
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.editLiveLocation(
|
2020-02-15 09:33:04 +00:00
|
|
|
inlineMessageId: InlineMessageIdentifier,
|
2020-11-05 17:48:23 +00:00
|
|
|
location: LiveLocation,
|
2020-02-15 09:33:04 +00:00
|
|
|
replyMarkup: InlineKeyboardMarkup? = null
|
2022-05-01 15:33:36 +00:00
|
|
|
) = editLiveLocation(inlineMessageId, location, replyMarkup)
|