From e768ef944c88be1b18c995544c76fa931d9c5916 Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Sun, 14 Feb 2021 13:21:37 +0300 Subject: Fix issue #3 --- examples/example_webhook.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/example_webhook.go') diff --git a/examples/example_webhook.go b/examples/example_webhook.go index b4857c1..2709e6f 100644 --- a/examples/example_webhook.go +++ b/examples/example_webhook.go @@ -12,6 +12,7 @@ import ( "os" "github.com/neonxp/tamtam" + "github.com/neonxp/tamtam/schemes" ) func main() { @@ -38,7 +39,7 @@ func main() { upd := <-ch log.Printf("Received: %#v", upd) switch upd := upd.(type) { - case tamtam.MessageCreatedUpdate: + case *schemes.MessageCreatedUpdate: err := api.Messages.Send( tamtam.NewMessage(). SetUser(upd.Message.Sender.UserId). -- cgit v1.2.3