code: def document(self):
          
          if isinstance(self.result, types.BotInlineResult):
              return self.result.content
          elif isinstance(self.result, types.BotInlineMediaResult):
              return self.result.document
docs: Returns either the :tl:`WebDocument` content for
          normal results or the :tl:`Document` for media results.