UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

24 lines (23 loc) • 8.08 kB
import { S as parseStrictInteger } from "../../number-coercion-CkhMiRw8.mjs"; import { a as mergeTelegramAccountConfig, n as listTelegramAccountIds, o as resolveTelegramAccountConfig } from "../../account-selection-B6bGjjlD.mjs"; import { i as resolveTelegramAccount, n as listEnabledTelegramAccounts, o as resolveTelegramMediaRuntimeOptions, r as resolveDefaultTelegramAccountId, s as resolveTelegramPollActionGateState, t as createTelegramActionGate } from "../../accounts-mcRXvset.mjs"; import { n as isNumericTelegramUserId, r as normalizeTelegramAllowFromEntry, t as isNumericTelegramSenderUserId } from "../../allow-from-Byf7JKVc.mjs"; import { r as inspectTelegramAccount } from "../../account-inspect-B1n313WA.mjs"; import { a as isNumericTelegramChatId, d as stripTelegramInternalPrefixes, l as parseTelegramTarget, n as parseTelegramTopicConversation, o as normalizeTelegramChatId, s as normalizeTelegramLookupTarget, u as resolveTelegramTargetChatType } from "../../topic-conversation-S0gZB4iY.mjs"; import { a as fetchTelegramChatId, c as resolveTelegramAutoThreadId, i as resolveTelegramGroupToolPolicy, n as collectTelegramStatusIssues, o as lookupTelegramChatId, r as resolveTelegramGroupRequireMention, s as resolveTelegramChatLookupFetch, t as telegramPlugin } from "../../channel-CShBcoUy.mjs"; import { i as resolveTelegramInlineButtonsScopeFromCapabilities, n as resolveTelegramInlineButtonsConfigScope, r as resolveTelegramInlineButtonsScope, t as isTelegramInlineButtonsEnabled } from "../../inline-buttons-DQ0WsVMm.mjs"; import { a as shouldSuppressTelegramExecApprovalForwardingFallback, i as buildTelegramExecApprovalPendingPayload, t as probeTelegram } from "../../probe-D7boq63N.mjs"; import { t as resolveTelegramReactionLevel } from "../../reaction-level-y1dR63qy.mjs"; import { A as markdownToTelegramHtmlChunks, F as looksLikeTelegramTargetId, I as normalizeTelegramMessagingTarget, M as splitTelegramHtmlChunks, O as markdownToTelegramChunks, P as escapeTelegramHtml, k as markdownToTelegramHtml, t as TELEGRAM_TEXT_CHUNK_LIMIT } from "../../text-chunk-limit-plWH6e89.mjs"; import { a as isTelegramExecApprovalHandlerConfigured, c as resolveTelegramExecApprovalTarget, d as shouldSuppressLocalTelegramExecApprovalPrompt, i as isTelegramExecApprovalClientEnabled, l as shouldHandleTelegramExecApprovalRequest, n as isTelegramExecApprovalApprover, o as isTelegramExecApprovalTargetRecipient, r as isTelegramExecApprovalAuthorizedSender, s as resolveTelegramExecApprovalConfig, t as getTelegramExecApprovalApprovers, u as shouldInjectTelegramExecApprovalButtons } from "../../exec-approvals-CWfyTLvI.mjs"; import { C as resolveTelegramPreviewStreamMode, D as getTelegramTextParts, E as extractTelegramLocation, G as parseTelegramThreadId, N as normalizeForwardedContext, O as hasBotMention, S as withResolvedTelegramForumFlag, T as buildSenderName, W as parseTelegramReplyToMessageId, _ as resolveTelegramGroupAllowFromContext, b as resolveTelegramThreadSpec, c as buildTelegramThreadParams, d as extractTelegramForumFlag, g as resolveTelegramForumThreadId, h as resolveTelegramForumFlag, i as buildTelegramGroupPeerId, j as isBinaryContent, l as buildTypingThreadParams, n as buildGroupLabel, o as buildTelegramParentPeer, r as buildTelegramGroupFrom, s as buildTelegramRoutingTarget, u as describeReplyTarget, w as buildSenderLabel } from "../../helpers-ODclOX0q.mjs"; import { c as buildModelSelectionCallbackData, d as calculateTotalPages, f as getModelsPageSize, h as resolveModelSelection, l as buildModelsKeyboard, o as buildTelegramModelsProviderChannelData, p as parseModelCallbackData, s as buildBrowseProvidersButton, t as buildCommandsPaginationKeyboard, u as buildProviderKeyboard } from "../../command-ui-lyJs14hh.mjs"; import { t as telegramSetupPlugin } from "../../channel.setup-ClDESK5Z.mjs"; import { o as resolveTelegramDirectPeerId } from "../../conversation-route-tPTwqTo1.mjs"; import { n as listTelegramDirectoryPeersFromConfig, t as listTelegramDirectoryGroupsFromConfig } from "../../directory-config-BDSOwBCs.mjs"; import { i as writeTelegramUpdateOffset, r as readTelegramUpdateOffset, t as deleteTelegramUpdateOffset } from "../../update-offset-store-BNbhwLcl.mjs"; import { n as sendTelegramPayloadMessages, r as telegramOutbound } from "../../outbound-adapter-BR_PxB2g.mjs"; import { t as collectTelegramSecurityAuditFindings } from "../../security-audit-CRUa29Mc.mjs"; import { i as resolveTelegramCustomCommands, n as normalizeTelegramCommandDescription, r as normalizeTelegramCommandName, t as TELEGRAM_COMMAND_NAME_PATTERN } from "../../command-config-DxRRTtvn.mjs"; import { a as getCachedSticker, i as getCacheStats, n as cacheSticker, o as searchStickers, r as getAllCachedStickers, t as describeStickerImage } from "../../sticker-cache-TVIjmoUh.mjs"; export { TELEGRAM_COMMAND_NAME_PATTERN, TELEGRAM_TEXT_CHUNK_LIMIT, buildBrowseProvidersButton, buildCommandsPaginationKeyboard, buildGroupLabel, buildModelSelectionCallbackData, buildModelsKeyboard, buildProviderKeyboard, buildSenderLabel, buildSenderName, buildTelegramExecApprovalPendingPayload, buildTelegramGroupFrom, buildTelegramGroupPeerId, buildTelegramModelsProviderChannelData, buildTelegramParentPeer, buildTelegramRoutingTarget, buildTelegramThreadParams, buildTypingThreadParams, cacheSticker, calculateTotalPages, collectTelegramSecurityAuditFindings, collectTelegramStatusIssues, createTelegramActionGate, deleteTelegramUpdateOffset, describeReplyTarget, describeStickerImage, escapeTelegramHtml, extractTelegramForumFlag, extractTelegramLocation, fetchTelegramChatId, getAllCachedStickers, getCacheStats, getCachedSticker, getModelsPageSize, getTelegramExecApprovalApprovers, getTelegramTextParts, hasBotMention, inspectTelegramAccount, isBinaryContent, isNumericTelegramChatId, isNumericTelegramSenderUserId, isNumericTelegramUserId, isTelegramExecApprovalApprover, isTelegramExecApprovalAuthorizedSender, isTelegramExecApprovalClientEnabled, isTelegramExecApprovalHandlerConfigured, isTelegramExecApprovalTargetRecipient, isTelegramInlineButtonsEnabled, listEnabledTelegramAccounts, listTelegramAccountIds, listTelegramDirectoryGroupsFromConfig, listTelegramDirectoryPeersFromConfig, looksLikeTelegramTargetId, lookupTelegramChatId, markdownToTelegramChunks, markdownToTelegramHtml, markdownToTelegramHtmlChunks, mergeTelegramAccountConfig, normalizeForwardedContext, normalizeTelegramAllowFromEntry, normalizeTelegramChatId, normalizeTelegramCommandDescription, normalizeTelegramCommandName, normalizeTelegramLookupTarget, normalizeTelegramMessagingTarget, parseStrictInteger as normalizeTelegramReplyToMessageId, parseStrictInteger as resolveTelegramReplyId, parseModelCallbackData, parseTelegramReplyToMessageId, parseTelegramTarget, parseTelegramThreadId, parseTelegramTopicConversation, probeTelegram, readTelegramUpdateOffset, resolveDefaultTelegramAccountId, resolveModelSelection, resolveTelegramAccount, resolveTelegramAccountConfig, resolveTelegramAutoThreadId, resolveTelegramChatLookupFetch, resolveTelegramCustomCommands, resolveTelegramDirectPeerId, resolveTelegramExecApprovalConfig, resolveTelegramExecApprovalTarget, resolveTelegramForumFlag, resolveTelegramForumThreadId, resolveTelegramGroupAllowFromContext, resolveTelegramGroupRequireMention, resolveTelegramGroupToolPolicy, resolveTelegramInlineButtonsConfigScope, resolveTelegramInlineButtonsScope, resolveTelegramInlineButtonsScopeFromCapabilities, resolveTelegramMediaRuntimeOptions, resolveTelegramPollActionGateState, resolveTelegramReactionLevel, resolveTelegramPreviewStreamMode as resolveTelegramStreamMode, resolveTelegramTargetChatType, resolveTelegramThreadSpec, searchStickers, sendTelegramPayloadMessages, shouldHandleTelegramExecApprovalRequest, shouldInjectTelegramExecApprovalButtons, shouldSuppressLocalTelegramExecApprovalPrompt, shouldSuppressTelegramExecApprovalForwardingFallback, splitTelegramHtmlChunks, stripTelegramInternalPrefixes, telegramOutbound, telegramPlugin, telegramSetupPlugin, withResolvedTelegramForumFlag, writeTelegramUpdateOffset };