newman-reporter-telegram

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i newman-reporter-telegram

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

201 kB

Total Files

9

Last publish

Collaborators

  • dry7