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

Function setTelegramDefaultFlags

agent/app/service/agents_channels.go:1540–1544  ·  view source on GitHub ↗
(bots []dto.AgentTelegramBot, defaultAccount string)

Source from the content-addressed store, hash-verified

1538}
1539
1540func setTelegramDefaultFlags(bots []dto.AgentTelegramBot, defaultAccount string) {
1541 for i := range bots {
1542 bots[i].IsDefault = bots[i].AccountID == defaultAccount
1543 }
1544}
1545
1546func setDiscordDefaultFlags(bots []dto.AgentDiscordBot, defaultAccount string) {
1547 for i := range bots {

Callers 1

extractTelegramConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected