Raw.UpdateShortChatMessage
Shortened constructor containing info on one new incoming text message from a chat
updateShortChatMessage#4d6deea5 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:long chat_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 UpdateShortChatMessage {
constructor(params: {
out?: boolean;
mentioned?: boolean;
mediaUnread?: boolean;
silent?: boolean;
id: number;
fromId: bigint;
chatId: 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: 0x4d6deea5
Property
out
: boolean or undefinedWhether the message is outgoing
mentioned
: boolean or undefinedWhether we were mentioned in this message
mediaUnread
: boolean or undefinedWhether the message contains some unread mentions
silent
: boolean or undefinedIf true, the message is a silent message, no notifications should be triggered
id
: numberId of the message
fromId
: bigintId of the sender of the message
chatId
: bigintId of the chat where the message was sent
message
: stringMessage
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 (thread) information
entities
: Array of Raw.TypeMessageEntity or undefinedEntities for styled text
ttlPeriod
: number or undefinedTime to live of the message, once updateshortchatmessage.date+updateshortchatmessage.ttlPeriod === time(), the message will be deleted on the server, and must be deleted locally as well.