Enviar stickers pelo whatsapp

Olá!
Gostaria de enviar um sticker durante a interação com o meu bot no whatsapp e pelo que vi nesse tutorial externo isso seria possível identificando o tipo de media como “sticker”. Porém, ao tentar enviar o conteúdo dinâmico com esse conteúdo obtenho o seguinte erro no debug do blip:

"System.FormatException: Invalid media type format\r\n at Lime.Protocol.MediaType.Parse(String s)\r\n at Lime.Protocol.Serialization.Newtonsoft.Converters.StringBasedTypeJsonConverter`1.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Populate(JsonReader reader, Object target)\r\n at Lime.Protocol.Serialization.Newtonsoft.Converters.DocumentJsonConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)\r\n at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)\r\n at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)\r\n at Newtonsoft.Json.Linq.JToken.ToObject(Type objectType, JsonSerializer jsonSerializer)\r\n at Lime.Protocol.Serialization.DocumentSerializer.Deserialize(String value, MediaType mediaType)\r\n at Take.Blip.Builder.Actions.SendRawMessage.SendRawMessageAction.ExecuteAsync(IContext context, SendRawMessageSettings settings, CancellationToken cancellationToken)\r\n at Take.Blip.Builder.Actions.ActionBase`1.ExecuteAsync(IContext context, JObject settings, CancellationToken cancellationToken)\r\n at Takenet.Iris.Application.TemplateHosting.Templates.Builder.MetricsActionDecorator.ExecuteAsync(IContext context, JObject settings, CancellationToken cancellationToken) in C:\\TeamCity\\BuildAgent\\work\\6a20e4c6cb1327e7\\src\\Applications\\Takenet.Iris.Application.TemplateHosting\\Templates\\Builder\\MetricsActionDecorator.cs:line 66\r\n at Takenet.Iris.Application.TemplateHosting.Templates.Builder.TracedActionDecorator.ExecuteAsync(IContext context, JObject settings, CancellationToken cancellationToken) in C:\\TeamCity\\BuildAgent\\work\\6a20e4c6cb1327e7\\src\\Applications\\Takenet.Iris.Application.TemplateHosting\\Templates\\Builder\\TracedActionDecorator.cs:line 33\r\n at Take.Blip.Builder.FlowManager.ProcessActionsAsync(LazyInput lazyInput, IContext context, Action[] actions, ICollection`1 actionTraces, CancellationToken cancellationToken)"

É possível realizar o envio de stickers durante a interação?

Obrigado e abraços,

2 curtidas

Da uma olhada aqui veja se te ajudo Figurinhas WhatsApp - #2 por GabrielPetrone

3 curtidas