Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
382 B
Raw Blame
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 } : {}),
  }
}