Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def delete_messages(self, messages=None):
if messages is None:
messages = self.messages
if len(messages) == 0:
return
dm = scenario.DeleteMessagesScenario(self._rsi,
(self.__delete_messages_cb, messages),
(self.__common_errback,))
dm.message_ids = [m.id for m in messages]
dm()
def delete_messages(self, messages=None):
if messages is None:
messages = self.messages
if len(messages) == 0:
return
dm = scenario.DeleteMessagesScenario(self._rsi,
(self.__delete_messages_cb, messages),
(self.__common_errback,))
dm.message_ids = [m.id for m in messages]
dm()
def delete_messages(self, messages=None):
if messages is None:
messages = self.messages
if len(messages) == 0:
return
dm = scenario.DeleteMessagesScenario(self._rsi,
(self.__delete_messages_cb, messages),
(self.__common_errback,))
dm.message_ids = [m.id for m in messages]
dm()