ifFile

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