/** * Telegram Routing Integration * * Integrates Telegram channel with the new session routing system. * Provides session key generation with routing context. */ import type { Context } from 'grammy'; import type { Config } from '@xopcai/xopc/config/schema.js'; export interface TelegramRoutingContext { accountId: string; chatId: string; senderId: string; senderUsername?: string; isGroup: boolean; threadId?: string; guildId?: string; memberRoleIds?: string[]; /** * Channel type for identity links. * @default 'telegram' */ channel?: string; } /** * Generate session key with routing integration */ export declare function generateSessionKeyWithRouting(ctx: TelegramRoutingContext, config: Config): string; /** * Extract member role IDs from Telegram chat member * (Currently returns empty array as Telegram doesn't have direct role mapping) */ export declare function extractMemberRoleIds(ctx: Context): string[];