package
Version:
v1.3.10
Opens a new window with list of versions in this module.
Published: Feb 13, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
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
to config.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 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.
Documentation
¶
Package examples provides a set of code samples that show how to use the library properly.
Currently, there are two examples available:
- webhooks - basic app that can display incoming webhooks.
- telegram - very simple example of bidirectional Telegram transport (only text messages are supported).
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.