Skip to content

Cologler/send-to-memos-tgbot-cfworker

Repository files navigation

send-to-memos-tgbot

A telegram bot for saving messages to self-hosted memos, and hosted on cloudflare worker.

Features

Support message types:

  • Text
  • Photo
  • File
  • Image or video sticker

Telegram limit: bot can download files of up to 20MB in size.

Deploy

  1. Clone repo;
  2. Run npm install && npm run deploy to deploy;
  3. Create your bot via https://t.me/BotFather;
  4. Find your telegram id via https://t.me/userinfobot;
  5. Go to the cloudflare worker dashboard, add encrypted variables:
    • TG_BOT_TOKEN: your bot token;
    • TG_BOT_WEBHOOK_PATH: optional path, can use as secret;
    • MEMOS_OPENAPI_$(your telegram id): your memos openapi url;
  6. use https://telegram-set-webhook.tools.dor.ky to bind your worker and bot;

Finally, you can send text or photo to memos.

About

a tgbot for saving messages to memos

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published