diff options
author | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2021-02-14 13:23:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-14 13:23:10 +0300 |
commit | c31a53b6a1e5fa0c6966451c5f45e42d1eb822ee (patch) | |
tree | 5d1683dbe87fedbc6c1d7376df7147a8ad0936c2 /examples/example_webhook.go | |
parent | ee63b08bd7861702123f9c5e83d60f49b1805e85 (diff) | |
parent | e768ef944c88be1b18c995544c76fa931d9c5916 (diff) |
Fix issue #3
Diffstat (limited to 'examples/example_webhook.go')
-rw-r--r-- | examples/example_webhook.go | 3 |
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). |