docs: def timeline_hashtag(self, hashtag, local=False, max_id=None, min_id=None, since_id=None, limit=None, only_media=False):
          """
          Fetch a timeline of toots with a given hashtag. The hashtag parameter
          should not contain the leading #.
  
          Set `local` to True to retrieve only instance-local tagged posts.
          Set `only_media` to True to retrieve only statuses with media attachments.
          
          Returns a list of `toot dicts`_.
          """
          if hashtag.startswith("#"):
              raise MastodonIllegalArgumentError("Hashtag parameter should omit leading #")
              
          if max_id != None:
              max_id = self.__unpack_id(max_id)
          
          if min_id != None:
              min_id = self.__unpack_id(min_id)        
          
          if since_id != None:
              since_id = self.__unpack_id(since_id)
              
          params_initial = locals()        
          
          if local == False:
              del params_initial['local']
          
          if only_media == False:
              del params_initial['only_media']
              
          url = '/api/v1/timelines/tag/{0}'.format(hashtag)        
          params = self.__generate_params(params_initial, ['hashtag'])
          
          return self.__api_request('GET', url, params)