Update bot.py

This commit is contained in:
Believethehype 2024-06-17 10:03:19 +02:00
parent b5a848d7fc
commit d38e4c8f2a

View File

@ -120,7 +120,7 @@ class Bot:
# Check timestamp of rumor
if rumor.created_at().as_secs() >= Timestamp.now().as_secs():
if rumor.kind() == Kind.from_enum(KindEnum.SEALED_DIRECT()):
if rumor.kind() == Kind.from_enum(KindEnum.PRIVATE_DIRECT_MESSAGE()):
decrypted_text = rumor.content()
print(f"Received new msg [sealed]: {decrypted_text}")
sealed = " [sealed] "