1.4.5 • Published 1 year ago

appbot v1.4.5

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

AppBot - Minimalist and Responsive TelegramBot

Install

npm i appbot

Getting Started

import AppBot from "appbot";

//  Class extended of Appbot.Func() with 3 parameters 
// - name : pathname of your Func/Page
// - linked : array of anothers Funcs/Pages to bot recognize and render
// - build : async function that will be executed when Func/Page is called by user click

class Menu extends AppBot.Func(){
    constructor(){
        super(
            'menu',
            [],
            async (props) => {
            this.Text(props.userid,'Hello World')
            this.Button(props.userid,'Button 1','button1')
            this.Button(props.userid,'Button 2','button2')
        })
    }
}

const BOT_TOKEN = 'YOUR_TELEGRAM_BOT_TOKEN'


// Creating a new instance of bot with BOT_TOKEN and the main FUNC/PAGE

const bot = new AppBot(BOT_TOKEN,Menu)

Full Documentation

Portuguese-BR

1.4.5

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

2 years ago

1.1.8

2 years ago

1.2.6

1 year ago

1.1.7

2 years ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago