All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.dev.inmo.tgbotapi.extensions.utils.extensions.raw.InlineQuery.kt Maven / Gradle / Ivy

There is a newer version: 20.0.1
Show newest version
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
import dev.inmo.tgbotapi.utils.RiskFeature

@RiskFeature(RawFieldsUsageWarning)
val InlineQuery.location: Location?
    get() = asLocationInlineQuery() ?.location

@RiskFeature(RawFieldsUsageWarning)
val InlineQuery.chat_type: String?
    get() = chatType ?.stringified




© 2015 - 2024 Weber Informatics LLC | Privacy Policy