mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6939] [Question]: Is this a Malevich square? #4591
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#4591
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Before submitting
@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:resolveScreenArt()(screens_art.go:67-92) reads the avatar withgetUserProfilePhotosand 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 withcolor.RGBA{R: 13, G: 15, B: 20, A: 255}, which is the near-black square you see.attachArt()(screen.go:163-175) marks every screenhasPhoto = 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).artRetryTTL = time.Minutewhen the bot has no avatar,artAvatarTTL = 10 * time.Minuteonce 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 inartFileID()and cleared inresetScreenArt(); nothing else ininternal/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.