1
import { Telegram } from "npm:telegraf@4.11";
2
3
type Telegram = {
4
token: string;
5
};
6
export async function main(
7
auth: Telegram,
8
chat_id: string,
9
message_id: number,
10
) {
11
const client = new Telegram(auth.token);
12
return await client.pinChatMessage(chat_id, message_id);
13
}
14