diff --git a/.gitea/actions/telegram-message-escape/action.yaml b/.gitea/actions/telegram-message-escape/action.yaml new file mode 100644 index 0000000..6981d62 --- /dev/null +++ b/.gitea/actions/telegram-message-escape/action.yaml @@ -0,0 +1,26 @@ +name: '๐Ÿงผ Telegram message escape' +description: 'Automatically escapes dots, dashes, and exclamation marks for Telegram MarkdownV2' + +inputs: + message: + description: 'The raw text string to escape' + required: true + +outputs: + escaped_message: + description: 'The safely escaped string ready for Telegram' + value: ${{ steps.escape.outputs.result }} + +runs: + using: 'composite' + steps: + - id: escape + shell: bash + run: | + RAW_MESSAGE="${{ inputs.message }}" + + ESCAPED_MESSAGE=$(echo "$RAW_MESSAGE" | sed "s/-/\\\\-/g" | sed "s/\./\\\\./g" | sed "s/!/\\\\!/g") + + echo "result<> $GITHUB_OUTPUT + echo "$ESCAPED_MESSAGE" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT diff --git a/IDEAS.md b/IDEAS.md new file mode 100644 index 0000000..7c81d8d --- /dev/null +++ b/IDEAS.md @@ -0,0 +1,6 @@ +1. Backup data/ before rerun containers +2. Auto run on new realese +3. ะ ะฐะทะดะตะปะตะฝะธะต ะดะพะบะตั€ ัะตั‚ะตะน +4. Notifications +5. Bot for server operations +6. multi device copy-paste \ No newline at end of file