org.telegram.api.input.media.TLInputMediaDocumentExternal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegramapi Show documentation
Show all versions of telegramapi Show documentation
Java library to create Telegram Clients
package org.telegram.api.input.media;
import org.telegram.tl.StreamingUtils;
import org.telegram.tl.TLContext;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* The type TL input media photo.
*/
public class TLInputMediaDocumentExternal extends TLAbsInputMedia {
/**
* The constant CLASS_ID.
*/
public static final int CLASS_ID = 0xe5e9607c;
private String url;
private String caption;
/**
* Instantiates a new TL input media photo.
*/
public TLInputMediaDocumentExternal() {
super();
}
public int getClassId() {
return CLASS_ID;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getCaption() {
return caption;
}
public void setCaption(String caption) {
this.caption = caption;
}
public void serializeBody(OutputStream stream)
throws IOException {
StreamingUtils.writeTLString(url, stream);
StreamingUtils.writeTLString(caption, stream);
}
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
url = StreamingUtils.readTLString(stream);
caption = StreamingUtils.readTLString(stream);
}
public String toString() {
return "inputMediaDocumentExternal#e5e9607c";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy