import { Telegram as Telegraf } from "[email protected]";
type Telegram = {
token: string;
};
export async function main(
auth: Telegram,
chat_id: string | number,
text: string,
reply_to_message_id?: number,
) {
const client = new Telegraf(auth.token);
return await client.sendMessage(chat_id, text, {
reply_to_message_id,
});
}
Submitted by hugo989 6 days ago