[GH-ISSUE #6939] [Question]: Is this a Malevich square? #4591

Closed
opened 2026-10-31 20:40:44 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @MURKA05-gigant on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6939

What are you trying to do?

After the update, I tried to restart the Telegram bot, and a black square appeared with information about the panel.

What is this square black picture for?

What have you already tried?

No response

3x-ui version

3.11.0

How did you install 3x-ui?

install.sh script

Operating system

Ububntu 26.04.1

Screenshots or config snippets

Image

Before submitting

  • I read the Wiki and searched existing issues.
  • This is a usage question, not a bug report.
  • This question is written in English.
Originally created by @MURKA05-gigant on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6939 ### What are you trying to do? After the update, I tried to restart the Telegram bot, and a black square appeared with information about the panel. What is this square black picture for? ### What have you already tried? _No response_ ### 3x-ui version 3.11.0 ### How did you install 3x-ui? install.sh script ### Operating system Ububntu 26.04.1 ### Screenshots or config snippets <img width="888" height="1374" alt="Image" src="https://github.com/user-attachments/assets/2aa9f85e-d4dc-4f3e-a80b-2e6c6e64328e" /> ### Before submitting - [x] I read the [Wiki](https://github.com/MHSanaei/3x-ui/wiki) and searched [existing issues](../issues?q=is%3Aissue). - [x] This is a usage question, not a bug report. - [x] This question is written in English.
bsakaguchi 2026-10-31 20:40:44 +07:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@github-actions[bot] commented on GitHub (Oct 26, 2026):

The black square is intended. In 3.11.0 every Telegram bot screen is sent as a photo message, with the panel info as the caption. The picture is the bot's own profile avatar, and a bot with no avatar gets a generated dark tile in its place. To replace the square with a real picture, give your bot an avatar in @BotFather (/setuserpic, or Edit Bot → Edit Botpic). You don't need to restart the panel: the bot checks for an avatar again about once a minute while it has none, and the next screen it sends uses the avatar.

I can't open images, so I worked from your description and not from the screenshot.

How it works in the source:

  • internal/web/service/tgbot/screens_art.go:20-21, the file's own comment:
    // Screen art: the bot's avatar serves every screen's picture, and a panel without
    // one gets a generated black tile, so a screen never fails for want of a picture.
    
  • resolveScreenArt() (screens_art.go:67-92) reads the avatar with getUserProfilePhotos and uses it for every screen kind. When the bot has no photo it logs "Bot has no avatar; screens will use the black fallback" (line 82).
  • blackTile() (screens_art.go:137-149) builds that fallback: a 512×512 PNG filled with color.RGBA{R: 13, G: 15, B: 20, A: 255}, which is the near-black square you see.
  • attachArt() (screen.go:163-175) marks every screen hasPhoto = true, so screens are always photo messages ("so a screen is always a photo message and edits can go through media"). replaceScreen() uploads the tile when no avatar file_id is cached (screen.go:263-271).
  • Re-check interval: artRetryTTL = time.Minute when the bot has no avatar, artAvatarTTL = 10 * time.Minute once it has one (screens_art.go:42-45). That's why a new avatar shows up without a restart.

The panel has no setting to choose a different picture or to turn the picture off. artOverrides (screens_art.go:28) is only read in artFileID() and cleared in resetScreenArt(); nothing else in internal/ writes to it. So the BotFather avatar is the only way to change the image.

The question is answered, so I'm closing it. Comment if the square is still there after you set an avatar.

Verdict: Not a bug (expected behaviour)

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:6405293769 --> @github-actions[bot] commented on GitHub (Oct 26, 2026): The black square is intended. In 3.11.0 every Telegram bot screen is sent as a photo message, with the panel info as the caption. The picture is the **bot's own profile avatar**, and a bot with no avatar gets a generated dark tile in its place. To replace the square with a real picture, give your bot an avatar in **@BotFather** (`/setuserpic`, or *Edit Bot → Edit Botpic*). You don't need to restart the panel: the bot checks for an avatar again about once a minute while it has none, and the next screen it sends uses the avatar. I can't open images, so I worked from your description and not from the screenshot. How it works in the source: - `internal/web/service/tgbot/screens_art.go:20-21`, the file's own comment: ```go // Screen art: the bot's avatar serves every screen's picture, and a panel without // one gets a generated black tile, so a screen never fails for want of a picture. ``` - `resolveScreenArt()` (`screens_art.go:67-92`) reads the avatar with `getUserProfilePhotos` and uses it for every screen kind. When the bot has no photo it logs `"Bot has no avatar; screens will use the black fallback"` (line 82). - `blackTile()` (`screens_art.go:137-149`) builds that fallback: a 512×512 PNG filled with `color.RGBA{R: 13, G: 15, B: 20, A: 255}`, which is the near-black square you see. - `attachArt()` (`screen.go:163-175`) marks every screen `hasPhoto = true`, so screens are always photo messages ("so a screen is always a photo message and edits can go through media"). `replaceScreen()` uploads the tile when no avatar file_id is cached (`screen.go:263-271`). - Re-check interval: `artRetryTTL = time.Minute` when the bot has no avatar, `artAvatarTTL = 10 * time.Minute` once it has one (`screens_art.go:42-45`). That's why a new avatar shows up without a restart. The panel has no setting to choose a different picture or to turn the picture off. `artOverrides` (`screens_art.go:28`) is only read in `artFileID()` and cleared in `resetScreenArt()`; nothing else in `internal/` writes to it. So the BotFather avatar is the only way to change the image. The question is answered, so I'm closing it. Comment if the square is still there after you set an avatar. Verdict: Not a bug (expected behaviour) *This reply was generated automatically; a maintainer may follow up.* <!-- claude-issue:analyst -->
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#4591
No description provided.