You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
249 B

7 years ago
  1. package main
  2. import (
  3. "strings"
  4. )
  5. func checkIp(text string) bool {
  6. if len(strings.Split(text, ".")) != 4 {
  7. return false
  8. }
  9. if len(strings.Split(text, "")) > 16 {
  10. return false
  11. }
  12. return true
  13. }
  14. func main() {
  15. readConfig()
  16. telegramBot()
  17. }