whenFile

inline fun <T> TelegramMediaFile.whenFile(block: (File) -> T): T?