Get RefID from a Startlink in Telegrambot

(Patrick) #1

Hello community, surely a stupid question. How can I read the ID of an invitationlink?

Format: https://t.me/ThisIsMyBot?start=THISISWHATINEED

I would like to read this value (THISISWHATINEED) and then process it further.

(Daniel Beckett) #2

Hi Patrick,

Unfortunately I don’t believe that Telegram has any support for referral links which can be detected as metadata in a flow. You could do this through Facebook Messenger which has m.me links that you can stick ref parameters onto. Please see our docs on creating a Facebook Messenger bot for more details.

Thanks,
Dan

(Patrick) #3

this is sad… ok, thx!

(Артём Морозов) #4

Now does this function work?

(Karen Barker) #5

Hi there,

Unfortunately no we don’t support refid’s in telegram. The only ref-id that is supported would be if you wanted to install the bot into a telegram group, at which point you can use the link:

https://telegram.me/your_bot_name?startgroup=1

(Joe Thong) #6

I think this could be done with deeplinking feature of telegram bot

(Zara) #7

Hi, everyone!

Have anything changed with referral?

(Daniel Beckett) #8

Hi @Zara,

I’m sorry but refid’s for Telegram are still not supported in Flow XO.

(Nikita) #9

Any changes?
Really need this

1 Like
(ayo) #10

Hi,

Please what is the use-case for this. Just wondering.

Thanks.

(Vladimir) #11

my bot also needs an affiliate program, but it’s impossible to do it directly through the link. But, you can make a referral program for a promotional code.

(Nathan Stults) #12

You can use deep linking in Flow XO now. If you use ?start=xyz in your links, Flow XO will be sent the message ‘/start xyz’

What you need to do is catch that with a Catch-All trigger that is filtered to ‘message contains /start’

Then you could use a code block to split out the payload, or the ‘xyz’ portion.

Nathan