mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Add pages count
This commit is contained in:
@@ -58,6 +58,10 @@ export function formatDetailBook(book: DetailBook): string {
|
|||||||
const addEmptyLine = () => response.push("");
|
const addEmptyLine = () => response.push("");
|
||||||
|
|
||||||
response.push(`📖 ${book.title} | ${book.lang}`);
|
response.push(`📖 ${book.title} | ${book.lang}`);
|
||||||
|
|
||||||
|
if (book.pages !== null)
|
||||||
|
response.push(`[ ${book.pages} с. ]`);
|
||||||
|
|
||||||
addEmptyLine();
|
addEmptyLine();
|
||||||
|
|
||||||
if (book.annotation_exists) {
|
if (book.annotation_exists) {
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ export interface DetailBook extends Book {
|
|||||||
source: Source;
|
source: Source;
|
||||||
remote_id: number;
|
remote_id: number;
|
||||||
is_deleted: boolean;
|
is_deleted: boolean;
|
||||||
|
pages: number | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user