timoniq / telegrinder

Modern visionary telegram bot framework
MIT License
31 stars 5 forks source link

feat: implement ✨ `Magic` ✨ rule #169

Open luwqz1 opened 6 days ago

luwqz1 commented 6 days ago

prob syntax:

Magic.message.text == "telegrinder"
     # ^^^^^^ ----- incoming event must be the Message
           # ^^^^ ----- getting the field message with the value
                     #  ^^^ equivalent to the value of right

# a rule for magic expressions is automatically generated at runtime

support __bool__ and comparison operators