Add include_entities for direct messages. Should not do anything, but just to be sure...

This commit is contained in:
Klaus-Uwe Mitterer 2017-02-27 00:57:29 +01:00
parent fd1d1d5bac
commit b3b9b26549

View file

@ -47,8 +47,8 @@ def getTweets(db=dbtools.dbHelper(), user=twitools.twObject().whoami(), two=twit
def getMessages(db=dbtools.dbHelper(), two=twitools.twObject()):
mcount = 0
savepoint = db.getLatestMessage() + 1
new_messages = two.api.direct_messages(since_id=savepoint, count=200, full_text=True)
new_out_messages = two.api.sent_direct_messages(since_id=savepoint, count=200, full_text=True)
new_messages = two.api.direct_messages(since_id=savepoint, count=200, full_text=True, include_entities=True)
new_out_messages = two.api.sent_direct_messages(since_id=savepoint, count=200, full_text=True, include_entities=True)
for m in (new_messages + new_out_messages):
if dbtools.fillerfilter.messageFilter(m, True):