close
目的
測試telegram在rpi CLI的模式下運作機制
安裝步驟
1. 裝該裝的
sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev make libjansson-dev
2. 下載編譯
git clone --recursive https://github.com/vysheng/tg.git && cd tg ./configure make
3. 執行
執行會會要求輸入電話號碼,會送SMS訊息給手機,把訊息的CODE碼輸入及完成配對
pi@raspberrypi ~/telegram/tg $ ./bin/telegram-cli -k tg-server.pub -W Telegram-cli version 1.3.1, Copyright (C) 2013-2015 Vitaly Valtman Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type `show_license'. This is free software, and you are welcome to redistribute it under certain conditions; type `show_license' for details. Telegram-cli uses libtgl version 2.0.1 I: config dir=[/home/pi/.telegram-cli] [/home/pi/.telegram-cli] created [/home/pi/.telegram-cli/downloads] created phone number: +88609XXXXXXXX code ('call' for phone call): 26722 User Perry Wu online (was online [2015/05/25 14:02:45]) User Perry Wu offline (was online [2015/05/25 13:58:14]) User Perry Wu online (was online [2015/05/25 14:03:15]) > msg Perry_Wu test from rpi *** reply_id=0, disable=0 [13:59] Perry Wu msg Perry_Wu dkasdkas;ldk *** reply_id=0, disable=0 [13:59] Perry Wu參考
* 在树莓派上用Node.js监视网页变化并通知手机
http://hugozhu.myalert.info/2015/03/07/57-use-node-module-phantom-to-monitor-webpage-updates.html
* Telegram on Raspberry Pi
http://www.instructables.com/id/Telegram-on-Raspberry-Pi/?lang=zh
文章標籤
全站熱搜
留言列表