Edits history of script submission #22572 for ' Send a Text Message or Reply (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,
      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