title: File Reference Expired Error python telethon
body: <p>Everything works at least good at start and few hours later, but at some moment gets this error</p>
  <blockquote>
  <p>telethon.errors.rpcerrorlist.FileReferenceExpiredError: The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent (caused by SendMediaRequest)</p>
  </blockquote>
  <p>This is how i clone messages from one telegram channel to another</p>
  <pre><code>posts = bot.get_messages(channel_from_entity, min_id=start_id - 1, max_id=999999,
                           filter=types.InputMessagesFilterEmpty())[::-1]
  for post in posts:
      bot.send_message(channel_to, post)
      logger.info(f'Successfully posted | ID: {post.id}')
      time.sleep(POST_INTERVAL)
  </code></pre>
  <p>Maybe it seems to file_reference error, but i have no idea how to implement it.</p>
  <p>Do you have any ideas?</p>