Size: a a a

2017 January 14

DB

Davide Benato in Dev Chat
ok hold on
источник

DB

Davide Benato in Dev Chat
источник

DB

Davide Benato in Dev Chat
it's fairly simple, I just need to find a way to call only once
function checkAccounts() {
       console.log("callback")
   }
no matter how many workers I have
источник

。◕‿◕。 in Dev Chat
источник

。◕‿◕。 in Dev Chat
and you probably should change your telegram token now, because it can be viewed by anyone on pastebin
источник

DB

Davide Benato in Dev Chat
sweet! that's what I was looking for!
I modified it before pasting :)
источник

DB

Davide Benato in Dev Chat
no worries about it
источник

DB

Davide Benato in Dev Chat
can I send a message from the onMaster ?
источник

DB

Davide Benato in Dev Chat
oh yeah, sorry
источник

DB

Davide Benato in Dev Chat
I can use tg ;)
источник

DB

Davide Benato in Dev Chat
weird, I tried:
tg.onMaster(() => {
   tg.sendMessage(123, 'test message') //will be sent one time
})

and I have:

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

Davide Benato in Dev Chat
I use the correct chat id of course
источник

。◕‿◕。 in Dev Chat
Try tg.api.sendMessage
источник

DB

Davide Benato in Dev Chat
it worked, thanks! if you're the dev you might want to update the docs
https://github.com/naltox/telegram-node-bot
the example doesn't have the .api
источник

。◕‿◕。 in Dev Chat
Im not dev and im not even using this library, but docs are fine - https://i.gyazo.com/0e1b74b43e3b67a60df7579e143c24d7.png check this
источник
2017 January 16

1

1C-Bitrix in Dev Chat
Здарова, тобибас
источник
2017 January 18

OS

Omid Sani in Dev Chat
Hey folks. Thanks for the library.
I have a question about the developement environment. With the cluster dispatching messagies to child processes, how do you guys debug the child processes (e.g. put break point, etc). I use vscode  and I am having a lot of trouble migrating my bot from v3 to v4 with the cluster support...
источник
2017 January 19

1

1C-Bitrix in Dev Chat
Its very simple, just make code which dont require debugging, without errors and useful for all possible situations
источник

NK

ID:206441217 in Dev Chat
источник

NK

ID:206441217 in Dev Chat
Что скажите?
источник