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().
This commit is contained in:
parent
06289b36da
commit
7dc5c1861d
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user