We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I try to use python-nostr to send a direct message to my Damus account and it works well. I am wondering how we can receive DMs using this tool?
The text was updated successfully, but these errors were encountered:
You can use this snippet
private_key = PrivateKey(hex_to_raw_bytes("PRIVATE KEY HEX")) dmContent = private_key.decrypt_message(dmContent, senderPubKey)
where dmContent = ['content'] from a received event and senderPubKey = ['pubkey'] from the event.
Sorry, something went wrong.
No branches or pull requests
I try to use python-nostr to send a direct message to my Damus account and it works well. I am wondering how we can receive DMs using this tool?
The text was updated successfully, but these errors were encountered: