Compare commits

..

4 commits

Author SHA1 Message Date
377b1723c3
fix: default parse mode to text
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/tag/release Pipeline was successful
2025-06-24 08:10:56 +02:00
60ceaffd82
fix: enable all plugins help text
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2025-06-23 11:43:42 +02:00
3a5b5c216d
chore: try to ensure that code is checked after each session
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2025-06-23 11:35:30 +02:00
bdc797d5c1
chore: make format 2025-06-23 11:34:27 +02:00
5 changed files with 13 additions and 12 deletions

View file

@ -18,10 +18,12 @@ When creating, modifying, or removing plugins:
## Testing
After every session that contains changes to files:
**CRITICAL**: After making ANY changes to code files, you MUST run these commands in order:
1. Check files are properly formatted running `make format`
2. Check code style and linting: Run `make lint`
3. Test the plugin functionality: Run `make test`
1. **Format code**: `make format` - Format all code according to project standards
2. **Lint code**: `make lint` - Check code style and quality (must show "0 issues")
3. **Run tests**: `make test` - Run all tests to ensure functionality works
4. Verify documentation accuracy
5. Ensure all examples work as described
**These commands are MANDATORY after every code change, no exceptions.**

View file

@ -32,7 +32,7 @@
<input class="form-check-input" type="checkbox" name="enable_all_plugins" value="true" {{if .Channel.EnableAllPlugins}}checked{{end}}>
<span class="form-check-label">Enable All Plugins</span>
</label>
<div class="form-help">
<div>
When enabled, all registered plugins will be automatically enabled for this channel. Individual plugin settings will be ignored.
</div>
</div>

View file

@ -237,13 +237,13 @@ func (t *TelegramPlatform) SendMessage(msg *model.Message) error {
"text": msg.Text,
}
// Set parse_mode based on plugin preference or default to Markdown
// Set parse_mode based on plugin preference or default to empty string
if msg.Raw != nil && msg.Raw["parse_mode"] != nil {
// Plugin explicitly set parse_mode
payload["parse_mode"] = msg.Raw["parse_mode"]
} else {
// Default to Markdown for backward compatibility
payload["parse_mode"] = "Markdown"
// Default to empty string (no formatting)
payload["parse_mode"] = ""
}
// Add reply if needed

View file

@ -75,7 +75,6 @@ func (p *TwitterExpander) OnMessage(msg *model.Message, config map[string]interf
Chat: msg.Chat,
ReplyTo: msg.ID,
Channel: msg.Channel,
Raw: map[string]interface{}{"parse_mode": ""},
}
action := &model.MessageAction{