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

[question] what is subscription_id #43

Closed
mat-l opened this issue Jan 28, 2023 · 2 comments
Closed

[question] what is subscription_id #43

mat-l opened this issue Jan 28, 2023 · 2 comments

Comments

@mat-l
Copy link

mat-l commented Jan 28, 2023

Thank you for the nostr python packages. I was able to quickly publish notes to my own nostr relay with your package.

Next steps is to pull notes from my relay. For this In would like to use your published code for receiving events. Here I didn't find any information in the web about the "subscription_id = ". What am I supposed to use as an subscription id, for example if I would like to pull the last 10 events from my relay?

Best regards

@jeffthibault
Copy link
Owner

Thanks, I'm glad you find it useful.

Subscription id is just a string to identify the subscription. It can be anything you want such as a random string of letters and numbers ("d5n22qze9") or something more obvious ("my-events").

@mat-l
Copy link
Author

mat-l commented Jan 29, 2023

Works now as well 👍🏽

For encrypted direct message I need to be a bit patient for the PR, right? #39
Or could I also already send encrypted messages?

@mat-l mat-l closed this as completed Feb 16, 2023
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