1.4.5 • Published 2 years ago
appbot v1.4.5
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
1.4.5
2 years ago
1.4.4
2 years ago
1.4.3
2 years ago
1.4.2
2 years ago
1.4.1
2 years ago
1.4.0
2 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.0
3 years ago
1.1.8
3 years ago
1.2.6
3 years ago
1.1.7
3 years ago
1.2.5
3 years ago
1.2.4
3 years ago
1.2.3
3 years ago
1.2.2
3 years ago
1.2.1
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago