Answer the question
In order to leave comments, you need to log in
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 утра`);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question