Edits history of script submission #22574 for ' Edit a Text 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,
      chat_id: string | number,
      message_id: number,
      text: string,
      inline_message_id?: string,
    ) {
      const client = new Telegraf(auth.token);
      return await client.editMessageText(
        chat_id,
        message_id,
        inline_message_id,
        text,
      );
    }
    

    Submitted by hugo989 6 days ago