mirror of
https://github.com/aljazceru/python-nostr.git
synced 2025-12-19 07:14:23 +01:00
fix filter
This commit is contained in:
1
main.py
1
main.py
@@ -34,7 +34,6 @@ async def dm():
|
|||||||
args=(
|
args=(
|
||||||
client.public_key,
|
client.public_key,
|
||||||
callback,
|
callback,
|
||||||
filters,
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
t.start()
|
t.start()
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ from . import cbc
|
|||||||
|
|
||||||
class NostrClient:
|
class NostrClient:
|
||||||
relays = [
|
relays = [
|
||||||
"wss://relay.snort.social",
|
# "wss://relay.snort.social",
|
||||||
"wss://nostr-pub.wellorder.net",
|
"wss://nostr-pub.wellorder.net",
|
||||||
"wss://nostr.zebedee.cloud",
|
"wss://nostr.zebedee.cloud",
|
||||||
"wss://nostr.mom",
|
"wss://nostr.mom",
|
||||||
@@ -103,7 +103,6 @@ class NostrClient:
|
|||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
filters = Filters([filter])
|
|
||||||
subscription_id = os.urandom(4).hex()
|
subscription_id = os.urandom(4).hex()
|
||||||
self.relay_manager.add_subscription(subscription_id, filters)
|
self.relay_manager.add_subscription(subscription_id, filters)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user