English | Chinese
Telegram bot for the Memos project
- Create a bot using @BotFather
- Get your chatid with @userinfobot
- Get your memos API URL.
- 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
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!
You will need a server that can access telegram services to run this bot.