5edb649366
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.17.0 to 0.23.0. - [Commits](https://github.com/golang/net/compare/v0.17.0...v0.23.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.. | ||
telegram | ||
webhooks | ||
doc.go | ||
README.md |
Usage examples
This directory contains examples on how to use the library properly. Currently two examples are available:
telegram
How to run the example:
- Copy
config.json.dist
toconfig.json
. - Replace placeholder values in the
config.json
with your data. You'll need a service like ngrok.io for that. - Navigate to
telegram
directory via terminal and rungo 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.