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