td icon indicating copy to clipboard operation
td copied to clipboard

Splashscreen validator is broken

Open Whynot63 opened this issue 1 year ago • 2 comments

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?

Whynot63 avatar Dec 12 '24 04:12 Whynot63

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

levlam avatar Dec 12 '24 07:12 levlam

'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.

levlam avatar Dec 16 '24 20:12 levlam