GithubHelp home page GithubHelp logo

fakhruddinabdi / telegram-cms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from navidshad/telegram-cms

1.0 2.0 0.0 106 KB

it is a nodejs application to lunch a telegram bot in seconds with primary components.

License: GNU General Public License v3.0

JavaScript 99.86% CSS 0.04% HTML 0.10%

telegram-cms's Introduction

telegram-cms

it is a nodejs application to lunch a telegram bot in seconds with primary components. I have work on telegram bots for almost 2 years and catched up most of needs for a chatbot. so I made this to solve lots of challenges and lunching a bot easily. there is an ability to write your own modules on telegram-cms that I'll explain then. I'll complete this documentation during my tasks. but here is a simple "how to use"

###note

  • the main language of bot is persion, but I will make a multilanguage system for it, soon.

##how to use

  • install it,
  • creat an app.js (or what ever you want)
  • require it and start

...

var tcms = require('telegram-cms');

var option = {
    // mongo db path
    dbpath      :'mongodb://[username]:[password]@[hostname]:[db detail]',
    // bot token
    token       :'501661926:AAEOPbgcY_JCHQg2g4ouWA6rgdNZ8B7GEp9Q',
    // bot username
    botusername :'barmBaf_bot',
    // activate modules
    modules:{
        'category'          :true,	// category module
        'post'              :true,	// post module
        'commerce'          :false,	// shop module
        'settings'          :true,	// setting module
        'search'            :false,	// search module
        'ticket'            :true,	// contact form module
        'contacttousers'    :true,	// a module for send message to users
        'chanelChecker'     :true,	// a module for connecting to a channel
        'favorites'         :false,	// a module to make favorite (favorite posts, etc)
    },

    // web
    serverport:2002,	//express server, needed for commerce module

    // folders
    modulespath: require('path').join(__dirname, 'plugins'),	// If you write your own modules
}

tcms.start(option);

...

telegram-cms's People

Contributors

navidshad avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.