/tg-bot-pi

Bot for Telegram (tg)

Primary LanguageLuaApache License 2.0Apache-2.0

tg-bot-pi

Bot for Telegram (tg)

requirements

  • Need to install telegram-cli first.
  • Change absolute path for HOME and TMP_PATH
  • Set your telegram id in ADMINLIST

usage

telegram-cli -W -s <path/to/script/action.lua>

plugins

script command remarks
000.reload_plugins.lua pi:reload admin only http://i.imgur.com/Kc2DodU.png
zzz.boottime.lua pi:boottime admin only http://i.imgur.com/eYaIxjM.png
zzz.cputemp.lua pi:cputemp admin only http://i.imgur.com/l1qzdmx.png
zzz.loadavg.lua pi:loadavg admin only http://i.imgur.com/mHiiLxu.png
zzz.ramusg.lua pi:ramusg admin only http://i.imgur.com/DFQEw24.png
zzz.uptime.lua pi:uptime admin only http://i.imgur.com/8dgZQNs.png
zzz.yourbot.lua pi:bot admin only
zzz.yourcode.lua admin only
currency.lua pi:$ http://i.imgur.com/n7rxLpB.png
9gag.lua pi:9gag http://i.imgur.com/s6fMWnd.png
expand.lua pi:expand http://i.imgur.com/HEzMGGH.png
fbvid.lua pi:fbvid http://i.imgur.com/3JiT5eO.png
gold.lua pi:gold http://i.imgur.com/X0Ei5yE.png
gst.lua pi:gst http://i.imgur.com/L8tVaDh.png
kastam.lua pi:kastam http://i.imgur.com/J76nvza.png
list.lua pi:list http://i.imgur.com/kYXNC6I.png
mbsa.lua pi:mbsa http://i.imgur.com/yykP2XA.png
meme.lua pi:meme http://i.imgur.com/kgEJKQg.png
myid.lua pi:myid http://i.imgur.com/LmWhmwL.png
poskod.lua pi:poskod
poslaju.lua pi:poslaju http://i.imgur.com/IfPSp2w.png
qr.lua pi:qr http://i.imgur.com/auFy62H.png
quran.lua pi:quran http://i.imgur.com/BCRS939.png
shorten.lua pi:shorten http://i.imgur.com/7mAVLGT.png
time.lua pi:time http://i.imgur.com/2z7M1bU.png
webshot.lua pi:webshot http://i.imgur.com/wFsbPJp.png
youtube.lua pi:yt http://i.imgur.com/hkXKjAq.png
...

environment

Tested on Raspbian only

chat with bot

Feel free to try the bot via Telegram or manually search @MYbot in Telegram app.