谁在电报中点击我的深层链接?

who are click on my Deep Links in telegram?

我正在创建一个用于吸收 members.The 机器人的机器人,其行为如下: 我向我的 bot 用户发送一个唯一的 link,然后用户将自己的唯一 link 发送到 other.by,这样其他人就会吸收到我的 bot。 我为机器人创建了一个 Deep Link,现在我想知道谁在点击自己的 Deep Link。

根据Telegram Documentation

当有人使用 /start 命令加入 bot 时,如果任何其他参数传递给 bot-link,您会收到以下形式的消息:

/start PAYLOAD

其中PAYLOAD代表在link中传递的start参数的值。

例如在 telepot 库中:

def handle(msg):
    content_type, chat_type, chat_id = telepot.glance(msg)

    if content_type == 'text':
        text = msg['text']
        print('Text:', text)

        if text.startswith('/start'):
            try:
                command, payload = text.split(' ')
                print('Payload:', payload)
                print('chat_id:', chat_id)