折腾啥 头像

消息来源频道

折腾啥

@zhetengsha

频道40,410 位成员公开可见0 人在线

Power Users/Automators 折腾/讨论/分享各种开源工具/脚本/自动化工作流 👥 群组 @zhetengsha_group 📌 资源合集导航 https://t.me/zhetengsha/2 🎁 恰饭推荐 https://t.me/zhetengsha/957 📢 广告投放 @xream Buy ads: https://telega.io/c/zhetengsha feedId:55438372655431680+userId:62307599601855488

成员规模40,410 位成员
在线情况0 人在线
消息总数4,340 条消息
浏览量总数7,753,402 次浏览

在这个频道里搜索消息……

t.me/zhetengsha

#脚本 #vmshell 查询中转剩余流量
复制 curl 粘贴 搞好 tg 推送参数 cron 一把梭
#!/usr/bin/env bash
# > 打开产品详情时 有个请求 复制 curl 替换就行
text=curl 'https://vmshell.com/clientarea.php?action=productdetails&id=&ajax=true&act=list_rule' \
--compressed
echo $text
# > 记得装个 yq 解析 json
all=echo $text| yq ".traffic_all"
used=echo $text| yq ".traffic_used"
text="[vmshell] $used GB / $all GB"$'\n\n'"https://vmshell.com/clientarea.php"
echo text
# > tg bot api key
api_key=""
# > tg 目标对话 id
chat_id=""
curl -F disable_notification=true -F chat_id=$chat_id -F "text=$text" https://api.telegram.org/bot$api_key/sendMessage
💬 查看最新原文
📢 折腾啥 频道
👥 折腾啥 群组