asTelekInput

fun ContentMessage<TextContent>.asTelekInput(): Message
fun ContentMessage<DocumentContent>.asTelekInput(): Document
fun ContentMessage<ContactContent>.asTelekInput(): Contact


fun DataCallbackQuery.asTelekInput(): Callback?

null for a callback query that has no message attached to it (an inline-mode one), which telek can't key by chatId and therefore can't route.


fun ContentMessage<PhotoContent>.asTelekInput(): Photo

Carries content.media — the size ktgbotapi designates for the collection — and not a pick of telek's own out of mediaCollection. telek does not model photo sizes: a wizard step keeps the photo, and a bot that wants a specific size asks the transport for it.


fun ContentMessage<LocationContent>.asTelekInput(): Location

Latitude and longitude only, and a live location collapses to the point it was at. telek has no notion of a location that keeps moving — a wizard step that asks "where are you" is answered by a point, and anything richer is a bot's own io.github.youndie.telek.Input.