Socket
Book a DemoInstallSign in
Socket

telegram-send-message

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telegram-send-message

Send messages easily to telegram clients.

latest
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

Create a bot on Telegram

Open Telegram app, search for @BotFather and start the chat. Send /newbot command and follow the instructions. After completing the initial steps, you’ll get the bot token.

How to get your chat ID?

  • Search on Telegram for @get_id_bot
  • Enter: /my_id
  • You'll see your chat id in a few seconds.

How to use it?

You must first import the package

import Telegram from 'telegram-send-message';

And then you can do this to send the message:

Telegram.setToken(YOUR TELEGRAM BOT TOKEN);
Telegram.setRecipient(RECIPIENT CHAT ID);
Telegram.setMessage('Bla bla bla i'm a nerd.');
Telegram.send();

Questions?

Visit my website: http://pimvdmolen.nl

Keywords

telegram

FAQs

Package last updated on 19 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts