From 7dc5c1861d02739cade364ff6941e69a74b30b94 Mon Sep 17 00:00:00 2001 From: serhii12 Date: Thu, 29 Jan 2026 15:44:14 -0100 Subject: [PATCH] fix(telegram): add missing Provider field in native commands context Native commands like /elevated were failing with 'provider (ctx.Provider)' gate error because the context object was missing the Provider field. The context already set Surface and OriginatingChannel to 'telegram' but not Provider, which is required by resolveElevatedPermissions(). --- src/telegram/bot-native-commands.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/telegram/bot-native-commands.ts b/src/telegram/bot-native-commands.ts index 59f109a1f..1a36f3d72 100644 --- a/src/telegram/bot-native-commands.ts +++ b/src/telegram/bot-native-commands.ts @@ -463,6 +463,7 @@ export const registerTelegramNativeCommands = ({ SenderName: buildSenderName(msg), SenderId: senderId || undefined, SenderUsername: senderUsername || undefined, + Provider: "telegram", Surface: "telegram", MessageSid: String(msg.message_id), Timestamp: msg.date ? msg.date * 1000 : undefined,