DEV Community

Cover image for Send private message in chat (Telegram Bot)
Lucifer25x
Lucifer25x

Posted on • Updated on

Send private message in chat (Telegram Bot)

Github Url: https://github.com/Lucifer25x/secureMessage

Usage:

/for @uname=username content=Some Text
Enter fullscreen mode Exit fullscreen mode

Create your own bot:

  • Clone repository:
https://github.com/Lucifer25x/secureMessage.git
Enter fullscreen mode Exit fullscreen mode
  • Install dependencies:
npm install
Enter fullscreen mode Exit fullscreen mode
  • Create .env file:
touch .env
Enter fullscreen mode Exit fullscreen mode
  • Paste your bot token to .env file like this:
TOKEN=your_token
Enter fullscreen mode Exit fullscreen mode
  • Start project
npm start
Enter fullscreen mode Exit fullscreen mode

Discussion (0)