Instant Voucher Code Verification in Telegram
Customer says 'Is code XYZ123 valid?' Tap a button and Notis checks Piggy instantly, showing status and remaining uses. No manual verification, no confusion.
Trigger
Callback Query Received
Triggered when a user taps an inline keyboard button attached to one of your bot's messages.
Action
Find Voucher By Code
Tool to find a voucher by its unique code. Use when you need to retrieve voucher details, check redemption status, or validate a voucher code.
Why this helps
Without quick verification, customers wonder if codes are legit, or founders waste time looking up codes instead of focusing on business.
- Customers get instant code validation without waiting
- Prevents invalid or expired code redemptions
- Eliminates manual founder lookups
Setup
Build it in a few focused steps.
- 1Connect Telegram and Piggy to Notis
- 2Create an automation named 'Validate voucher codes' with this instruction: 'When a customer asks if a voucher code is valid or taps a validation button, check Piggy and reply with the code status, uses remaining, and expiration date'
- 3Select the trigger: Callback Query Received in Telegram
- 4Add a 'Validate code' button to your messages (Notis provides the template)
- 5Test by having someone tap the button with a known voucher code
Questions about this workflow
What if the code doesn't exist?
Notis will reply that the code isn't found and suggest they check spelling or contact support.
Can I show redemption history for the code?
Yes. Specify in your instruction 'show how many times it's been used and who used it' if you want that level of detail.
Does this prevent redemption or just show the status?
This is verification only. It shows status and details but doesn't redeem. You handle redemption separately based on the validation.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Telegram to Piggy. A trigger fires from one place; an action lands in another.
Telegram triggers
Piggy actions
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.
Claim Anonymous Contact
Tool to claim an anonymous contact by associating it with a real email address. Use when converting an anonymous contact (with a fictional email) into a verified contact with a real email address.
New Channel Post
Triggered when a new post is published to a channel where your bot is an administrator.
Create Contact Attribute
Tool to create a custom Contact Attribute. Use when you need to define new fields for contacts after initial setup.
Callback Query Received
Triggered when a user taps an inline keyboard button attached to one of your bot's messages.
Create Credit Reception
Tool to create a credit reception for a contact. Use when awarding credits to customers based on purchases or fixed amounts.
Message Edited
Triggered when a message in a chat your bot can see is edited by its sender.
Create Vouchers Batch
Tool to create a batch of vouchers for a promotion. Use when you need to generate multiple vouchers at once for a specific promotion. Batch processing is asynchronous and returns a PENDING status initially.
New Chat Member
Triggered when a new member joins a group or supergroup the bot belongs to, including when the bot itself is added.
Find or Create Products
Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.
Find Voucher By Code
Tool to find a voucher by its unique code. Use when you need to retrieve voucher details, check redemption status, or validate a voucher code.
Get Contact Auth Token
Tool to get an auth token for a Contact. Use after obtaining a Contact UUID and needing to verify identity for secure operations.
Get Contact's Credit Balance
Tool to get a Contact's credit balance. Use when you need to check a contact's current credit balance before processing rewards or promotions.
Connect any two apps with Notis in the middle.
Not just Telegram and Piggy. Any combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7 days free trial with 20$ free usage included.
No card. Works with personal or business Piggy.