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 | number,
9
message_id: number,
10
text: string,
11
inline_message_id?: string,
12
) {
13
const client = new Telegram(auth.token);
14
return await client.editMessageText(
15
chat_id,
16
message_id,
17
inline_message_id,
18
text,
19
);
20
}
21