//[docs](../../index.md)/[dev.inmo.tgbotapi.types.InputMedia](index.md)/[toInputMediaPhoto](to-input-media-photo.md) # toInputMediaPhoto [common] Content fun [PhotoSize](../dev.inmo.tgbotapi.types.files/-photo-size/index.md).[toInputMediaPhoto](to-input-media-photo.md)(caption: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, parseMode: [ParseMode](../dev.inmo.tgbotapi.types.ParseMode/-parse-mode/index.md)? = null): [InputMediaPhoto](-input-media-photo/index.md) fun [PhotoSize](../dev.inmo.tgbotapi.types.files/-photo-size/index.md).[toInputMediaPhoto](to-input-media-photo.md)(textSources: [TextSourcesList](../dev.inmo.tgbotapi.CommonAbstracts/index.md#%5Bdev.inmo.tgbotapi.CommonAbstracts%2FTextSourcesList%2F%2F%2FPointingToDeclaration%2F%5D%2FClasslikes%2F625018081) = emptyList()): [InputMediaPhoto](-input-media-photo/index.md)