import from json

This commit is contained in:
Artyom Ashirov
2024-11-15 07:07:02 +03:00
parent 4251f1a0bd
commit de5e405093
2 changed files with 6 additions and 5 deletions

View File

@@ -69,9 +69,7 @@ bot.onText(/\/admin/, async (msg) => {
// Handle user menu buttons
bot.on('message', async (msg) => {
if (!msg.text) return;
if (msg.text.toLowerCase() === '/start') {
if (msg.text && msg.text.toLowerCase() === '/start') {
return;
}