mirror of
https://github.com/aljazceru/python-nostr.git
synced 2025-12-19 15:24:19 +01:00
update client
This commit is contained in:
11
main.py
11
main.py
@@ -73,8 +73,9 @@ async def post():
|
||||
sender_client.post(msg)
|
||||
|
||||
|
||||
# write a DM and receive DMs
|
||||
asyncio.run(dm())
|
||||
|
||||
# make a post and subscribe to posts
|
||||
# asyncio.run(post())
|
||||
if input("Enter 1 for DM, 2 for Posts (Default: 1)") or 1 == 1:
|
||||
# write a DM and receive DMs
|
||||
asyncio.run(dm())
|
||||
else:
|
||||
# make a post and subscribe to posts
|
||||
asyncio.run(post())
|
||||
|
||||
Reference in New Issue
Block a user