Exemplo n.º 1
0
 def reply(self, text, reply_all=False, **kwargs):
     if reply_all:
         text = utils.optimize_mentions(
             [self.user.screen_name] + [entity.screen_name for entity in self.entities.user_mentions], text
         )
     else:
         text = utils.optimize_mentions([self.user.screen_name], text)
     return self.api.update_status(status=text, in_reply_to_status_id=self.id, **kwargs)
Exemplo n.º 2
0
 def reply(self, text, reply_all=False, **kwargs):
     if reply_all:
         text = utils.optimize_mentions(
             [self.user.screen_name] +
             [entity.screen_name
              for entity in self.entities.user_mentions], text)
     else:
         text = utils.optimize_mentions([self.user.screen_name], text)
     return self.api.update_status(status=text,
                                   in_reply_to_status_id=self.id,
                                   **kwargs)
Exemplo n.º 3
0
	def mention(self, text, **kwargs):
		text = utils.optimize_mentions([self.screen_name], text)
		return self.api.update_status(status = text, **kwargs)
Exemplo n.º 4
0
 def mention(self, text, **kwargs):
     text = utils.optimize_mentions([self.screen_name], text)
     return self.api.update_status(status=text, **kwargs)