А
Size: a a a
А
SB
JD
SB
А
I
JD
I
JD
А
I
А
OS
OS
А
OS
OS
import util from 'util';
import { Markup as m} from 'telegraf';
import bot from '../app';
const delay = util.promisify(setTimeout);
async function task() {
const { telegram: tg } = bot;
const { api } = bot.context;
const query = { status: 1 };
const clients = api.service('clients').find({query});
for await (const client of clients) {
const keyboard = m.inlineKeyboard([]).extra();
await tg.sendMessage(client.chatId, '...', keyboard);
await delay(250);
}
}
task();
OS
I
I