aboutsummaryrefslogtreecommitdiff
path: root/examples/example_webhook.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example_webhook.go')
-rw-r--r--examples/example_webhook.go3
1 files changed, 2 insertions, 1 deletions
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).