• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

Telegram automatically user invite with Wordpress

Coppenst

Member
Hello. I have a question. Let me explain my Task:

I want to integrate my telegram group to the WordPress website like whenever anyone signup for membership on the WordPress website he should be added to the telegram group automatically, and when his membership will expire or he cancels his membership he should be removed from the group.


I saw there is an integration to a Telegram Bot. But i didnt found any direct MSG event to Telegram Users. Is there any way to solve my task?

Thank you!
 

Supreme

Well-known member
Staff member
Hey @Coppenst

I want to integrate my telegram group to the WordPress website like whenever anyone signup for membership on the WordPress website he should be added to the telegram group automatically

Regarding your use case, Telegram doesn't offer any action event to add a Chat Member to any group. So above mentioned use case is not possible.

when his membership will expire or he cancels his membership he should be removed from the group.

And WordPress does not offer any trigger event which can fetch the details of a User's membership.
 

Coppenst

Member
Hey @Coppenst



Regarding your use case, Telegram doesn't offer any action event to add a Chat Member to any group. So above mentioned use case is not possible.



And WordPress does not offer any trigger event which can fetch the details of a User's membership.

Thank you for your answers.

Okay, what would it look like if I requested the user IDs of each Telegram user in WP Forms from users via. a Webhook (Wordpress) ? And e.g. have the ID and lets automatically safe it into a Google Sheet. Could I then have the possibility that the Telegram Bot use the ID from the Sheet and send a private text message with a link (invitation to the group) to a user?
 

Supreme

Well-known member
Staff member
Hey @Coppenst

You can give it a try in your workflow bypassing the test submission. The desired workflow will somehow look like the following screenshot.

Kindly give it a try and let us know if you get stuck at any step.


2022-04-16_12h33_39.png
 

Coppenst

Member
Hey. Let me show you my way for now: First step. I used a telegram Field where the user have to type in his Telegram ID.
That worked
1650106216752.png


Step 2:

Trying to save the Telegram ID into the Google Sheet ( Name + ID ). Seems that worked properly.

1650106386335.png


Step 3 :

Take a look into the Sheet to get a look into the saved ID from the User

1650106458006.png


Step 4:

Used the Chat ID from the Lookup Event.
1650106531880.png



And what should i say. It worked😎👍 The Bot sended a Text to this user ID.

1650106946197.png



Now. My question. What happend if a new user register. Does it add a new ID automaticlly to a new row? If not, what should change?
 

Attachments

  • 1650106318012.png
    1650106318012.png
    48.9 KB · Views: 58

Supreme

Well-known member
Staff member
Hey @Coppenst

Now. My question. What happend if a new user register. Does it add a new ID automaticlly to a new row? If not, what should change?

In your worklfow, you can remove the " Lookup Spreadsheet Rows" action step, since you are already getting the Telegram Id from your WordPress form.

Also, use the "Google Sheets: Add New Row " action step instead of the "Update Row" action step, where you are only trying to add the data to your Google Sheet.

Kindly makes the changes in your account and give it a try.
 
Top