0.0.3 • Published 4 years ago

@smyak/tg-send v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Simple send message with Telegram

  1. Copy .env-sample to .env (if not exists in your project)

  2. Get TELEGRAM_TOKEN from Bot Father and add to .env

  3. Create group and add your bot to group

  4. Get chat id with https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates (should started with - like -123456789)

  5. Add TELEGRAM_CHAT_ID to .env

  6. require('simpleSendTg')('Any text message');