mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49:57 +00:00
Put GSMArena page from device onto message (based on #9)
This commit is contained in:
parent
7070a0e51f
commit
a10ef8980e
@ -110,9 +110,11 @@ function formatPhone(phone) {
|
||||
.map(([label, key]) => `<b>${label}:</b> <code>${formattedPhone[key]}</code>`)
|
||||
.join("\n\n");
|
||||
|
||||
|
||||
const deviceUrl = `<b>GSMArena page:</b> ${formattedPhone.url}`;
|
||||
const deviceImage = phone.picture ? `<b>Device Image</b>: ${phone.picture}` : '';
|
||||
|
||||
return `<b>${formattedPhone.name}</b>\n\n${attributes}\n\n${deviceImage}`;
|
||||
return `<b>\n\nName: </b><code>${formattedPhone.name}</code>\n\n${attributes}\n\n${deviceImage}\n\n${deviceUrl}`;
|
||||
}
|
||||
|
||||
async function fetchHtml(url) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user