diff --git a/src/components/item.astro b/src/components/item.astro
index 64949c2..5a846ad 100644
--- a/src/components/item.astro
+++ b/src/components/item.astro
@@ -181,6 +181,11 @@ const timeago = datetime.isBefore(dayjs().subtract(1, 'w'))
margin-right: 2px;
}
+ .content :global(.sticker) {
+ box-shadow: none;
+ border: none;
+ }
+
.tag-box {
flex-wrap: wrap;
}
diff --git a/src/lib/telegram/index.js b/src/lib/telegram/index.js
index 5a26e0f..87c0235 100644
--- a/src/lib/telegram/index.js
+++ b/src/lib/telegram/index.js
@@ -11,6 +11,27 @@ const cache = new LRUCache({
},
})
+function getVideoStickers($, item, { staticProxy, index }) {
+ return $(item).find('.js-videosticker_video')?.map((_index, video) => {
+ const url = $(video)?.attr('src')
+ const imgurl = $(video).find('img')?.attr('src')
+ return `
+
+
+
+ `
+ })?.get()?.join('')
+}
+
+function getImageStickers($, item, { staticProxy, index }) {
+ return $(item).find('.tgme_widget_message_sticker')?.map((_index, image) => {
+ const url = $(image)?.attr('data-webp')
+ return `
`
+ })?.get()?.join('')
+}
+
function getImages($, item, { staticProxy, id, index, title }) {
return $(item).find('.tgme_widget_message_photo_wrap')?.map((_index, photo) => {
const url = $(photo).attr('style').match(/url\(["'](.*?)["']/)?.[1]
@@ -85,6 +106,8 @@ function getPost($, item, { channel, staticProxy, index = 0 }) {
getImages($, item, { staticProxy, id, index, title }),
getVideo($, item, { staticProxy, id, index, title }),
content?.html(),
+ getImageStickers($, item, { staticProxy, index }),
+ getVideoStickers($, item, { staticProxy, index }),
// $(item).find('.tgme_widget_message_sticker_wrap')?.html(),
$(item).find('.tgme_widget_message_poll')?.html(),
$.html($(item).find('.tgme_widget_message_document_wrap')),