This commit is contained in:
Ruben Bermudez 2018-08-09 02:01:46 +02:00
parent 996a11064b
commit 2bc07613bb

View File

@ -3,6 +3,7 @@ package org.telegram.telegrambots.meta.api.objects.media;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.jsontype.TypeSerializer;
import java.io.IOException;
@ -79,4 +80,9 @@ public class InputMediaSerializer extends JsonSerializer<InputMedia> {
gen.writeEndObject();
}
@Override
public void serializeWithType(InputMedia value, JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException {
serialize(value, gen, serializers);
}
}