Open moshaoli688 opened 2 years ago
Reproducible in Telegram Desktop 4.6.2 Linux
This issue is reproducible on 4.6.2
We have two groups. In the first group we have 5 bots with commands (let's say bot A, bot B, bot C, bot D and bot E), but tdesktop shows only commands from 4 of them. In the second group we have 7 bots: bot A and 6 another bots with commands. Tdesktop shows command from these 6 bots, but not for bot A. However, in the first group bot A commands are showing in the list.
Then we tried the following steps in the second group:
№ | Action | Result | Expected? |
---|---|---|---|
1 | Remove all bots | Commands from 6 bots are still exist in the list (list is not refreshing after removing bots) | ⛔ |
2 | Restart tdesktop | Empty commands list | ✅ |
3 | Add bot A | Bot A commands are showing | ✅ |
4 | Add 3 (of 6 kicked) bots to the group again | Commands from 3 bots are showing, but Bot A commands aren't | ⛔ |
Hey there!
This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.
Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.
Thanks!
Still not fixed
Hey there!
This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.
Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.
Thanks!
The issue is still present in 4.14.13
The issue is still present in 4.15 x64
The issue is still present in 5.4.1 x64
It depends on both the bot and the group. In other groups, the bot displays commands just fine. In the affected group, other bots show their commands just fine. Yet that specific bot in that specific group shows no commands.
I've run into this problem too. The same bot in some groups shows commands and in some groups it does not.
This problem seems to exist more on the desktop client, and the mobile client seems to be fine at present. So far, the bot command in my windows client cannot be fully displayed.
I too have the mobile client showing without problems, but the desktop client has problems.
Telegram Desktop 5.4.1 x64 for Windows
I can confirm this issue.
Desktop version 5.6.1 still has issue
I have debugged this up to this point:
ChatData::setBotCommands
https://github.com/telegramdesktop/tdesktop/blob/53abd2fe38484433f0394ea3c811457a0cb4306c/Telegram/SourceFiles/data/data_chat.cpp#L265-L269; the number of commands in the vector is correct.ChatBotCommands::update
, the vector also has the right number of commands, and we copy them to value
: https://github.com/telegramdesktop/tdesktop/blob/53abd2fe38484433f0394ea3c811457a0cb4306c/Telegram/SourceFiles/data/data_peer_bot_commands.cpp#L19-L25commands
, but it is empty (contains 0 commands).Seems like it could be a bug buried deep inside the base libraries, more specifically flat_map
, which does not work correctly when there are collisions of some kind.
Why aren't Bot commands displayed in my group?? It is normal for the same bots to be added to other groups. However, the BOT commands never show up properly in my group。 However, using the third party client UNIGRAM can display the command of BOT in my group normally. Mobile APP can also display BOT commands normally. But official Telegram customers cannot display bot commands.
bot id: @FFQMiaokoBot @FFQAntiChannelSpamBot @MissRose_bot @ffqMiaoBot telegram: unigram: