Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method tgClient.AbstractTelegramClient.prototype.pinMessage
import { tgClient } from "https://deno.land/x/grm@0.6.0/src/mod.ts";
const { AbstractTelegramClient } = tgClient;

Parameters

entity: Api.TypeEntityLike
optional
message: undefined
optional
pinMessageParams: types.UpdatePinMessageParams

Parameters

entity: Api.TypeEntityLike
message: Api.TypeMessageIDLike
optional
pinMessageParams: types.UpdatePinMessageParams

Returns

Promise<any>

Parameters

entity: Api.TypeEntityLike
optional
message: any
optional
pinMessageParams: types.UpdatePinMessageParams

Returns

Promise<any | Api.messages.AffectedHistory | undefined>