abayomi185/simple-pump-and-dump-bot

Telegram webhook

calamarcus opened this issue · 7 comments

i have read a bit about telegram and they have the possibility of having a webhook for incoming messages instead of long polling. I think this might make it faster.

https://core.telegram.org/bots/webhooks

This might only apply when creating a bot, though :-(

Hmm. It seems like Discord should be looked into as well, to see if it's better.

Also, have you seen similar reports of the same delay from other people's testing on forums?

Actually, no. But i have not looked any deeper though .

Hi,
How do you debug your js code . With visual studio it don't works but it run in console mode on W10.
Thanks

Hey, can you explain what you mean?

I just checked the debugger and it doesn't; show the selection prompts. There seems to be a fix here. SBoudrias/Inquirer.js#650 (comment)

I'm looking into it as well. I often unit test with log statements.

I've just configured the debugger in vscode. Here's my launch.json file in the .vscode folder.

{
  "configurations": [
    {
      "name": "Launch via npm",
      "type": "node",
      "request": "launch",
      "cwd": "${workspaceFolder}/node_wip",
      "runtimeExecutable": "npm",
      "runtimeArgs": ["run-script", "debug"],
      "console": "integratedTerminal"
    }
  ]
}

This assumes that your root folder is the main project folder and not node_wip.

I also had to add "debug": "node bot.js" to the scripts object in the package.json. This would be included in the next commit. I may add the .vscode folder too.