Closed trydis closed 6 years ago
Ooops, I compared the async with the sync version.
I see that the async version hasn't been updated in the latest version:
public virtual Task<TwitterAsyncResult<TwitterDirectMessageResult>> SendDirectMessageAsync(SendDirectMessageOptions options)
{
var recipientId = options.Recipientid;
var text = options.Text;
var mediaType = options.Mediatype;
var mediaId = options.Mediaid;
var quickReplies = options.Quickreplies;
return WithHammockTask<TwitterDirectMessageResult>(_client, WebMethod.Post, "direct_messages/events/new", FormatAsString, "?recipient_id=", recipientId, "&text=", text, "&media_type=", mediaType, "&media_id=", mediaId, "&quick_replies=", quickReplies);
}
I will use the sync version for now.
Ah, my fault, sorry about this. I've just pushed a 5.1.0 package that I believe fixes this. Thanks.
Updated to the 5.0.0 package and tried to send a DM.
This resulted in the following exception:
Looked at the source code, downloaded the NuGet package and decompiled the dll.
This is what I see:
It looks like the old version, not the latest:
So I'm wondering if the latest NuGet package contains old assemblies?