1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-26 12:08:43 +00:00

add raw fields for InlineQuery

This commit is contained in:
InsanusMokrassar 2022-01-06 16:45:50 +06:00
parent 41852dde7c
commit c220412b02

View File

@ -0,0 +1,8 @@
package dev.inmo.tgbotapi.extensions.utils.extensions.raw
import dev.inmo.tgbotapi.extensions.utils.asLocationInlineQuery
import dev.inmo.tgbotapi.types.InlineQueries.query.InlineQuery
import dev.inmo.tgbotapi.types.location.Location
val InlineQuery.location: Location?
get() = asLocationInlineQuery() ?.location