Telegram BOT模版代码分享
https://t.me/NextCLiCloudbot
Telegram BOT机器人相关代码
本文代码仅在 https://Cloud.NextCLi.com 可用!
/id
获取当前对话Chat ID,测试>>{{if eq .tg.group_id 0}} 👤<b><u>当前为私聊对话/Current is a Private Chat</u></b> 当前对话ID/Current Chat ID:<code>{{.tg.id}}</code> 当前用户ID/Current User ID:<code>{{.tg.id}}</code> 当xx前用户名称/Current User Name:<code>{{.tg.name}}</code> 当前用户昵称/Current User NickName:<code>{{.tg.nickname}}</code> {{else}} 👥<b><u>当前为群聊对话/Current is a Group Chat</u></b> 当前对话ID/Current Chat ID:<code>{{.tg.group_id}}</code> 当前群组ID/Current Group ID:<code>{{.tg.group_id}}</code> 当前用户ID/Your User ID:<code>{{.tg.id}}</code> 当前用户名称/Current User Name:<code>{{.tg.name}}</code> 当前用户昵称/Current User NickName:<code>{{.tg.nickname}}</code> {{end}}
收入通知内容[HTML] ✅✅✅ <b>#收入</b> <b>支付金额</b>:<a target="_blank" href="{{.transaction_hash_link}}"><b>{{.amount}}</b></a> ${{.token}} #{{.network}} <b>发送地址</b>:<a target="_blank" href="{{.address_from_link}}">{{.address_from}}</a> <code>{{.address_from_name}}</code> <b>接收地址</b>:<a target="_blank" href="{{.address_to_link}}">{{.address_to}}</a> <code>{{.address_to_name}}</code> <b>交易Hash</b>:{{.transaction_hash_short}} <a target="_blank" href="{{.transaction_hash_link}}"><u>查看</u></a> 交易时间:{{.block_time}} (UTC+8) 链上转账备注:{{.note}}
支出通知内容[HTML] ⁉️⁉️⁉️ <b>#支出</b> <b>支付金额</b>:<a target="_blank" href="{{.transaction_hash_link}}"><b>{{.amount}}</b></a> ${{.token}} #{{.network}} <b>发送地址</b>:<a target="_blank" href="{{.address_from_link}}">{{.address_from}}</a> <code>{{.address_from_name}}</code> <b>接收地址</b>:<a target="_blank" href="{{.address_to_link}}">{{.address_to}}</a> <code>{{.address_to_name}}</code> <b>交易Hash</b>:{{.transaction_hash_short}} <a target="_blank" href="{{.transaction_hash_link}}"><u>查看</u></a> 交易时间:{{.block_time}} (UTC+8) 链上转账备注:{{.note}}
最后更新于