Early telegram integrations

This commit is contained in:
2022-09-14 22:54:51 +08:00
parent 534bc70f0f
commit 9b48f2ee50
8 changed files with 65 additions and 29 deletions

View File

@@ -37,7 +37,11 @@ func ( result QueryResult ) Message() string {
sb.WriteString( "\n" )
for _, bus := range buses.Buses {
sb.WriteString( " * " )
sb.WriteString( bus.ETAText )
if bus.ETAText == "" {
sb.WriteString( bus.ETDText )
} else {
sb.WriteString( bus.ETAText )
}
sb.WriteString( "\n" )
}