Raw.UpdateShortMessage
Info about a message sent to (received from) another user
updateShortMessage#313bc7f8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
export namespace Raw {
export class UpdateShortMessage {
constructor(params: {
out?: boolean;
mentioned?: boolean;
mediaUnread?: boolean;
silent?: boolean;
id: number;
userId: bigint;
message: string;
pts: number;
ptsCount: number;
date: number;
fwdFrom?: Raw.TypeMessageFwdHeader;
viaBotId?: bigint;
replyTo?: Raw.TypeMessageReplyHeader;
entities?: Array<Raw.TypeMessageEntity>;
ttlPeriod?: number;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x313bc7f8
Property
out
: boolean or undefinedWhether the message is outgoing
mentioned
: boolean or undefinedWhether we were mentioned in the message
mediaUnread
: boolean or undefinedWhether there are some unread mentions in this message
silent
: boolean or undefinedIf true, the message is a silent message, no notifications should be triggered
id
: numberThe message id
userId
: bigintThe id of the sender (if outgoing will be the id of the destination) of the message
message
: stringThe message
pts
: numberPts
ptsCount
: numberPts count
date
: numberDate
fwdFrom
: Raw.TypeMessageFwdHeader or undefinedInfo about a forwarded message
viaBotId
: bigint or undefinedInfo about the inline bot used to generate this message
replyTo
: Raw.TypeMessageReplyHeader or undefinedReply and thread information
entities
: Array of Raw.TypeMessageEntity or undefinedEntities for styled text
ttlPeriod
: number or undefinedTime to live of the message, once message.date+message.ttlPeriod === time(), the message will be deleted on the server, and must be deleted locally as well.