Skip to content

Added support of "startapp" deep links with "appname" param#1651

Merged
JrooTJunior merged 8 commits intoaiogram:dev-3.xfrom
welaskez:dev-3.x
Mar 10, 2025
Merged

Added support of "startapp" deep links with "appname" param#1651
JrooTJunior merged 8 commits intoaiogram:dev-3.xfrom
welaskez:dev-3.x

Conversation

@welaskez
Copy link
Contributor

@welaskez welaskez commented Mar 9, 2025

Description

Added support deep links to open Mini Apps

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

from aiogram.utils.deep_linking import create_startapp_link

link = await create_startapp_link(bot, 'foo', app_name='bar')
# result: 'https://t.me/MyBot/bar?startapp=foo'

Test Configuration:

  • Operating System: MacOS Sequoia 15.3.1
  • Python version: 3.11

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@github-actions
Copy link

github-actions bot commented Mar 9, 2025

✔️ Changelog found.

Thank you for adding a description of the changes

@github-actions github-actions bot added the 3.x Issue or PR for stable 3.x version label Mar 9, 2025
@codecov
Copy link

codecov bot commented Mar 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (de240b6) to head (e00d6be).
Report is 2 commits behind head on dev-3.x.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           dev-3.x     #1651   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          511       511           
  Lines        12527     12530    +3     
=========================================
+ Hits         12527     12530    +3     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
aiogram/utils/deep_linking.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JrooTJunior JrooTJunior merged commit 925616f into aiogram:dev-3.x Mar 10, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x Issue or PR for stable 3.x version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants