2020-02-15 09:33:04 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.edit.LiveLocation
|
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.TelegramBot
|
2020-02-15 09:33:04 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.edit.LiveLocation.EditInlineMessageLiveLocation
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.InlineMessageIdentifier
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.Location
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.buttons.InlineKeyboardMarkup
|
|
|
|
|
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,
|
|
|
|
replyMarkup: InlineKeyboardMarkup? = null
|
|
|
|
) = execute(
|
|
|
|
EditInlineMessageLiveLocation(
|
|
|
|
inlineMessageId, latitude, longitude, replyMarkup
|
|
|
|
)
|
|
|
|
)
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.editLiveLocation(
|
2020-02-15 09:33:04 +00:00
|
|
|
inlineMessageId: InlineMessageIdentifier,
|
|
|
|
location: Location,
|
|
|
|
replyMarkup: InlineKeyboardMarkup? = null
|
|
|
|
) = editLiveLocation(inlineMessageId, location.latitude, location.longitude, replyMarkup)
|