org.telegram.telegrambots.meta.api.objects.InputFileSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegrambots-meta Show documentation
Show all versions of telegrambots-meta Show documentation
Easy to use library to create Telegram Bots
package org.telegram.telegrambots.meta.api.objects;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.io.IOException;
/**
* @author Ruben Bermudez
* @version 4.0.0
*/
public class InputFileSerializer extends JsonSerializer {
@Override
public void serialize(InputFile value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeObject(value.getAttachName());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy