org.telegram.api.keyboard.replymarkup.TLReplayKeyboardHide 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.keyboard.replymarkup;
import org.telegram.tl.StreamingUtils;
import org.telegram.tl.TLContext;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* @author Ruben Bermudez
* @version 1.0
* @brief Hide custom keyboard
* @date 07 of July of 2015
*/
public class TLReplayKeyboardHide extends TLAbsReplyMarkup {
public static final int CLASS_ID = 0xa03e5b85;
private static final int FLAG_UNUSED0 = 0x00000001; // 0
private static final int FLAG_UNUSED1 = 0x00000002; // 1
private static final int FLAG_SELECTIVE = 0x00000004; // 2
private int flags;
@Override
public int getClassId() {
return CLASS_ID;
}
public int getFlags() {
return flags;
}
@Override
public void serializeBody(OutputStream stream) throws IOException {
StreamingUtils.writeInt(this.flags, stream);
}
@Override
public void deserializeBody(InputStream stream, TLContext context) throws IOException {
this.flags = StreamingUtils.readInt(stream);
}
@Override
public String toString() {
return "keyboard#ReplyKeyboardHide#a03e5b85";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy