Skip to content

Commit

Permalink
Merge pull request #5 from denis-k2/TgWalletURL
Browse files Browse the repository at this point in the history
Fix tg wallet url
  • Loading branch information
nessshon authored Aug 30, 2024
2 parents 133c902 + 4b4a3e9 commit ed54117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiogram_tonconnect/tonconnect/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async def _gateway_listener(self, bridge_incoming_message):
listener(wallet_message)

def _generate_tg_universal_url(self, universal_url: str, request: dict):
universal_url = universal_url.replace("attach=wallet", "startattach=")
universal_url = universal_url.replace("attach=wallet&mode=compact", "mode=compact&startattach=")
link = self._generate_regular_universal_url('about:blank', request)
link_params = link.split('?')[1]

Expand Down

0 comments on commit ed54117

Please sign in to comment.