UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

24 lines (23 loc) • 8.09 kB
import { T as parseStrictInteger } from "../../number-coercion-D6u-4YD8.mjs"; import { a as mergeTelegramAccountConfig, n as listTelegramAccountIds, o as resolveTelegramAccountConfig } from "../../account-selection-CGYGB8bX.mjs"; import { i as resolveTelegramAccount, n as listEnabledTelegramAccounts, o as resolveTelegramMediaRuntimeOptions, r as resolveDefaultTelegramAccountId, s as resolveTelegramPollActionGateState, t as createTelegramActionGate } from "../../accounts-C26vVqsr.mjs"; import { n as isNumericTelegramUserId, r as normalizeTelegramAllowFromEntry, t as isNumericTelegramSenderUserId } from "../../allow-from-9eXjPa0a.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-CDf2PinB.mjs"; import { l as looksLikeTelegramTargetId, u as normalizeTelegramMessagingTarget } from "../../prompt-context-projection-CoqAV_fc.mjs"; import { A as hasBotMention, C as parseTelegramReplyToMessageId, D as buildSenderName, E as buildSenderLabel, M as isBinaryContent, O as extractTelegramLocation, P as normalizeForwardedContext, S as withResolvedTelegramForumFlag, T as resolveTelegramPreviewStreamMode, _ as resolveTelegramGroupAllowFromContext, b as resolveTelegramThreadSpec, c as buildTelegramThreadParams, d as extractTelegramForumFlag, g as resolveTelegramForumThreadId, h as resolveTelegramForumFlag, i as buildTelegramGroupPeerId, k as getTelegramTextParts, l as buildTypingThreadParams, n as buildGroupLabel, o as buildTelegramParentPeer, r as buildTelegramGroupFrom, s as buildTelegramRoutingTarget, u as describeReplyTarget, w as parseTelegramThreadId } from "../../helpers-CoGccTxe.mjs"; import { r as inspectTelegramAccount } from "../../account-inspect-C24-1-jt.mjs"; import { i as shouldSuppressTelegramExecApprovalForwardingFallback, r as buildTelegramExecApprovalPendingPayload, t as probeTelegram } from "../../probe-VYdCAZiU.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-BvJl0xDF.mjs"; import { i as resolveTelegramInlineButtonsScopeFromCapabilities, n as resolveTelegramInlineButtonsConfigScope, r as resolveTelegramInlineButtonsScope, t as isTelegramInlineButtonsEnabled } from "../../inline-buttons-uex3aS7P.mjs"; import { t as resolveTelegramReactionLevel } from "../../reaction-level-Bqy9u5yv.mjs"; import { E as escapeTelegramHtml, S as markdownToTelegramHtmlChunks, b as markdownToTelegramChunks, t as TELEGRAM_TEXT_CHUNK_LIMIT, w as splitTelegramHtmlChunks, x as markdownToTelegramHtml } from "../../text-chunk-limit-DTiKmKhG.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-Crn--YHh.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-CY93vhxr.mjs"; import { t as telegramSetupPlugin } from "../../channel.setup-p38JB_yC.mjs"; import { f as resolveTelegramDirectPeerId, n as sendTelegramPayloadMessages, r as telegramOutbound } from "../../outbound-adapter-xqQwShsd.mjs"; import { n as listTelegramDirectoryPeersFromConfig, t as listTelegramDirectoryGroupsFromConfig } from "../../directory-config-C1O3xIq5.mjs"; import { i as writeTelegramUpdateOffset, r as readTelegramUpdateOffset, t as deleteTelegramUpdateOffset } from "../../update-offset-store-tafGmsJL.mjs"; import { t as collectTelegramSecurityAuditFindings } from "../../security-audit-DIa6ygCn.mjs"; import { i as resolveTelegramCustomCommands, n as normalizeTelegramCommandDescription, r as normalizeTelegramCommandName, t as TELEGRAM_COMMAND_NAME_PATTERN } from "../../command-config-D4ANEm3X.mjs"; import { a as getCachedSticker, i as getCacheStats, n as cacheSticker, o as searchStickers, r as getAllCachedStickers, t as describeStickerImage } from "../../sticker-cache-By7J2yVe.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 };