Remove a generated PDF when it is obsolete
Make it easy to clean up a generated file that should no longer remain available.
Trigger
New Message Received
Triggered when your bot receives a new message in a private chat, group, or supergroup. To receive every message in a group, Privacy Mode must be disabled for the bot in BotFather.
Action
Delete PDF
Tool to delete a previously generated pdf. use when you need to immediately remove a pdf by its response id.
Why this helps
Old generated documents can linger when cleanup depends on remembering a separate step.
- Provides a direct cleanup path for obsolete outputs.
- Reduces lingering generated-file clutter.
- Keeps the removal request near the discussion.
Setup
Build it in a few focused steps.
- 1Connect Telegram and Api2pdf to Notis once in the portal.
- 2Create an automation in the portal or ask Notis conversationally.
- 3In one instruction, ask Notis to delete a previously generated PDF when a valid response ID is supplied in Telegram.
- 4Select the new message trigger and a channel for run reports.
- 5Test only with a disposable generated PDF and its response ID.
Questions about this workflow
What information does deletion require?
Api2pdf deletes a previously generated PDF by its response ID; include that identifier in the request.
Can it delete a source file from Telegram?
This action is for a previously generated Api2pdf PDF, not arbitrary Telegram files.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Telegram to Api2pdf. A trigger fires from one place; an action lands in another.
Telegram triggers
Api2pdf actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Add Header Footer
Tool to add headers and footers to a pdf document. use when you need consistent page numbering, titles, or custom branding on every page.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Delete PDF
Tool to delete a previously generated pdf. use when you need to immediately remove a pdf by its response id.
New Message Received
Triggered when your bot receives a new message in a private chat, group, or supergroup. To receive every message in a group, Privacy Mode must be disabled for the bot in BotFather.
Extract PDF Pages
Tool to extract specific pages from a pdf document. use when you need only certain pages from a larger pdf file.
New Channel Post
Triggered when a new post is published to a channel where your bot is an administrator.
LibreOffice PDF to HTML
Tool to convert a pdf document to html using libreoffice. use when you need html output of a pdf file (experimental; images may be excluded).
Callback Query Received
Triggered when a user taps an inline keyboard button attached to one of your bot's messages.
LibreOffice Thumbnail
Tool to generate a thumbnail image of a document using libreoffice. use when you need a quick visual preview of a pdf or office file's first page.
Message Edited
Triggered when a message in a chat your bot can see is edited by its sender.
Merge PDFs
Tool to merge multiple pdf documents into a single pdf. use when you need to concatenate several pdfs on the server-side.
New Chat Member
Triggered when a new member joins a group or supergroup the bot belongs to, including when the bot itself is added.
Optimize PDF
Tool to optimize a pdf document to reduce file size while maintaining quality. use when you need to minimize storage or bandwidth for an existing pdf.
Reorder PDF Pages
Tool to reorder pages of a pdf document. use when you need to rearrange pages into a new order by specifying page indices.
Connect any two apps with Notis in the middle.
Telegram and Api2pdf, or any other combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Api2pdf.