Skip to content
Notis

Count matching Dub links from Telegram

Get a quick link count in chat when you need a scope check before sharing or cleaning up.

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

Get Links Count

Tool to retrieve the count of links in workspace with optional filters. Use when you need to get the total number of links matching specific criteria such as domain, tags, folder, or search terms.

Why this helps

Checking the size of a link set by opening and scanning the full list creates avoidable overhead.

  • Get a count for a filtered set of Dub links.
  • Check link inventory without paging through every result.
  • Use a quick count to inform cleanup or campaign planning.

Setup

Build it in a few focused steps.

  • 1Connect Telegram and Dub to Notis once in the portal.
  • 2Create an automation in the portal, or ask Notis conversationally to create it.
  • 3Describe in a single prompt that Notis should count Dub links matching the filters stated in the Telegram request.
  • 4Choose Telegram New Message Received as the trigger and select a channel for run reports.
  • 5Test by asking for a count using a real domain, tag, or search term.

Questions about this workflow

Can it count only links for one campaign?

Yes, if the campaign can be represented with a supported search term or filter in Dub.

Does this retrieve all link details too?

No. The selected Dub action returns a count matching the supplied filters.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

Notis builds workflows that link Telegram to Dub. A trigger fires from one place; an action lands in another.

Telegram triggers

Dub actions

Recurring trigger

Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.

TriggerScheduled

Bulk Delete Links

Tool to delete multiple short links in bulk from Dub. Use when you need to remove multiple links at once. Maximum of 100 link IDs per request. Non-existing IDs are silently ignored.

ActionInstant

Webhook trigger

Notis starts this workflow when an external tool or custom backend sends an HTTP request.

TriggerInstant

Bulk Update Links

Tool to update multiple short links in bulk. Use when you need to apply the same updates to multiple links at once by specifying link IDs or external IDs.

ActionInstant

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.

TriggerInstant

Create Domain

Tool to add a domain to a Dub workspace. Use when you need to create a new domain for shortening links. The domain must be verified before it can be used for link shortening.

ActionInstant

New Channel Post

Triggered when a new post is published to a channel where your bot is an administrator.

TriggerInstant

Create Tag

Tool to create a new tag in Dub. Use when you need to organize links by creating custom tags. Tags help categorize and filter links for better organization.

ActionInstant

Callback Query Received

Triggered when a user taps an inline keyboard button attached to one of your bot's messages.

TriggerInstant

Delete Domain

Tool to delete a domain from your Dub workspace. Use when you need to permanently remove a domain. The domain must exist and be owned by your workspace.

ActionInstant

Message Edited

Triggered when a message in a chat your bot can see is edited by its sender.

TriggerInstant

Delete Tag

Tool to delete a tag from Dub. Use when you need to remove a tag that is no longer needed.

ActionInstant

New Chat Member

Triggered when a new member joins a group or supergroup the bot belongs to, including when the bot itself is added.

TriggerInstant

Get Link Info

Tool to retrieve details of a specific short link from Dub. Use when you need to get comprehensive information about a link including its configuration, targeting settings, and performance metrics.

ActionInstant

Get Links

Tool to retrieve a paginated list of links for the authenticated workspace. Use when you need to list links with optional filtering by domain, tags, folder, search terms, or user. Supports pagination and sorting for efficient retrieval of large link collections.

ActionInstant

Connect any two apps with Notis in the middle.

Telegram and Dub, 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 Dub.