Learn how to automate sending Telegram group invitations after successful Razorpay payments using Pabbly Connect in this detailed tutorial. Learn to create powerful connections between your critical applications without requiring specialized programming knowledge or extensive technical background.

Watch Step By Step Video Tutorial Below


1. Accessing Pabbly Connect for Automation

To automate sending a Telegram group invitation link after a successful Razorpay payment, you will first need to access Pabbly Connect. Start by visiting the Pabbly Connect landing page and signing in as an existing user. If you are new, click on the ‘Sign Up for Free’ button to create an account, which will give you 100 free tasks each month.

Once logged in, navigate to the ‘All Applications’ page and select Pabbly Connect. Click on the ‘Access Now’ button to reach your dashboard where you can create a new workflow for your integration.


2. Creating a New Workflow in Pabbly Connect

In this section, you will learn how to create a new workflow in Pabbly Connect. On your dashboard, locate the ‘Create Workflow’ button in the top right corner. Click it and give your workflow a name, such as ‘Send Chat Invitation Link for Razorpay Payments’.

  • Click on the folder icon to save your workflow in a specific folder, like ‘Telegram’.
  • After naming and selecting the folder, click on ‘Create’ to proceed.

Now you will be directed to a window where you can set up your trigger and action. The trigger application will be Razorpay, and the action applications will be Telegram and Gmail. This setup will allow you to automate the sending of the invitation link once a payment is captured.


3. Setting Up Trigger and Action Applications

In this step, you will configure the trigger and action applications in Pabbly Connect. Select Razorpay as your trigger application and choose the trigger event as ‘Payment Captured’. This means the workflow will initiate whenever a payment status is changed to captured.

Next, you will set up the action applications. Search for Telegram and select the action event ‘Create Chat Invite Link’. After this, add another action step and select Gmail, with the action event set to ‘Send Email’. This configuration will ensure that the Telegram group invitation link is sent via Gmail after a successful payment.


4. Connecting Razorpay to Pabbly Connect

To connect Razorpay to Pabbly Connect, you will need to set up a webhook. In the Razorpay account, go to ‘Account Settings’ and then select ‘Webhooks’. Here, you will add a new webhook using the URL provided by Pabbly Connect.

  • Copy the webhook URL from Pabbly Connect.
  • In Razorpay, paste the webhook URL in the Webhook URL section.
  • Select the event ‘Payment Captured’ and click ‘Create Webhook’.

Once the webhook is saved, return to Pabbly Connect. The platform will now wait for a webhook response, which will occur once a payment is made. To test this, proceed to make a dummy payment through Razorpay.


5. Finalizing the Integration and Sending Emails

After successfully testing the payment, you need to finalize the integration in Pabbly Connect. This involves creating the chat invite link in Telegram and sending it via Gmail. First, establish the connection to your Telegram bot by using the BotFather to create a new bot and obtain the token.

Once you have the token, paste it into Pabbly Connect to connect your Telegram bot. Next, map the chat ID of your group and set the expiry date for the invite link. Finally, connect Gmail and configure the email details, including the recipient’s email and the content of the email containing the invite link.

After mapping all necessary fields, click on ‘Save and Send Test Request’. This will send the email with the Telegram group invitation link to the user who made the payment. You can verify this by checking the user’s email for the invitation link.


Conclusion

This tutorial has detailed how to use Pabbly Connect to automate sending Telegram group invitations after successful Razorpay payments. By following these steps, you can streamline your workflow and enhance user engagement effectively.

Ensure you check out Pabbly Connect to create business automation workflows and reduce manual tasks. Pabbly Connect currently offer integration with 2,000+ applications.