instasharper API wont get inbox?

Viewed 171

im trying to make a window application where you can send instagram messages, however my code cant fetch the inbox. :. heres some of the code:

 `    
   if (loginreq.Succeeded)
            {
            string user = "kristian_grey.memes";
            Console.WriteLine("logged in!");
            //THIS LINE BELOW
            var inboxThreads = await api.GetDirectInboxAsync();
            if (!inboxThreads.Succeeded)
            {
                Console.WriteLine("Unable to get inbox");
                return;
            }
            foreach (var thread in inboxThreads.Value.Inbox.Threads)
            {
                Console.WriteLine($"Threadname: {thread.Title}, users: {thread.Users.Count}");
            }`

heres the error:

Exception: Newtonsoft.Json.JsonSerializationException: Error converting value "6700803485145306816" to type 'System.Guid'. Path 'inbox.threads[0].items[0].client_context', line 1, position 1779. ---> System.ArgumentException: Could not cast or convert from System.String to System.Guid.

0 Answers
Related