dependabot[bot] 9130d5dfa1 chore: bump github.com/go-telegram/bot from 1.4.0 to 1.5.0 (#24)
Bumps [github.com/go-telegram/bot](https://github.com/go-telegram/bot) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/go-telegram/bot/releases)
- [Changelog](https://github.com/go-telegram/bot/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-telegram/bot/compare/v1.4.0...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/go-telegram/bot
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-01 09:46:17 +08:00
2024-05-14 22:48:38 +08:00
2024-05-14 22:04:46 +08:00
2024-05-18 10:59:20 +08:00
2024-05-14 22:08:29 +08:00
2024-05-14 22:24:54 +08:00
2024-05-18 10:59:20 +08:00
2024-05-29 11:10:03 +08:00
2024-05-29 11:10:03 +08:00
2024-05-15 19:01:04 +08:00

Memogram

Memogram is an easy to use integration service for syncing messages and images from a Telegram bot into your Memos.

Prerequisites

  • Memos service
  • Telegram Bot

Installation

Download the binary files for your operating system from the Releases page.

Configuration

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

The SERVER_ADDR should be a gRPC server address that the Memos is running on. It follows the gRPC Name Resolution.

Usage

Starting the Service

Starting with binary

  1. Download and extract the released binary file;

  2. Create a .env file in the same directory as the binary file;

  3. Run the executable in the terminal:

    ./memogram
    
  4. Once the bot is running, you can interact with it via your Telegram bot.

Starting with Docker

Or you can start the service with Docker:

  1. Build the Docker image: docker build -t memogram .

  2. 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
    
  3. The Memogram service should now be running inside the Docker container. You can interact with it via your Telegram bot.

Interaction Commands

  • /start <access_token>: Start the bot with your Memos access token.
  • Send text messages: Save the message content as a memo.
  • Send files (photos, documents): Save the files as resources in a memo.
Description
No description provided
Readme 7.9 MiB
Languages
Go 98.1%
Dockerfile 1.9%