const bot = new TelegramApi(token, { polling: true });
const { Telegraf } = require('telegraf')
const bot = new Telegraf(`Тут стоит токен`)
bot.hears('hi', (ctx) => {
ctx.replyWithPhoto({ source: '/logo.jpg' })
})
bot.launch()
C:\Users\Aleksnder\Desktop\Creative Bot Telegram\node_modules\telegraf\lib\core\network\client.js:265
throw new error_1.default(data, { method, payload });
TelegramError: 400: Bad Request: there is no photo in the request