This microserivce will handel post segment of messages contaion links, hanshtags and messages to tweeter and keep message length equal or less than 140 characters. You can add as many as you like hashtages and links and this service will manage segment messages and post them.
*You should have account on Twitter Developer, to get your secret and tokens to start using this service
How to use.
npm install twitter-service
let tw = require('twitter-service');
"consumer_key" :"ENTER YOUR CONSUMER KEY",
"consumer_secret" :"ENTER YOUR CONSUMER SECRET",
"access_token" :"ENTER YOUR ACCESS TOKEN",
"access_token_secret":"ENTER YOUR ACCESS TOKEN SECRET"
Open index.js and change urls array.
Change tweet message.
open service/twitter/twitterManager.js, and change promise message tweetsMessages(twit,links,hashtags,' Amazing! ')
Add remove hashtages
open twitter_config/hashtages.js, do your magic.