code: def send_messages(self, messages):
          
          count = 0
          for message in messages:
              message_body = unicodedata.normalize('NFKD', unicode(message.body)).encode('ascii', 'ignore')
              for tel_number in message.to:
                  try:
                      self.client.send(tel_number, message_body, getattr(settings, 'SMS_SLUZBA_API_USE_POST', True))
                  except Exception:
                      if self.fail_silently:
                          log.exception('Error while sending sms via sms.sluzba.cz backend API.')
                      else:
                          raise
                  else:
                      count += 1
  
          return count
docs: Sending SMS messages via sms.sluzba.cz API.
  
          Note:
            This method returns number of actually sent sms messages
            not number of SmsMessage instances processed.
  
          :param messages: list of sms messages
          :type messages: list of sendsms.message.SmsMessage instances
          :returns: number of sent sms messages
          :rtype: int