Skip to content

fix(telegram): bump MAX_COMMANDS_PER_SCOPE from 30 to 75 - #49017

Closed
eltecnicowd wants to merge 1 commit into
NousResearch:mainfrom
eltecnicowd:fix/telegram-max-commands
Closed

fix(telegram): bump MAX_COMMANDS_PER_SCOPE from 30 to 75#49017
eltecnicowd wants to merge 1 commit into
NousResearch:mainfrom
eltecnicowd:fix/telegram-max-commands

Conversation

@eltecnicowd

Copy link
Copy Markdown

At 30, the BotCommand menu fills up with core commands and nothing else fits. Skills that register slash commands (like /buy, /kb, /micro) never show up in the Telegram menu because all 30 slots are taken by built-ins.

75 is enough breathing room for all built-in + plugin commands plus skill-derived ones. Still well within Telegram's own limit of 100.

@alt-glitch alt-glitch added type/bug Something isn't working comp/gateway Gateway runner, session dispatch, delivery platform/telegram Telegram bot adapter P3 Low — cosmetic, nice to have duplicate This issue or pull request already exists labels Jun 19, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #33484 — both bump the hardcoded MAX_COMMANDS_PER_SCOPE constant in gateway/platforms/telegram.py to fix #33480 (#33484 raises it to 100, this PR to 75). Same site, same one-line constant-bump mechanism, just a different magnitude; #33484 (open, May 27) is the earlier submission. Related: #34147 and the configurable-cap cluster (#42021, #43162, #48903), which take the different approach of making the cap configurable rather than hardcoding a higher value.

@eltecnicowd

Copy link
Copy Markdown
Author

Right — #33484 got there first with the same fix (30→100 vs our 30→75). And #48903 (configurable per-scope limit) is the better long-term approach anyway. Closing this in favor of those.

Note for reviewers: #33484's cap at 100 has a lower risk of hitting Telegram's 100 limit and matches the pattern in the earlier discussion.

@eltecnicowd

Copy link
Copy Markdown
Author

Closing as duplicate of #33484.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery duplicate This issue or pull request already exists P3 Low — cosmetic, nice to have platform/telegram Telegram bot adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants