aboutsummaryrefslogtreecommitdiff
path: root/examples/example_webhook.go
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2021-02-14 13:23:10 +0300
committerGitHub <noreply@github.com>2021-02-14 13:23:10 +0300
commitc31a53b6a1e5fa0c6966451c5f45e42d1eb822ee (patch)
tree5d1683dbe87fedbc6c1d7376df7147a8ad0936c2 /examples/example_webhook.go
parentee63b08bd7861702123f9c5e83d60f49b1805e85 (diff)
parente768ef944c88be1b18c995544c76fa931d9c5916 (diff)
Merge pull request #4 from neonxp:issue_3HEADv0.3.4master
Fix issue #3
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).