Edits history of script submission #22568 for ' Forward a Message (telegram)'

  • bun
    One script reply has been approved by the moderators
    Ap­pro­ved
    import { Telegram as Telegraf } from "[email protected]";
    
    type Telegram = {
      token: string;
    };
    export async function main(
      auth: Telegram,
      from_chat_id: string,
      to_chat_id: string,
      message_id: number,
    ) {
      const client = new Telegraf(auth.token);
      return await client.forwardMessage(to_chat_id, from_chat_id, message_id);
    }
    

    Submitted by hugo989 7 days ago