Telegram 频道私信
开启了新出的 Direct Messages for Channels , 在频道左下角会有一个 💬 按钮,点击之后就可以跟频道主私聊了。(还能通过 Telegram Star 设置门槛🤣)
某种程度上不需要私信转发 bot 了
开启了新出的 Direct Messages for Channels , 在频道左下角会有一个 💬 按钮,点击之后就可以跟频道主私聊了。(还能通过 Telegram Star 设置门槛🤣)
// 创建表格很简单
table := doc.AddTable(&document.TableConfig{
Rows: 3, Columns: 4,
})
// 设置内容和样式
table.SetCellText(0, 0, "姓名")
table.MergeCells(0, 0, 0, 1) // 合并单元格
// 还有迭代器,方便批量处理
table.ForEach(func(info *document.CellInfo) {
if info.Row == 0 {
info.Cell.SetBackgroundColor("E6F3FF")
}
})baseTemplate := `{{companyName}} 报告
{{#block "content"}}默认内容{{/block}}`
salesTemplate := `{{extends "base"}}
{{#block "content"}}
销售额:{{sales}}
新客户:{{customers}}
{{/block}}`doc := document.New()
doc.AddParagraph("标题").
SetStyle(style.StyleHeading1).
SetAlignment(document.AlignmentCenter)
doc.AddParagraph("正文内容").
SetFontFamily("微软雅黑").
SetFontSize(12).
SetColor("333333")
doc.Save("report.docx")