# Telegram Deep Linking

MyLINK Connect Telegram channel fully supports the [Telegram Deep Linking](https://core.telegram.org/bots#deep-linking) link format. This enables your chatbot to automatically present your user with different informations depending on a specific keyword added to your chat link.

## Building the chat link

A standard Telegram chat link would look something like this:

```
http://t.me/<BOT_NAME>
```

Where \<BOT\_NAME> is the name of your page. To build a referral link, you just add the referral parameter at the end of the link like this:

```
http://t.me/<BOT_NAME>?start=<REF_PARAM>
```

The \<REF\_PARAM> value can be any single word without blank spaces, and it is going to be the value your bot will be looking for.

## Checking for a referral

Inside your chatbot, the referral value will be available in a variable named *referral*. Inside your chatbot startup flow, you can use the referral value to [differentiate the flow](/actions-and-operations/flow/xenioo.bots.actions.base.variableconditionaction.md) accordingly.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mylinkconnect.com/basic-concepts/publishing/channels/telegram/telegram-referral.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
