add plan parser
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package parser
|
||||
|
||||
import "strings"
|
||||
|
||||
const (
|
||||
TypePLN = "PLN"
|
||||
)
|
||||
|
||||
func isPln(telegram Telegram) bool {
|
||||
for _, value := range telegram.Fields {
|
||||
if strings.HasPrefix(value, TypePLN) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user