mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49: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 deviceDetails = jsonRes[phoneSearch];
|
||||||
const device = deviceDetails.find((item) => item.brand) || deviceDetails[0];
|
const device = deviceDetails.find((item) => item.brand) || deviceDetails[0];
|
||||||
const { brand = "Unknown", name = "Unknown", model = "Unknown" } = device;
|
|
||||||
const message = Strings.codenameCheck.resultMsg
|
const message = Strings.codenameCheck.resultMsg
|
||||||
.replace('{brand}', device.brand)
|
.replace('{brand}', device.brand)
|
||||||
.replace('{codename}', userInput)
|
.replace('{codename}', userInput)
|
||||||
.replace('{model}', device.model)
|
.replace('{model}', device.model)
|
||||||
.replace('{name}', device.name);
|
.replace('{name}', device.name);
|
||||||
console.log(message)
|
|
||||||
return ctx.reply(message, {
|
return ctx.reply(message, {
|
||||||
parse_mode: 'Markdown',
|
parse_mode: 'Markdown',
|
||||||
reply_to_message_id: ctx.message.message_id
|
reply_to_message_id: ctx.message.message_id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user