JD
Size: a a a
JD
СК
СК
LI
СК
javascriptОтправка:
{
type: "photo",
media: url,
caption: title,
}
javascript
const albums=[
[
{"type":"photo","media":"https://site.com/photo1.jpg","caption":"Название"},
{"type":"photo","media":"https://site.com/photo2.jpg","caption":"Название2"},
]
]
for (group of albums) {
await delay(); // Задержка на секунду
if (group.length > 1) {
try {
await telegram.sendMediaGroup(chatId, group, {
disable_notification: true,
});
} catch (e) {
console.error(e);
}
} else {
const [photo] = group;
telegram.sendPhoto(
chatId,
{ url: photo.url },
{ caption: photo.title, disable_notification: true }
);
}
}
DE
ee
DE
Y💜
ee
DE
ee
DE
deleteMessage
Use this method to delete a message, including service messages, with the following limitations:
- A message can only be deleted if it was sent less than 48 hours ago.
ee
ЕТ
DE
DE
ЮК