Skip to content
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

Fix: spam_time, '429: Too Many Requests'. Feat: autoreply_confirmation, clean_replies, pass_start. #127

Merged
merged 7 commits into from
Nov 27, 2022

Conversation

2naive
Copy link

@2naive 2naive commented Nov 27, 2022

  • Antispam is broken due to math operations is not allowed in YAML (when migrated from config.ts). Can't be fixed for backward compatibility because eval('5*60*1000') is not supported in TS. At least config-sample.yaml is fixed.
  • '429: Too Many Requests' Telegram error is not handled. Could be reproduced by sending many user messages exceeding bot limits. Fixed with native grammY plugin.
  • config.clean_replies allows to send clean messages from support with no footer nor header.
  • config.autoreply_confirmation disables autoreplys with 'message received' confirmation
  • config.pass_start passes first message from the client to suport team directly

@2naive 2naive changed the title Fix: spam_time, '429: Too Many Requests'; Feat: autoreply_confirmation, clean_replies. Fix: spam_time, '429: Too Many Requests'. Feat: autoreply_confirmation, clean_replies, pass_start . Nov 27, 2022
@2naive 2naive changed the title Fix: spam_time, '429: Too Many Requests'. Feat: autoreply_confirmation, clean_replies, pass_start . Fix: spam_time, '429: Too Many Requests'. Feat: autoreply_confirmation, clean_replies, pass_start. Nov 27, 2022
Copy link
Owner

@bostrot bostrot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Looks good :)

@bostrot bostrot merged commit f62d1c6 into bostrot:master Nov 27, 2022
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.

None yet

2 participants