any idea why event_refs and pubkey_refs are not being recognized as instance variables?

filters = Filter(pubkey_refs=['your_hex_pub'])

is giving me TyprError: __init__() got an unexpected keyword argument ‘pubkey_refs’

Reply to this note

Please Login to reply.

Discussion

Don't understand why you get an error there. Maybe you need an additional argument? I use pubkey_refs for example in a filter like this:

filters_pm = Filter(kinds=[EventKind.CONTACTS], pubkey_refs=['user_pub_key'])

to fetch all users who have a specific pubkey in their contact list (following it)

super strange, adding an additional argument didn’t help. Thanks though

Environment problems!

I was using python 3.9 at run time, but the python-nostr module was installed under 3.8. Got it working now, appreciate you!