Skip to content

Add ability to limit message mentions #262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 6, 2025
Merged

Conversation

umputun
Copy link
Owner

@umputun umputun commented Mar 6, 2025

Summary

  • Add ability to limit the number of mentions (@username) in a message
  • Add command-line option '--meta.mentions-limit' with '-1' as default (disabled)
  • Count both 'mention' and 'text_mention' entity types from Telegram

Fixes #222

umputun added 2 commits March 5, 2025 21:08
- Add mentions field to MetaData struct
- Add MentionsCheck function to metachecks
- Update spam.go to count mentions from entities
- Add command-line option for mentions limit
- Update web UI to display mentions limit setting

Fixes #222
@umputun umputun merged commit 8a54fba into master Mar 6, 2025
2 of 3 checks passed
@umputun umputun deleted the feature/mentions-limit branch March 6, 2025 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Limit the number of allowed entities/mentions in a message
1 participant