mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 11:56:18 +00:00
Added additional typing and typing fixes
This commit is contained in:
@@ -14,7 +14,11 @@ async def main () :
|
||||
mc = MeshCore(con)
|
||||
await mc.connect()
|
||||
|
||||
await mc.get_contacts()
|
||||
await mc.commands.send_msg(bytes.fromhex(mc.contacts[DEST]["public_key"])[0:6],MSG)
|
||||
await mc.ensure_contacts()
|
||||
contact = mc.get_contact_by_name(DEST)
|
||||
if contact is None:
|
||||
print(f"Contact '{DEST}' not found in contacts.")
|
||||
return
|
||||
await mc.commands.send_msg(contact,MSG)
|
||||
|
||||
asyncio.run(main())
|
||||
|
||||
Reference in New Issue
Block a user