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