public class TLRequestMessagesSendMessage extends TLMethod<TLAbsUpdates>
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
| Constructor and Description |
|---|
TLRequestMessagesSendMessage()
Instantiates a new TL request messages send message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
TLAbsUpdates |
deserializeResponse(InputStream stream,
TLContext context) |
void |
disableWebPreview() |
void |
enableBroadcast(boolean enabled) |
int |
getClassId()
Getting TL Class identification
|
TLVector<TLAbsMessageEntity> |
getEntities() |
int |
getFlags()
Gets flags.
|
String |
getMessage()
Gets message.
|
TLAbsInputPeer |
getPeer()
Gets peer.
|
long |
getRandomId()
Gets random id.
|
TLAbsReplyMarkup |
getReplyMarkup() |
int |
getReplyToMsgId()
Gets reply to msg id.
|
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setEntities(TLVector<TLAbsMessageEntity> entities) |
void |
setFlags(int flags)
Sets flags.
|
void |
setMessage(String value)
Sets message.
|
void |
setPeer(TLAbsInputPeer value)
Sets peer.
|
void |
setRandomId(long value)
Sets random id.
|
void |
setReplyMarkup(TLAbsReplyMarkup replyMarkup) |
void |
setReplyToMsgId(int replyToMsgId)
Sets reply to msg id.
|
String |
toString()
Custom toString method
|
castResponse, deserializeResponsedeserialize, serialize, serializepublic static final int CLASS_ID
public TLRequestMessagesSendMessage()
public int getClassId()
TLObjectgetClassId in class TLObjectpublic TLAbsUpdates deserializeResponse(InputStream stream, TLContext context) throws IOException
deserializeResponse in class TLMethod<TLAbsUpdates>IOExceptionpublic TLAbsInputPeer getPeer()
public void setPeer(TLAbsInputPeer value)
value - the valuepublic String getMessage()
public void setMessage(String value)
value - the valuepublic long getRandomId()
public void setRandomId(long value)
value - the valuepublic int getFlags()
public void setFlags(int flags)
flags - the flagspublic int getReplyToMsgId()
public void setReplyToMsgId(int replyToMsgId)
replyToMsgId - the reply to msg idpublic TLAbsReplyMarkup getReplyMarkup()
public void setReplyMarkup(TLAbsReplyMarkup replyMarkup)
public TLVector<TLAbsMessageEntity> getEntities()
public void setEntities(TLVector<TLAbsMessageEntity> entities)
public void disableWebPreview()
public void enableBroadcast(boolean enabled)
public void serializeBody(OutputStream stream) throws IOException
TLObjectserializeBody in class TLObjectstream - destination streamIOExceptionpublic void deserializeBody(InputStream stream, TLContext context) throws IOException
TLObjectdeserializeBody in class TLObjectstream - source streamcontext - tl contextIOExceptionCopyright © 2017. All rights reserved.