Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只有一个我需要的消息 ID 列表,我不需要mark_as_read()消息内容,只需将其标记为已读。
mark_as_read()
是否可以在不先获取它们的情况下将它们标记为已读?
超级迟回复,对不起。如果您仍在寻找,请点击此处:
您应该能够创建message对象的新实例。像这样:
message
import praw reddit = praw.Reddit('Bot-name') msgIDs = ['id1','id2','id3'] for id in msgIDs: temp = reddit.message('id') mark_as_read(temp)
如果您有任何进一步的问题,请随时提问。