class types.Message
extends TypeMessage
import { types } from "https://deno.land/x/mtkruto@0.0.982/mod.ts";
const { Message } = types;
Constructors
new
Message(params: { out?: true; mentioned?: true; mediaUnread?: true; silent?: true; post?: true; fromScheduled?: true; legacy?: true; editHide?: true; pinned?: true; noforwards?: true; id: number; fromId?: TypePeer; peerId: TypePeer; fwdFrom?: TypeMessageFwdHeader; viaBotId?: bigint; replyTo?: TypeMessageReplyHeader; date: number; message: string; media?: TypeMessageMedia; replyMarkup?: TypeReplyMarkup; entities?: Array<TypeMessageEntity>; views?: number; forwards?: number; replies?: TypeMessageReplies; editDate?: number; postAuthor?: string; groupedId?: bigint; reactions?: TypeMessageReactions; restrictionReason?: Array<TypeRestrictionReason>; ttlPeriod?: number; })Properties
optional
entities: Array<TypeMessageEntity>optional
fromId: TypePeeroptional
fwdFrom: TypeMessageFwdHeaderoptional
media: TypeMessageMediapeerId: TypePeer
optional
reactions: TypeMessageReactionsoptional
replies: TypeMessageRepliesoptional
replyMarkup: TypeReplyMarkupoptional
replyTo: TypeMessageReplyHeaderoptional
restrictionReason: Array<TypeRestrictionReason>