mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-30 16:30:33 +00:00
refactor: simplify telegram command config
This commit is contained in:
@@ -44,7 +44,7 @@ function resolveTelegramCustomCommandsImpl(params: {
|
||||
|
||||
for (let index = 0; index < entries.length; index += 1) {
|
||||
const entry = entries[index];
|
||||
const normalized = normalizeTelegramCommandNameImpl(String(entry?.command ?? ""));
|
||||
const normalized = normalizeTelegramCommandNameImpl(entry?.command ?? "");
|
||||
if (!normalized) {
|
||||
issues.push({
|
||||
index,
|
||||
@@ -77,7 +77,7 @@ function resolveTelegramCustomCommandsImpl(params: {
|
||||
});
|
||||
continue;
|
||||
}
|
||||
const description = normalizeTelegramCommandDescriptionImpl(String(entry?.description ?? ""));
|
||||
const description = normalizeTelegramCommandDescriptionImpl(entry?.description ?? "");
|
||||
if (!description) {
|
||||
issues.push({
|
||||
index,
|
||||
|
||||
Reference in New Issue
Block a user