DB
Size: a a a
DB
DB
function checkAccounts() {
console.log("callback")
}no matter how many workers I haveDB
DB
DB
onMaster ?DB
DB
DB
tg.onMaster(() => {
tg.sendMessage(123, 'test message') //will be sent one time
}) Users/taabedae/nem_notifier/index.js:119
tg.sendMessage(302414323, 'test message') //will be sent one time
^
TypeError: tg.sendMessage is not a function
at tg.onMaster (/Users/taabedae/nem_notifier/index.js:119:8)
at Telegram.onMaster (/Users/taabedae/nem_notifier/node_modules/telegram-node-bot/lib/Telegram.js:185:13)
at Object.<anonymous> (/Users/taabedae/nem_notifier/index.js:118:4)
at Module._compile (module.js:573:32)
at Object.Module._extensions..js (module.js:582:10)
at Module.load (module.js:490:32)
at tryModuleLoad (module.js:449:12)
at Function.Module._load (module.js:441:3)
at Module.runMain (module.js:607:10)
at run (bootstrap_node.js:382:7)
DB
DB
.api。
OS
NK
NK