Skip to content

bb24/bb24-bot-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BB24 Telegram Bot

A Telegram bot application for Bale Bale 24

Requirements

  • node 8.4.0
  • npm 5.3.0
  • b24 1.1.0
  • express 4.15.4
  • telebot 1.2.3
  • babel 6.23.0
  • babel-cli 6.26.0
  • babel-core 6.26.0
  • babel-preset-es2015 6.24.1
  • lowdb 0.17.1

Installation

  • Put your bot token in src/user/token.js.
  • Put your Bitrix24 web hook credentials in src/bitrix24/webhook.js.
  • Run npm install.
  • Run npm start.

Deployment

Before you deploy the application, please makes sure that you have run npm run compile command. It's included in npm start command.

Directory Structure

k2d2-telegram-bot
├── dist
│   ├── bitrix24
│   └── user
├── node_modules
|   └── ...
├── src
│   ├── bitrix24
│   └── user
└── storage

All of the bot source code is located in src/ directory. We are using ES6. So, the ES6 will be compiled in dist/. The bot dependencies saved in node_modules/ directory.

Each Telegram username will be saved in storage/users.json.

TODO

  • Create a Telegram bot
  • Build a directory structure for K2D2 Telegram Bot application
  • Make sure that the bot would run properly
  • Fix timeout problem with Express
  • Add help command with specific topic
  • Integrate bot with b24 package
  • Test the web hook feature from b24 package
  • Test an inbound web hook from Bitrix24 with b24 package
  • Complete all needed commands
  • Process and save all needed data
  • Bind BB24 Telegram Bot with Bitrix24 Open Channel Telegram integration
  • Add unit test

About

A Telegram bot application for Bale Bale 24

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published