Skip to content

JiapengLi/MemosBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | Chinese

Telegram bot for the Memos project

Usage

  1. Create a bot using @BotFather
  2. Get your chatid with @userinfobot
  3. Get your memos API URL.
  4. Run the bot with the following command:
docker run -e BOT_TOKEN="xxx" -e CHAT_ID="yyy" -e MEMO_API="zzz" -d --name tgmemobot fwing/tgmemobot

Example usage

docker run -e BOT_TOKEN="588859xyz:xyz" -e CHAT_ID="xyz" -e MEMO_API="https://example.com/api/memo?openId=xyz" -d --name tgmemobot fwing/tgmemobot

(Optional) Support for photos

docker run -e BOT_TOKEN="xxx" -e CHAT_ID="yyy" -e MEMO_API="zzz" -d --name tgmemobot fwing/tgmemobot:photos

You can use docker image fwing/tgmemobot:photos to support medias.

However, due to limited API, message with multiple photos will be considered as multiple single photo message, which leads to multiple text memos with only one message sent! This may lead to undesired behaviour.

PRs are welcome!

Notice for China Mainland users

You will need a server that can access telegram services to run this bot.

Special Thanks

FlomoBot

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.3%
  • Shell 16.2%
  • Dockerfile 1.5%