title: How to get caption from Telegramm message(Pyrogram)
body: <p>I'm newbie at Python. I want to parse certain dialog(contains only captions to pics) with Pyrogram. But if i use iter_history() methog it returns none if message contains pic+text.Like that.</p>
  <pre><code>import asyncio
  from pyrogram import Client
  
  app = Client(&quot;my_acc&quot;)
  target = &quot;dialog_example&quot;  # &quot;me&quot; refers to your own chat (Saved Messages)
  
  with app:
      for message in app.iter_history(target):
          print(message.text)
  </code></pre>
  <blockquote>
  <p>None</p>
  <p>Process finished with exit code 0</p>
  </blockquote>