Skip to content

Telegram bot version 1. Main features: reacting to some phrases, setting and event reminder, getting weather for the city, reading rss news from different sources, getting the exchange rate, bot features help.

License

Notifications You must be signed in to change notification settings

BTCY/bot-v1-node-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot V1

Table of Contents

About

The first version of the bot that provides various informational content. The bot works on the framework Telegraf.js.

Main Features

  • Reacting to some phrases
  • Setting and event reminder
  • Getting weather for the city
  • Reading rss news from different sources
  • Getting the exchange rate
  • Bot features help

Getting Started

These instructions will help you run a copy of the project on your local machine for development and testing purposes.

Prerequisites

For the project to work, the following dependencies must be installed on your system:

Installing project

  1. Copy this repository to your local machine
  2. Run the command in the project folder
    npm install
    
  3. Create a telegram bot token — Documentation
  4. Create a .env file at the root of the project (on the same level as package.json)
  5. Add a telegram bot token to the .env file
    TELEGRAM_TOKEN="YOUR_TOKEN" 
    
  6. [Optional] Create a OpenWeatherMap token — Documentation
    • Add a OpenWeatherMap token to the .env file
      WEATHER_SERVICE_TOKEN="YOUR_TOKEN" 
      
  7. Start the project
    npm start 
    

Usage

Go to telegram, find there the bot you created to which the specified API token is attached. Get a list of available commands by writing to it:

/help

About

Telegram bot version 1. Main features: reacting to some phrases, setting and event reminder, getting weather for the city, reading rss news from different sources, getting the exchange rate, bot features help.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published