Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function or method for deep linking #238

Closed
evgfilim1 opened this issue Nov 22, 2019 · 0 comments · Fixed by #241
Closed

Add function or method for deep linking #238

evgfilim1 opened this issue Nov 22, 2019 · 0 comments · Fixed by #241
Assignees
Labels
new feature Missing feature
Milestone

Comments

@evgfilim1
Copy link
Contributor

evgfilim1 commented Nov 22, 2019

Is your feature request related to a problem? Please describe.
Would be nice to have a function or method for deep linking as we already have CommandStart filter that can catch such commands easily.

Describe the solution you'd like
Something like

await bot.deeplink('aiogram')

will return 'https://t.me/bot?start=aiogram'

Name of the method and its location is a subject of discussion.

Describe alternatives you've considered
For now I have to write my own function like this:

async def deeplink(arg):
    return f'https://t.me/{(await Bot.get_current().me).username}?start={arg}'
@Olegt0rr Olegt0rr self-assigned this Nov 23, 2019
@Olegt0rr Olegt0rr added the new feature Missing feature label Nov 23, 2019
Olegt0rr added a commit that referenced this issue Nov 23, 2019
@Olegt0rr Olegt0rr mentioned this issue Nov 23, 2019
3 tasks
Olegt0rr added a commit that referenced this issue Nov 23, 2019
@JrooTJunior JrooTJunior added this to the 2.5 milestone Nov 25, 2019
Olegt0rr added a commit that referenced this issue Nov 29, 2019
Olegt0rr added a commit that referenced this issue Nov 29, 2019
Olegt0rr added a commit that referenced this issue Nov 29, 2019
Olegt0rr added a commit that referenced this issue Nov 29, 2019
Olegt0rr added a commit that referenced this issue Nov 29, 2019
JrooTJunior added a commit that referenced this issue Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Missing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants