Skip to content

Releases: userbotindo/Anjani

Anjani v2.7.0

19 Nov 03:44
Compare
Choose a tag to compare

What's new

  • Canonical: save admin chat into database (#181) (b75e808)

Fixes

  • Canonical: cek data before proceeding statement (e09306e)
  • language/id: formattin typo (ded6b9e)
  • canonical: handle received float _id (d019f81)
  • federation: handle not accessible chat fban (d57c9e8)
  • users: fallback to db data if bot is blocked (fca2d96)
  • spam_prediciton: handle null reputation (5ef3be2)
  • spam_prediction: re raise StopPropagation from spam_check() (e98efbf)
  • debug: code and output not displayed (1454bec)
  • users: handle user field char that messed up with bot parse mode (24e49a7)
  • users: handle some case when photo id exist but have 0 bytes (9b85731)

Additional Info

As this version we have uploaded the project on PyPI.
You may now install directly with PIP by pip install anjani or pip install anjani[uvloop] to install uvloop version.

Version Contributor(s)

@adekmaulana, @MrMissx, @ilhamclone

Full Changelog: v2.6.0...v2.7.0

Anjani v2.6.0

07 Nov 05:30
Compare
Choose a tag to compare

What's New

  • welcome: allow set welcome and goodbye as command argument (#183) (64dfd4a)

Fixes

  • filters+notes: message handling takes to long (19fd55c)
  • filters: differentiate when bot is admin and not (ab2cac4)
  • admins: properly demote member (3dad465)
  • filters+notes: sort trigger list alphabetically (d959d50)
  • filters: change List to Set avoid doubled trigger list (9b1a411)
  • admins: handle /promote UserPrivacyRestricted exception (d8764b7)

Full Changelog: v2.5.1...v2.6.0

Version Contributor

@MrMissx

Anjani v2.5.1

28 Oct 14:48
Compare
Choose a tag to compare

This version added support for Python 3.10 (#179)

Fixes:

  • Users: fix chat type name on info
  • deps: remove dnspython from pyproject.toml
  • chore: update poetry deps
  • Anjani: remove unnecessary variable assignment on event dispatcher
  • requirements: add back certifi that removed on a0191a2
  • Anjani: Database: update pymongo 4.3.2
  • Restriction: warn: fix user not participant callbackquery
  • Lockings: fix checking for channelprivate
  • Anjani: only accept incoming message for some on_message listener
  • SpamShield: fix outgoing message check
  • SpamPrediction: set sample fixed size array
  • event_dispatcher: add more information on event error
  • welcome: remove unused import
  • welcome: fix member count None on text filling
  • restriction: fix user not unbanned on /kick
  • welcome: Fix database key typo
  • misc: change stashbin service for /paste (#173)

Full Changelog: v2.5.0...v2.5.1

Version Contributor

Thanks to @MrMissx @adekmaulana for the contributions

Anjani v2.5.0

05 Oct 17:02
Compare
Choose a tag to compare

What's New

  • Added federation subscription by @MrMissx in #128
  • Anjani: Filters: clearer message on admin only error
  • Restriction: add chat migrate listener

Fixes

  • SmapShield: Fix spamwatch user not found (404)
  • Filters: Fix filter db query typo (resolve #172)
  • SpamPrediction: remove unnecessary variable assignment

Full Changelog: v2.4.2...v2.5.0

Version Contributor

Thanks to @MrMissx @adekmaulana for the contributions

Anjani v2.4.2

28 Sep 12:36
Compare
Choose a tag to compare

Changes and Fixes

  • Partially revert "Add plugin even listener structure"
  • Lockings: use filter inside the listener
  • Main: Add /donate command
  • Lockings: fix for non anonymous admin checker
  • Users: move predict_loaded to on_load to avoid race conditions
  • SpamShield: move spam_protection var into on_load
  • SpamPredict: fix user checking when message detected as spam
  • SpamShield: lower message spam check priority
  • Dockerfile: change deprecated poetry option
  • Lockings: Fix doubled lock types
  • Admins: fix permission check
  • SpamPredict: handle StopPropagation inside callback ocr
  • SpamShield: do not raise when failed on spamwatch API
  • SpamPredict: Add model refresh scheduler

Full Changelog: v2.4.1...v2.4.2

Version Contributor

Thanks to @MrMissx @adekmaulana for the contributions

Anjani v2.4.1

18 Sep 05:06
Compare
Choose a tag to compare

🎉We've reached 1000 commits🎉

Thank you for all contributors 😊

Fixes

  • reporting: Fix /report invoked in bot private chats
  • Lockings: fix anon lock types for linked channel/anon admin
  • Lockings: simplify logic at on_message
  • Anjani: Filters: fix admin only on anonymous
  • Lockings: simplify button checkers
  • Add User-trust score to spam detection in #157
  • Optimize database query in #159
  • Federations: More clear usage for /fedstats
  • SpamShield: Do not raise error when api is down
  • Lower on_message priority of Users

Full Changelog: v2.4...v2.4.1

Credits

Thanks to @MrMissx @adekmaulana for the contributions

Anjani v2.4

06 Sep 18:21
Compare
Choose a tag to compare

What's new

Fixes

  • Anjani: Database: fix connection for windows
  • Anjani: Database: Update for pymongo 4.2
  • Anjani: Fix permission check filter
  • Anjani: fix privileges checking
  • Anjani: fix race condition with pyrogram dispatcher
  • Anjani: iterate all Future exception
  • Anjani: Set default parse mode to markdown
  • languages: spell checkup by @tomyprs on #133
  • Notes: Fix wrong parse mode
  • Plugins: add Lockings by @adekmaulana on #130
  • Reporting: Fix when command invoked by non-member
  • SpamPrediction: Fix backup data projection
  • SpamPrediction: fix checker for anonymous admins
  • SpamPrediction: Fix failed to get user on ban callback
  • SpamPrediction: Fix missed text normalize on spam logging
  • SpamPrediction: fix some strings
  • SpamPrediction: lower normalized text
  • SpamPrediction: Normalize text before running estimator
  • util: time: fix f-string error on float
  • Welcome: Re-added None check of User.first_name removed on #115

Misc

  • Add COC, issues template and Code owners
  • Anjani: remove sp_token related
  • Dockerfile: Run with poetry
  • SpamPrediction: Only log public groups
  • SpamPrediction: skip on short messages
  • Stats: make command only on private
  • Update CodeQL

Full Changelog: v2.3.1...v2.4

Anjani v2.3.1

01 Jul 06:20
Compare
Choose a tag to compare

What's Changed & Fixes

  • Anjani: Filter: Fix checking privileges.
  • Restriction: rmwarn: Tell if user don't have any warn.
  • Dockerfile: Update base image and install ocr lang.
  • Federation: Fix member status check.
  • SpamShield: Handle response when spamwatch API down.
  • Admins: Fix flood value handling.
  • Anjani: Use Message type from Pyrogram.
  • Welcome: Replace username string format with mention. (#115).
  • Util: DB: Fix type hints for address and collection on cursor .
  • Config: Simplify config data.
  • Lang: Fix running scripts when using pip install .

Full Changelog: v2.3...v2.3.1

Anjani v2.3

02 Jun 05:26
6b2180f
Compare
Choose a tag to compare

What's new

  • Updated to Pyrogram v2 (#93)
  • SpamPrediction: Added button to ban on spam alert message

Fixes

  • Several fixes after Pyrogram update

Misc

  • language: add id locale for filters
  • SpamPrediction: Lower spam message threshold to .8
  • SpamPrediction: Improve pre-spam checking logic
  • Type hint fixes

Full Changelog: v2.2...v2.3

Anjani v2.2

26 Mar 14:32
Compare
Choose a tag to compare

What's New

  • Add filters plugin (#87)

Fixes

  • command_dispatcher: Fix bot reinvoking command when the message get reaction
  • welcome: handle can't delete service message
  • filters: Add chat migrate handler
  • language: fix unfilled placeholder string
  • welcome: Fix error when user first_name returns None

Misc

  • Bump runtime to python 3.9.11

Full Changelog: v2.1.1...v2.2