whenPathedFile

inline fun <T> TelegramMediaFile.whenPathedFile(block: (PathedFile) -> T): T?