Skip to content

Stage - #100

Merged
NickLyrick merged 2 commits into
masterfrom
stage
Aug 10, 2026
Merged

Stage#100
NickLyrick merged 2 commits into
masterfrom
stage

Conversation

@slipmetal

Copy link
Copy Markdown
Collaborator

No description provided.

slipmetal and others added 2 commits August 10, 2026 14:14
* Send /top as a native table instead of a rendered image

Telegram has carried table blocks since Bot API 10.1, which the aiogram
upgrade just made reachable. Hand /top its rows as data and let the client
draw them: the result is selectable and searchable, and it skips the
pandas -> WeasyPrint -> poppler -> Pillow round trip entirely.

This is a pilot. /show_queue, /history and the monthly survey results
still render images, so the pipeline and its dependencies stay for now.

Also drop a leftover debug print from the handler.

* Drop the image pipeline in favour of native tables

/show_queue, /history and the monthly survey results now travel as table
blocks like /top already did, so nothing renders PNGs any more. That
removes pandas, WeasyPrint, pdf2image and Pillow from the requirements,
poppler and pango from the image, and src/utility/tools.py altogether.

The survey used to send three images as a media group and pin the first
one, which pinned only the first category. It is now a single message: a
heading followed by one table per category, so pinning covers all three.

* Set 512mb for VM
@slipmetal
slipmetal requested a review from NickLyrick August 10, 2026 11:52
@slipmetal slipmetal self-assigned this Aug 10, 2026
@NickLyrick
NickLyrick merged commit 366fe67 into master Aug 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants