All Projects → ivanmarban → winston-telegram

ivanmarban / winston-telegram

Licence: MIT License
A Telegram transport for winston

Programming Languages

javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to winston-telegram

loggin-js
📝 Customizable and expandable logger for Node.js
Stars: ✭ 20 (-28.57%)
Mutual labels:  logger, logging-library, node-js
technopsyna
телеграм бот для техноконфы
Stars: ✭ 16 (-42.86%)
Mutual labels:  telegram, telegram-bot
podsearch bot
Telegram bot that searches Podcast in iTunes store.
Stars: ✭ 28 (+0%)
Mutual labels:  telegram, telegram-bot
Store-bot
Пример Telegram бота для продажи товаров.
Stars: ✭ 43 (+53.57%)
Mutual labels:  telegram, telegram-bot
cfworker-middware-telegraf
Make telegraf (a telegram bot framework) useable in Cloudflare Workers
Stars: ✭ 23 (-17.86%)
Mutual labels:  telegram, telegram-bot
luxmed-bot
Non official telegram bot for Portal Pacjenta LUX MED
Stars: ✭ 24 (-14.29%)
Mutual labels:  telegram, telegram-bot
WilliamButcherBot
Telegram Group Manager Bot Written In Python Using Pyrogram.
Stars: ✭ 187 (+567.86%)
Mutual labels:  telegram, telegram-bot
ecasbot
EC AntiSpam bot for the Telegram messenger
Stars: ✭ 17 (-39.29%)
Mutual labels:  telegram, telegram-bot
AmimeWatch
Telegram bot made in Python 3 using the @pyrogram framework.
Stars: ✭ 19 (-32.14%)
Mutual labels:  telegram, telegram-bot
Komi-San
Telegram Group Management Bot based on Pyrogram
Stars: ✭ 27 (-3.57%)
Mutual labels:  telegram, telegram-bot
ESPecial
ESP32 automation with web interface and telegram bot
Stars: ✭ 77 (+175%)
Mutual labels:  telegram, telegram-bot
PDF-Bot
A bot for PDF for doing Many Things....
Stars: ✭ 38 (+35.71%)
Mutual labels:  telegram, telegram-bot
Harmonbot
Multi-Platform Factotum Bot
Stars: ✭ 30 (+7.14%)
Mutual labels:  telegram, telegram-bot
webhook-aiogram-heroku
A sample telegram bot made with aiogram, that fetches updates using the web-hook connection. Can be easily deployed to Heroku.
Stars: ✭ 36 (+28.57%)
Mutual labels:  telegram, telegram-bot
TelegramShillBot
A simple Telegram bot, written in Python, that you can use to shill (i.e. send messages) your token, or whatever, to channels.
Stars: ✭ 42 (+50%)
Mutual labels:  telegram, telegram-bot
memes-reposter
bot for automatic broadcasting content into telegrams channels from reddit/imgur/rss
Stars: ✭ 35 (+25%)
Mutual labels:  telegram, telegram-bot
node-telegram-keyboard-wrapper
A support to manage keyboards and force replies in Telegram via bots
Stars: ✭ 32 (+14.29%)
Mutual labels:  telegram-bot, node-js
Lighty
Easy to use and lightweight logger for iOS, macOS, tvOS, watchOS and Linux in Swift.
Stars: ✭ 49 (+75%)
Mutual labels:  logger, logging-library
Python-BlackJackBot
A Telegram bot written in Python to play the game BlackJack alone or with your friends
Stars: ✭ 48 (+71.43%)
Mutual labels:  telegram, telegram-bot
MIRROR-HUNTER
Who are we? We are the Hunters of all Torrent in this world.🗡️.Fork from SlamDevs
Stars: ✭ 86 (+207.14%)
Mutual labels:  telegram, telegram-bot

winston-telegram

NPM

A Telegram transport for winston.

Version npm npm Downloads Tests Status Coverage Status dependencies Status JavaScript Style Guide Donate

winston-telegram@2

Installation:

$ npm install winston@3
$ npm install winston-telegram@2

Looking for [email protected] ?

Documentation below is for winston-telegram@2. Read the [email protected] documentation.

Usage

const logger = require('winston')
const TelegramLogger = require('winston-telegram')

// or
import * as TelegramLogger from 'winston-telegram';

logger.add(new TelegramLogger(options))

Options:

  • token: The Telegram bot authentication token. [required]
  • chatId: The Telegram chatid you want to send to. [required]
  • parseMode: The Telegram mode for parsing entities in the message text. See formatting options for more details. [optional]
  • level: Level of messages that this transport should log. [optional] [default info]
  • unique: Whether to log only the declared level and none above. [boolean] [optional]
  • silent: Whether to suppress output. [boolean] [optional]
  • disableNotification: Sends the message silently. [boolean] [optional]
  • template: Format output message. [string] [optional]
  • formatMessage: Format output message by own method. [function] [optional]
  • handleExceptions: Handle uncaught exceptions. [boolean] [optional]
  • batchingDelay: Time in ms within which to batch messages together. [integer] [optional] [default 0 or disabled]
  • batchingSeparator: String with which to join batched messages with [string] [default "\n\n"]

String template is based on named arguments:

'{level}' -> level of messages
'{message}' -> text of messages
'{metadata}' -> metadata object of messages

Examples

Follow below steps to run the examples:

$ git clone [email protected]:ivanmarban/winston-telegram.git -b master --single-branch
$ npm install

Replace TELEGRAM_TOKEN and CHAT_ID with appropiate values, then run whatever example you want:

$ node examples/default-logger.js
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].