1
0
mirror of synced 2024-11-21 20:46:05 +03:00
mg-transport-api-client-go/examples
dependabot[bot] 299d176981
Bump golang.org/x/crypto from 0.9.0 to 0.17.0 in /examples/telegram
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.9.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.9.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-16 12:49:32 +00:00
..
telegram Bump golang.org/x/crypto from 0.9.0 to 0.17.0 in /examples/telegram 2024-01-16 12:49:32 +00:00
webhooks update test matrix 2023-12-29 11:33:05 +03:00
doc.go webhooks example 2023-12-29 11:07:45 +03:00
README.md add README.md to the examples directory 2023-12-29 11:58:33 +03:00

Usage examples

This directory contains examples on how to use the library properly. Currently two examples are available:

telegram

How to run the example:

  1. Copy config.json.dist to config.json.
  2. Replace placeholder values in the config.json with your data. You'll need a service like ngrok.io for that.
  3. Navigate to telegram directory via terminal and run go run ./...

The sample will automatically register itself in the target system and will begin transferring the messages between Telegram and MessageGateway.

webhook

You can run this example by executing go run /.... Transport API webhooks from MessageGateway should be sent to the /api/v1/webhook route.