Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
import type { ProviderTargetIdentity } from '../types'
export function withTelegramBotIdentity(
target: ProviderTargetIdentity,
botId: number | null,
botUsernameLower: string
): ProviderTargetIdentity {
return {
...target,
...(botId != null ? { providerBotId: String(botId) } : {}),
...(botUsernameLower ? { providerBotUsername: botUsernameLower } : {}),
}
}