0

i'm writing a bot using javascript and the telegram module, I want my bot to have an ascii table, but I couldn't manage it, whenever I try, the text doesn't come out correctly, please help, my codes are here

this is the text that comes out

this my code

const telegraf = require('telegraf');
const ascii = require("ascii-table")
const bot = new telegraf('6251987336:AAFoBle4XdeZMchWbgZj4ryFQLvk4_QBbtw');
const startext = require('./textercommand/startext.json');
const AsciiTable = require('ascii-table/ascii-table');
console.log("https://github.com/Mars0J",
"Coded BY MARS")


bot.on(async (ctx) => {
  await ctx.reply('hello ' + ctx.from.first_name + '!')
})
    
bot.start(async (ctx)  => {

  var { AsciiTable3, AlignmentEnum } = require('ascii-table3');
  var table = 
    new AsciiTable3('')
    .setHeading('Projekt Mars V1.0 ║ Parametreler')
    .setStyle('unicode-double')
    .setAlign(AlignmentEnum.AUTO)
    .addRowMatrix([
        ['/sorgu -tc *                     '],
        ['                                 '],
    ]);

  await ctx.reply(table.toString())
})
    

i want it to be like this this like

I would be very glad if you could help me with this, thank you in advance, my friends

is there no one to help?

ineed help ???

mars0j
  • 27
  • 4
  • Have you got this working with just plain-text first, as in a copy-paste version? Formatting with proportional spaces is never easy. – tadman Jun 20 '23 at 15:02
  • dude, I want him to extract something properly using the ascii table 3 module, but it's not happening, he's giving a bad output – mars0j Jun 20 '23 at 15:08
  • please help, my friend, my project is half way through, I've been on so many forums to continue – mars0j Jun 20 '23 at 15:12

0 Answers0