class tl.CustomMessage
extends SenderGetter
import { tl } from "https://deno.land/x/grm@0.6.0/src/mod.ts";
const { CustomMessage } = tl;
Constructors
new
CustomMessage(args: MessageBaseInterface | Api.Message)Properties
optional
_buttons: MessageButton[][]optional
_buttonsFlat: MessageButton[]optional
_client: AbstractTelegramClientoptional
_file: Fileoptional
_forward: Forwardoptional
_replyMessage: CustomMessageaction: Api.TypeMessageAction
optional
entities: Api.TypeMessageEntity[]optional
fromId: Api.TypePeeroptional
fwdFrom: Api.TypeMessageFwdHeaderoptional
media: Api.TypeMessageMediaoptional
originalMessage: Api.MessagepeerId: Api.TypePeer
optional
reactions: Api.MessageReactionsoptional
replies: Api.TypeMessageRepliesoptional
replyMarkup: Api.TypeReplyMarkupoptional
replyTo: Api.MessageReplyHeaderoptional
restrictionReason: Api.TypeRestrictionReason[]Methods
_documentByAttribute(kind: Function, condition?: Function)
_finishInit()
client: AbstractTelegramClient,
entities: Map<string, Api.TypeEntity>,
inputChat?: Api.TypeEntityLike,
_setButtons(chat: Api.TypeEntityLike, bot?: Api.TypeEntityLike)
click(unnamed 0: ButtonClickParam)
delete(unnamed 0?)
downloadMedia(params?: DownloadMediaInterface)
edit(params: Omit<EditMessageParams, "message">)
forwardTo(entity: Api.TypeEntityLike)
getEntitiesText(cls?: Function)
getReplyMessage(): Promise<CustomMessage | undefined>
init(unnamed 0: MessageBaseInterface)
pin(params?: UpdatePinMessageParams)
reply(params: SendMessageParams)
respond(params: SendMessageParams)
unpin(params?: UpdatePinMessageParams)