- Create a bot using @BotFather, get it's token
- Start conversation with bot
- Run following curl command
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
# Terminal Cheat Sheet | |
pwd # print working directory | |
ls # list files in directory | |
cd # change directory | |
~ # home directory | |
.. # up one directory | |
- # previous working directory | |
help # get help | |
-h # get help |
sudo apt-get uninstall nodejs # uninstall nodejs 4.2.6 | |
wget https://nodejs.org/dist/v6.6.0/node-v6.6.0-linux-armv7l.tar.gz # get latest ARM build | |
tar -xvf node-v6.6.0-linux-armv7l.tar.gz # extract it | |
sudo cp node-v6.6.0-linux-armv7l /etc/node6.6 # copy extracted file to /etc folder | |
sudo ln -s /etc/node6.6/bin/node /usr/bin/node # link the nodejs executable | |
sudo ln -s /etc/node6.6/bin/npm /usr/bin/npm # link the npm executable | |
node --version # should output v6.6.0 |
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'