Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Deleting Direct Messages

$
0
0
I worked this out the other day, for future reference the solution is
                var user = User.GetLoggedUser();
                var Messages = user.GetLatestMessagesReceived(200);
                foreach (var messagereceived in Messages)
                {
                    Tweetinvi.Message.DestroyMessage(messagereceived.Id);
                }

Viewing all articles
Browse latest Browse all 4126

Trending Articles