Telegram BOT模版代码分享

示例机器人 https://t.me/NextCLiCloudbot

Telegram BOT机器人相关代码

/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}}

收入通知内容

支出通知内容

最后更新于