Is there a way to kick a Chat Member with Telegram Bot API on a Cancelled subscription on Stripe?

Hello,

I’m new at Pipedream :S My main question is how can I kick a user from a Telegram supergroup if he/she cancels their Stripe subscription? I haven’t been able to “connect” these as I need to target the userId on Telegram in order to remove it but not sure how can I get that info from Stripe to Telegram.

Thanks in advance!

Hi @hector,

For your usecase, when user subscribe I think you might need to store the data that link the Stripe user with the Telegram user in a storage (Pipedream datastore, an SQL database, Airtable, etc…). Then when that user unsubscribed from Stripe, uou can query that storage for their Telegram User ID

Hi @vunguyenhung , thanks for your response! My main concern is what data links a Stripe user with a Telegram one, do you know?

Hi @hector,

I imagine that when your user subscribe on Stripe, you will have a form for them to input their email and Telegram username in order to be invited to a Telegram channel. After the user submitted that form, you should store the information between their email and telegram username. So that when they unsubscribed, you’ll have their Stripe email, then you can find the telegram username