INNER CODE UNIT · TypeScript

file

grammyjs/grammY · src/context.ts:2138

        const file = m.photo !== undefined // handles both photos and live photos
            ? m.photo[m.photo.length - 1]
            : m.animation ??
                m.audio ??
                m.document ??
                m.video ??
                m.video_note ??
                m.voice ??
                m.sticker;
        return this.api.getFile(orThrow(file, "getFile").file_id, signal);
    }

    /** @deprecated Use `banAuthor` instead. */
    kickAuthor(...args: Parameters<Context["banAuthor"]>) {
        return this.banAuthor(...args);
    }

    /**

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…