Each DirectMessage object comes with a full user entity. Currently we're discarding a lot of that information by not creating a User object from the sender and recipient portions. For example, what I get back from Twitter is reproduced below, but all that comes through on the DirectMessage is my user_id and screen_name.
'sender': {'contributors_enabled': False,
'created_at': 'Sun Sep 11 23:49:28 +0000 2011',
'default_profile': False,
'default_profile_image': False,
'description': "my kingdom for a microwave that doesn't beep",
'entities': {'description': {'urls': []},
'url': {'urls': [{'display_url': 'iseverythingstilltheworst.com',
'expanded_url': 'http://iseverythingstilltheworst.com',
'indices': [0, 22],
'url': 'http://t.co/wtg3XzqQTX'}]}},
'favourites_count': 2212,
'follow_request_sent': False,
'followers_count': 67,
'following': True,
'friends_count': 363,
'geo_enabled': False,
'has_extended_profile': False,
'id': 372018022,
'id_str': '372018022',
'is_translation_enabled': False,
'is_translator': False,
'lang': 'en',
'listed_count': 6,
'location': 'not a very good kingdom tbh',
'name': 'jeremy',
'notifications': False,
'profile_background_color': 'FFFFFF',
'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png',
'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png',
'profile_background_tile': False,
'profile_image_url': 'http://pbs.twimg.com/profile_images/719724025384083456/N98iQXqX_normal.jpg',
'profile_image_url_https': 'https://pbs.twimg.com/profile_images/719724025384083456/N98iQXqX_normal.jpg',
'profile_link_color': 'EE3355',
'profile_sidebar_border_color': '000000',
'profile_sidebar_fill_color': '000000',
'profile_text_color': '000000',
'profile_use_background_image': False,
'protected': False,
'screen_name': '__jcbl__',
'statuses_count': 441,
'time_zone': 'Eastern Time (US & Canada)',
'url': 'http://t.co/wtg3XzqQTX',
'utc_offset': -14400,
'verified': False},
Each DirectMessage object comes with a full user entity. Currently we're discarding a lot of that information by not creating a User object from the
senderandrecipientportions. For example, what I get back from Twitter is reproduced below, but all that comes through on the DirectMessage is myuser_idandscreen_name.I'd like to see
senderandrecipientattributes populated as User objects. I haven't checked, but I thinkrecipientbecomes a list for a group dm.