Back
Pug Pugson
Load previous page…

Stay in high school and have a plan when you hit 18. I would advise against dropping out of high school underage because it leads to more problems than solutions. Cherish the time where you don't have to work for a living and use it to learn and improve your future.

Dropped out of graphic design college after 1 semester, decided to go more into programming. It was a good decision because I knew what path to take to get to where I am today.

Don't just drop out for the sake of dropping out. And also which level of education are you talking about?

I was talking more about something like high school, but your story is inspiring anyway :)

Stay in high school and have a plan when you hit 18. I would advise against dropping out of high school underage because it leads to more problems than solutions. Cherish the time where you don't have to work for a living and use it to learn and improve your future.

It's a websocket connection to the Telegram server and keeps the process alive, so the bot never quits running.

Is this something specific to Node? I am using PHP, in this example it just goes recursively with sleep method: github.com/kolar/telegram-pol…

No idea. Maybe don't use PHP :D

Nope, I'm using polling with Node. github.com/yagop/node-telegra…

Are you using a service that loops over or just a cronjob/schedule task every X seconds?

It's a websocket connection to the Telegram server and keeps the process alive, so the bot never quits running.

Is this something specific to Node? I am using PHP, in this example it just goes recursively with sleep method: github.com/kolar/telegram-pol…

No idea. Maybe don't use PHP :D

Run it only on localhost, kill other instances. Console log stuff.

Are you using ngrok for webhooks?

Nope, I'm using polling with Node. github.com/yagop/node-telegra…

Are you using a service that loops over or just a cronjob/schedule task every X seconds?

It's a websocket connection to the Telegram server and keeps the process alive, so the bot never quits running.

Is this something specific to Node? I am using PHP, in this example it just goes recursively with sleep method: github.com/kolar/telegram-pol…

No idea. Maybe don't use PHP :D