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

How to get all replies of an event #80

Open
steveboi123 opened this issue Feb 25, 2023 · 1 comment
Open

How to get all replies of an event #80

steveboi123 opened this issue Feb 25, 2023 · 1 comment

Comments

@steveboi123
Copy link

Let's say I have an event id, How can I find all the replies for that post

@lndrkzts
Copy link

You can do that using the README.md example named "Receive events from relays", but you need to use two filters:

filters = Filters([
    Filter(event_ids=[event_id], kinds=[EventKind.TEXT_NOTE]),
    Filter(event_refs=[event_id], kinds=[EventKind.TEXT_NOTE])
])

I really don't know if it's the most appropriate way but it worked for me. I'm just starting to explore this library.

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

No branches or pull requests

2 participants