Skip to content

Commit

Permalink
modify image-quality order
Browse files Browse the repository at this point in the history
  • Loading branch information
makeding committed Jul 22, 2024
1 parent bb3dfcd commit 10ba6fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ async function tg_sender(ctx) {
if (illust.type <= 1) {
let { reply_to_message_id } = extra
await asyncForEach(illust.mediagroup, async (o, i) => {
let photo_urls = [o.media_o, `dl-${o.media_o}`, o.media_r, `dl-${o.media_r}`]
let photo_urls = [o.media_o, o.media_r, `dl-${o.media_o}`, `dl-${o.media_r}`]
// Telegram will download and send the file. 5 MB max size for photos
// It's useless to provide original (Telegram will compress image about 200kb)
if (o.fsize > 5000000) {
Expand Down

0 comments on commit 10ba6fa

Please sign in to comment.