Memogram is an easy to use integration service for syncing messages and images from a Telegram bot into your Memos.
Download the binary files for your operating system from the Releases page.
Create a .env
file in the project's root directory and add the following configuration:
SERVER_ADDR=dns:localhost:5230
BOT_TOKEN=your_telegram_bot_token
INSTANCE_URL=https://memos.example.com
The SERVER_ADDR
should be a gRPC server address that the Memos is running on. It follows the gRPC Name Resolution.
Download and extract the released binary file;
Create a .env
file in the same directory as the binary file;
Run the executable in the terminal:
./memogram
Once the bot is running, you can interact with it via your Telegram bot.
Or you can start the service with Docker:
Build the Docker image: docker build -t memogram .
Run the Docker container with the required environment variables:
docker run -d --name memogram \
-e SERVER_ADDR=dns:localhost:5230 \
-e BOT_TOKEN=your_telegram_bot_token \
memogram
The Memogram service should now be running inside the Docker container. You can interact with it via your Telegram bot.
Or you can start the service with Docker Compose. This can be combined with the memos
itself in the same compose file:
git clone https://github.com/usememos/telegram-integration memogram
.env
file
SERVER_ADDR=dns:yourMemosUrl.com:5230
BOT_TOKEN=your_telegram_bot_token
INSTANCE_URL=https://memos.example.com
docker-compose.yml
file:
services:
memogram:
env_file: .env
build: memogram
container_name: memogram
docker compose up -d
/start <access_token>
: Start the bot with your Memos access token./search <words>
: Search for the memos.