初始化仓库

This commit is contained in:
2026-06-02 23:14:41 +08:00
commit 0bc3f02670
520 changed files with 191097 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package telegram
import (
"fmt"
"github.com/chenhg5/cc-connect/core"
)
// enrichLocation converts a location attachment into text content that AI agents
// can understand. Returns the enriched content string, or empty string if nothing to add.
func enrichLocation(msg *core.Message) string {
if msg.Location == nil {
return ""
}
return fmt.Sprintf("[Location] Latitude: %.6f, Longitude: %.6f",
msg.Location.Latitude, msg.Location.Longitude)
}