diff --git a/example/bot/Bot.go b/example/bot/Bot.go index 53e10f1..0e19a72 100644 --- a/example/bot/Bot.go +++ b/example/bot/Bot.go @@ -52,7 +52,7 @@ func main() { signal.Notify(ch, os.Interrupt, syscall.SIGSEGV) go func() { <-ch - client.Destroy() + client.Close() }() me, err := client.GetMe() diff --git a/example/command/ReplyCommand.go b/example/command/ReplyCommand.go index 9278674..39ab138 100644 --- a/example/command/ReplyCommand.go +++ b/example/command/ReplyCommand.go @@ -60,7 +60,7 @@ func main() { signal.Notify(ch, os.Interrupt, syscall.SIGSEGV) go func() { <-ch - client.Destroy() + client.Close() }() me, err := client.GetMe() diff --git a/example/event/CustomEventFilter.go b/example/event/CustomEventFilter.go index 26614f5..9acabf0 100644 --- a/example/event/CustomEventFilter.go +++ b/example/event/CustomEventFilter.go @@ -60,7 +60,7 @@ func main() { signal.Notify(ch, os.Interrupt, syscall.SIGSEGV) go func() { <-ch - client.Destroy() + client.Close() }() me, err := client.GetMe() diff --git a/example/media/Photo_or_Album.go b/example/media/Photo_or_Album.go index 5a4dae4..1bb296e 100644 --- a/example/media/Photo_or_Album.go +++ b/example/media/Photo_or_Album.go @@ -60,7 +60,7 @@ func main() { signal.Notify(ch, os.Interrupt, syscall.SIGSEGV) go func() { <-ch - client.Destroy() + client.Close() }() me, err := client.GetMe() diff --git a/example/raw_update/raw.go b/example/raw_update/raw.go index 75ce414..407016f 100644 --- a/example/raw_update/raw.go +++ b/example/raw_update/raw.go @@ -60,7 +60,7 @@ func main() { signal.Notify(ch, os.Interrupt, syscall.SIGSEGV) go func() { <-ch - client.Destroy() + client.Close() }() me, err := client.GetMe()