merged from gramsrv upstream
This commit is contained in:
parent
79c64ee916
commit
21a0856587
651 changed files with 54774 additions and 4590 deletions
|
|
@ -209,6 +209,18 @@ func OfficialSystemUser() User {
|
|||
return u
|
||||
}
|
||||
|
||||
// ChatBotDescription and StickersBotDescription are the shared branded seed
|
||||
// text for both user.about and bots.description. PostgreSQL migrations contain
|
||||
// only the default snapshot; startup reconciliation and the memory backend use
|
||||
// these helpers so custom deployments do not expose stale "telesrv" text.
|
||||
func ChatBotDescription() string {
|
||||
return "Chat with the configured " + branding.ProductName + " AI provider."
|
||||
}
|
||||
|
||||
func StickersBotDescription() string {
|
||||
return "Create custom sticker and emoji packs for " + branding.ProductName + "."
|
||||
}
|
||||
|
||||
// BotFatherUser 返回内置 BotFather 账号。username 不以 bot 结尾属种子例外(与官方一致)。
|
||||
func BotFatherUser() User {
|
||||
u := User{
|
||||
|
|
@ -235,6 +247,7 @@ func StickersBotUser() User {
|
|||
AccessHash: StickersBotAccessHash,
|
||||
FirstName: "Stickers",
|
||||
Username: "Stickers",
|
||||
About: StickersBotDescription(),
|
||||
Verified: true,
|
||||
Bot: true,
|
||||
BotInfoVersion: 2,
|
||||
|
|
@ -254,6 +267,7 @@ func ChatBotUser() User {
|
|||
AccessHash: ChatBotAccessHash,
|
||||
FirstName: "ChatBot",
|
||||
Username: "ChatBot",
|
||||
About: ChatBotDescription(),
|
||||
Verified: true,
|
||||
Bot: true,
|
||||
BotInfoVersion: 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue