MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / getTelegramBotAccountIDs

Function getTelegramBotAccountIDs

agent/app/service/agents_channels.go:1524–1530  ·  view source on GitHub ↗
(bots []dto.AgentTelegramBot)

Source from the content-addressed store, hash-verified

1522}
1523
1524func getTelegramBotAccountIDs(bots []dto.AgentTelegramBot) []string {
1525 accountIDs := make([]string, 0, len(bots))
1526 for _, bot := range bots {
1527 accountIDs = append(accountIDs, bot.AccountID)
1528 }
1529 return accountIDs
1530}
1531
1532func getDiscordBotAccountIDs(bots []dto.AgentDiscordBot) []string {
1533 accountIDs := make([]string, 0, len(bots))

Callers 2

extractTelegramConfigFunction · 0.85
setTelegramConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected