Package dev. inmo. tgbotapi. webapps
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
typealias ViewportChangedEventHandler = WebApp.(ViewportChangedData) -> Unit
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
suspend fun TelegramBot.answerWebAppQuery(result: InlineQueryResult): SentWebAppMessage?
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun handleResult(onSendData: () -> String?, onAnswerWebAppQuery: (WebAppQueryId) -> Unit)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun WebApp.onEvent(type: EventType, eventHandler: EventHandler): () -> Unit
Content copied to clipboard
fun WebApp.onEvent(type: EventType.InvoiceClosed, eventHandler: InvoiceClosedEventHandler): (InvoiceClosedInfo) -> Unit
Content copied to clipboard
fun WebApp.onEvent(type: EventType.ViewportChanged, eventHandler: ViewportChangedEventHandler): (ViewportChangedData) -> Unit
Content copied to clipboard
Link copied to clipboard
fun WebApp.onInvoiceClosed(eventHandler: InvoiceClosedEventHandler): (InvoiceClosedInfo) -> Unit
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun WebApp.onSettingsButtonClicked(eventHandler: EventHandler): () -> Unit
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun WebApp.onViewportChanged(eventHandler: ViewportChangedEventHandler): (ViewportChangedData) -> Unit
Content copied to clipboard
Link copied to clipboard
inline fun sendDataOrWorkWithQueryId(onSendData: () -> String?, onAnswerWebAppQuery: (WebAppQueryId) -> Unit)
Content copied to clipboard
Link copied to clipboard