We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7a6e6e commit 2dbc2eaCopy full SHA for 2dbc2ea
1 file changed
lib/routes/telegram/channel-media.ts
@@ -73,7 +73,7 @@ function chooseLargestThumb(thumbs: Api.TypePhotoSize[]) {
73
}
74
75
export async function* streamThumbnail(client: TelegramClient, doc: Api.Document) {
76
- if (doc.thumbs?.length ?? 0 > 0) {
+ if ((doc.thumbs?.length ?? 0) > 0) {
77
const size = chooseLargestThumb(doc.thumbs!);
78
if (size instanceof Api.PhotoCachedSize || size instanceof Api.PhotoStrippedSize) {
79
yield ExpandInlineBytes(size.bytes);
0 commit comments