1.0.2 • Published 2 years ago

newman-reporter-telegram v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

newman-reporter-telegram

Custom Newman reporter to send message to Telegram

Before you get started

  • Install Newman $ npm run i -g newman
  • Create Telegram Bot
  • Add bot to your group or channel
  • Grant the bot permission to send messages to the group/channel

Installation

npm i -g newman-reporter-telegram

Usage

 newman run <collectionFile> -e <environmentFile> --suppress-exit-code -r telegram'

Usage with channel override bot

 newman run <collectionFile> -e <environmentFile> --suppress-exit-code -r telegram --reporter-telegram-apiKey '<bearer token>' --reporter-telegram-chatId '<chat id>'

Reporter Options Optionals

 --reporter-telegram-messageSize '<messageSize>' e.g 150
 --reporter-telegram-apiKey '<bearer token>' e.g 0000000000:AAAAAaa0aaA00AaaAa000a0aAAaaAa0aaaA
 --reporter-telegram-chatId '<channel>' e.g -000000000
 --reporter-telegram-limitFailures '<limitFailures>; e.g 5

Reporter Options

messageSize Option to change the message size, defaulted to 100

apiKey

chatId

limitFailures Option to limit the amount failures shown in slack