git clone [email protected]:MItsutoshiNAKANO/line-bot.git
cd line-bot
# Read all files carefully!
npm install
cp sample.line-bot.rc.json .line-bot.rc.json
vi .line-bot.rc.json # Define your Channel Acccess Token & Line ID.
./line-bot.mjs message...
I misunderstood the specification about arguments of MessagingApiClient.pushMessage() in @line/bot-sdk. So, I wrote the wrong script.
- @see <misunderstanding.md>
- @see line/line-bot-sdk-nodejs#598
Now, my bug was fixed. This script can post messages to LINE.