mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 21:00:03 +00:00
Simple string change
This commit is contained in:
parent
74176098fc
commit
44c346c407
@ -29,5 +29,5 @@ module.exports = function(bot, msg) {
|
|||||||
const message = chatNameOutput;
|
const message = chatNameOutput;
|
||||||
|
|
||||||
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
||||||
.catch(error => console.error('WARN: Message cannot be sent:', error));
|
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
||||||
}
|
}
|
||||||
|
@ -17,5 +17,5 @@ module.exports = function(bot, msg) {
|
|||||||
const message = "Select your pronouns:";
|
const message = "Select your pronouns:";
|
||||||
|
|
||||||
bot.sendMessage(chatId, message, opts,{ parse_mode: 'Markdown' })
|
bot.sendMessage(chatId, message, opts,{ parse_mode: 'Markdown' })
|
||||||
.catch(error => console.error('WARN: Message cannot be sent:', error));
|
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
||||||
}
|
}
|
||||||
|
@ -18,5 +18,5 @@ module.exports = function(bot, msg) {
|
|||||||
const message = `${isFurry}`;
|
const message = `${isFurry}`;
|
||||||
|
|
||||||
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
||||||
.catch(error => console.error('WARN: Message cannot be sent:', error));
|
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
||||||
}
|
}
|
||||||
|
@ -18,5 +18,5 @@ module.exports = function(bot, msg) {
|
|||||||
const message = `${isGay}`;
|
const message = `${isGay}`;
|
||||||
|
|
||||||
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
||||||
.catch(error => console.error('WARN: Message cannot be sent:', error));
|
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
||||||
}
|
}
|
||||||
|
@ -18,5 +18,5 @@ module.exports = function(bot, msg) {
|
|||||||
`Thanks to all users, testers, contributors, and others. Without you, perhaps this bot wouldn't be possible ❤️`;
|
`Thanks to all users, testers, contributors, and others. Without you, perhaps this bot wouldn't be possible ❤️`;
|
||||||
|
|
||||||
bot.sendPhoto(chatId, lynxFullPhoto, { caption: message, parse_mode: 'Markdown' })
|
bot.sendPhoto(chatId, lynxFullPhoto, { caption: message, parse_mode: 'Markdown' })
|
||||||
.catch(error => console.error('WARN: Message cannot be sent:', error));
|
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
||||||
}
|
}
|
||||||
|
@ -36,5 +36,5 @@ module.exports = function(bot, msg) {
|
|||||||
`In case of usage block, as mentioned above, the terms will be immediately cancelled for the user.`;
|
`In case of usage block, as mentioned above, the terms will be immediately cancelled for the user.`;
|
||||||
|
|
||||||
bot.sendMessage(chatId, message, { parse_mode: 'Markdown', disable_web_page_preview: true })
|
bot.sendMessage(chatId, message, { parse_mode: 'Markdown', disable_web_page_preview: true })
|
||||||
.catch(error => console.error('WARN: Message cannot be sent:', error));
|
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
||||||
};
|
};
|
||||||
|
@ -10,6 +10,6 @@ module.exports = function(bot, msg) {
|
|||||||
const message = `*Generated value:* ${randomValue}`;
|
const message = `*Generated value:* ${randomValue}`;
|
||||||
|
|
||||||
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
||||||
.catch(error => console.error('WARN: Message cannot be sent:', error));
|
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
||||||
}
|
}
|
||||||
|
|
@ -8,5 +8,5 @@ module.exports = function(bot, msg) {
|
|||||||
`Also, you can use /help to show the bot commands!`;
|
`Also, you can use /help to show the bot commands!`;
|
||||||
|
|
||||||
bot.sendPhoto(chatId, lynxProfilePhoto, { caption: message, parse_mode: 'Markdown' } )
|
bot.sendPhoto(chatId, lynxProfilePhoto, { caption: message, parse_mode: 'Markdown' } )
|
||||||
.catch(error => console.error('WARN: Message cannot be sent:', error));
|
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ module.exports = function (bot, msg) {
|
|||||||
const isAdmin = admins.includes(msg.from.id.toString());
|
const isAdmin = admins.includes(msg.from.id.toString());
|
||||||
if (isAdmin) {
|
if (isAdmin) {
|
||||||
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
||||||
.catch(error => console.error('WARN: Message cannot be sent:', error));
|
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -24,5 +24,5 @@ module.exports = function(bot, msg) {
|
|||||||
const message = `*Your name is:* ${userName}\n${haveUsername}\n*Your ID is:* ${userId}\n*You are a bot:* ${isBot}\n*Your language:* ${userLang}\n\n${userPremiumOutput}`;
|
const message = `*Your name is:* ${userName}\n${haveUsername}\n*Your ID is:* ${userId}\n*You are a bot:* ${isBot}\n*Your language:* ${userLang}\n\n${userPremiumOutput}`;
|
||||||
|
|
||||||
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
||||||
.catch(error => console.error('WARN: Message cannot be sent:', error));
|
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user