function broadcast(statuses) {
        return new Promise(function(resolve) {
            var promises = [];

            // Check Database
            statuses.forEach(function(status) {
                promises.push(new Promise(function(r) {
					bot.sendMessage(config.telegram.channel, 'https://twitter.com/statuses/' + status.id_str).then(function(res) {
						database.insert(status).then(function() {
							(r)(1);
						});
					}).catch(function(err) {
						(r)(0);
					});
					
                }));
            });

            // Filter All
            if(promises.length > 0) {
                Promise.all(promises).then(function(data) {
                    (resolve)(_.sum(data));
                });
            } else {
                (resolve)(0);
            }
        });
    }
/**
     * Broadcasts some tweets on telegram
     * @param statuses
     * @returns {Promise}
     */
Broadcasts some tweets on telegram
@param statuses
@returns {Promise}
Broadcasts some tweets on telegram @param statuses @returns { Promise }
function broadcast(statuses) {
        return new Promise(function(resolve) {
            var promises = [];
            statuses.forEach(function(status) {
                promises.push(new Promise(function(r) {
					bot.sendMessage(config.telegram.channel, 'https://twitter.com/statuses/' + status.id_str).then(function(res) {
						database.insert(status).then(function() {
							(r)(1);
						});
					}).catch(function(err) {
						(r)(0);
					});
                }));
            });
            if(promises.length > 0) {
                Promise.all(promises).then(function(data) {
                    (resolve)(_.sum(data));
                });
            } else {
                (resolve)(0);
            }
        });
    }
function broadcast ( statuses ) { return new Promise ( function ( resolve ) { var promises = [ ] ; statuses . forEach ( function ( status ) { promises . push ( new Promise ( function ( r ) { bot . sendMessage ( config . telegram . channel , 'https://twitter.com/statuses/' + status . id_str ) . then ( function ( res ) { database . insert ( status ) . then ( function ( ) { ( r ) ( 1 ) ; } ) ; } ) . catch ( function ( err ) { ( r ) ( 0 ) ; } ) ; } ) ) ; } ) ; if ( promises . length > 0 ) { Promise . all ( promises ) . then ( function ( data ) { ( resolve ) ( _ . sum ( data ) ) ; } ) ; } else { ( resolve ) ( 0 ) ; } } ) ; }
Broadcasts some tweets on telegram
 @param statuses
 @returns {Promise}
Broadcasts some tweets on telegram @param statuses @returns { Promise }
// Check Database // Filter All