mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 04:39:57 +00:00
Removed debug and unused constant
This commit is contained in:
parent
a1896b12c9
commit
b60e8017c1
@ -42,13 +42,12 @@ module.exports = (bot) => {
|
||||
|
||||
const deviceDetails = jsonRes[phoneSearch];
|
||||
const device = deviceDetails.find((item) => item.brand) || deviceDetails[0];
|
||||
const { brand = "Unknown", name = "Unknown", model = "Unknown" } = device;
|
||||
const message = Strings.codenameCheck.resultMsg
|
||||
.replace('{brand}', device.brand)
|
||||
.replace('{codename}', userInput)
|
||||
.replace('{model}', device.model)
|
||||
.replace('{name}', device.name);
|
||||
console.log(message)
|
||||
|
||||
return ctx.reply(message, {
|
||||
parse_mode: 'Markdown',
|
||||
reply_to_message_id: ctx.message.message_id
|
||||
|
Loading…
x
Reference in New Issue
Block a user