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

Splashscreen validator is broken #3180

Open
Whynot63 opened this issue Dec 12, 2024 · 3 comments
Open

Splashscreen validator is broken #3180

Whynot63 opened this issue Dec 12, 2024 · 3 comments

Comments

@Whynot63
Copy link

Hi! I want to set custom splash screen for TMA, using feature, that announced here: https://telegram.org/blog/fullscreen-miniapps-and-more#loading-screen-customization

Here is my svg:

<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
  <path d="M2,2 L8,2 L2,5 L8,5 L2,8 L8,8"/>
</svg>

I just took official example from BotFather and replaced path in svg (its correct path from here - https://svg-path-visualizer.netlify.app/#M2%2C2%20L8%2C2%20L2%2C5%20L8%2C5%20L2%2C8%20L8%2C8)

But BotFather refuses it:
Screenshot 2024-12-12 at 10 56 37

What I do wrong?

@levlam
Copy link
Contributor

levlam commented Dec 12, 2024

Your path isn't closed, but it must be. Have you tried to add z command at the end?

@Whynot63
Copy link
Author

And what about this image? Its correct closed path - path visualizer

logo

@levlam
Copy link
Contributor

levlam commented Dec 16, 2024

'a'/'A', 't'/'T' and 'q'/'Q' commands are not allowed in the path.

Additionally, the SVG is too big and will not fit anyway, even the 'a' commands are removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants