-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
26 lines (24 loc) · 732 Bytes
/
app.js
File metadata and controls
26 lines (24 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
var fs = require('fs'),
token = fs.readFileSync('./token.txt', 'utf8').split('\n')[0],
telegrambot = require('node-telegram-bot-api'),
kugelbot = new telegrambot(token, {
polling: true
});
require('./messagehandler/onText')(kugelbot);
//require('./messagehandler/onPhoto')(kugelbot);
//require('./messagehandler/onSticker')(kugelbot);
//require('./messagehandler/irc_test')(kugelbot);
//{ message_id: 5,
// from:
// { id: 1243,
// first_name: 'fn',
// last_name: 'ln',
// username: 'un' },
// chat:
// { id: 123,
// first_name: 'fn',
// last_name: 'ln',
// username: 'un',
// type: 'private' },
// date: 1450634718,
// text: 'Okäse' }