B
B
Belavor2019-09-30 22:46:11
Node.js
Belavor, 2019-09-30 22:46:11

inline_keyboard node js telegram not working?

const button2 = {
        parse_mode: 'html',
        disable_web_page_preview: false,
        reply_markup: JSON.stringify({
        inline_keyboard:  [
            [{text: 'Понидельник', callback_data: 'mon'}],
            [{text: 'Вторник', callback_data: 'tue'}],
            [{text: 'Среда', callback_data: 'wed'}],                        
            [{text: 'Четверг', callback_data: 'thu'}],
            [{text: 'Пятница', callback_data: 'fri'}],
            [{text: 'Суббота', callback_data: 'sat'}]
        ]
    })
};
        bot.sendMessage(msg.from.id, `Укажите день недели`, button2);
        });

        bot.onText(/Понидельник/, function(msg, match) {
            const fromId = msg.from.id;
            bot.sendMessage(fromId, `Два Урока у пидараза в 8 утра`);
            });

        bot.onText(/Вторник/, function(msg, match) {
            const fromId = msg.from.id;
            bot.sendMessage(fromId, `Два Урока у пидараза в 8 утра`);
            });
                
        bot.onText(/Среда/, function(msg, match) {
            const fromId = msg.from.id;
            bot.sendMessage(fromId, `Два Урока у пидараза в 8 утра`);
            });

        bot.onText(/Четверг/, function(msg, match) {
            const fromId = msg.from.id;
            bot.sendMessage(fromId, `Два Урока у пидараза в 8 утра`);
            });

        bot.onText(/Пятница/, function(msg, match) {
            const fromId = msg.from.id;
            bot.sendMessage(fromId, `Два Урока у пидараза в 8 утра`);
            });

        bot.onText(/Суббота/, function(msg, match) {
            const fromId = msg.from.id;
            bot.sendMessage(fromId, `Два Урока у пидараза в 8 утра`);
            });

does not work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Serezha, 2019-09-30
Ahen @Ahen

does not work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question