code: function sendMessages(ID, messageArr, interval) {
  	var resArr = [], len = messageArr.length;
  	var callback = typeof(arguments[2]) === 'function' ?  arguments[2] :  arguments[3];
  	if (typeof(interval) !== 'number') interval = 1000;
  
  	function _sendMessages() {
  		setTimeout(function() {
  			if (messageArr[0]) {
  				bot.sendMessage({
  					to: ID,
  					message: messageArr.shift()
  				}, function(err, res) {
  					resArr.push(err || res);
  					if (resArr.length === len) if (typeof(callback) === 'function') callback(resArr);
  				});
  				_sendMessages();
  			}
  		}, interval);
  	}
  	_sendMessages();
  }
docs: /*Function declaration area