UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

24 lines (23 loc) 8.39 kB
import { n as resolveTelegramAccountConfig, t as mergeTelegramAccountConfig } from "../../account-config-CQIzOdtV.js"; import { a as resolveDefaultTelegramAccountId, c as resolveTelegramPollActionGateState, i as resetMissingDefaultWarnFlag, n as listEnabledTelegramAccounts, o as resolveTelegramAccount, r as listTelegramAccountIds, s as resolveTelegramMediaRuntimeOptions, t as createTelegramActionGate } from "../../accounts-blCxAL9j.js"; import { t as inspectTelegramAccount } from "../../account-inspect-BHv-ag3o.js"; import { n as isNumericTelegramUserId, r as normalizeTelegramAllowFromEntry, t as isNumericTelegramSenderUserId } from "../../allow-from-Byf7JKVc.js"; import { a as parseTelegramTarget, n as normalizeTelegramChatId, o as resolveTelegramTargetChatType, r as normalizeTelegramLookupTarget, s as stripTelegramInternalPrefixes, t as isNumericTelegramChatId } from "../../targets-CDtCx0Zi.js"; import { a as resolveTelegramGroupRequireMention, i as normalizeTelegramMessagingTarget, n as collectTelegramStatusIssues, o as resolveTelegramGroupToolPolicy, r as looksLikeTelegramTargetId, s as resolveTelegramAutoThreadId, t as telegramPlugin } from "../../channel-qEDArY7s.js"; import { d as resolveTelegramChatLookupFetch, l as fetchTelegramChatId, t as telegramSetupPlugin, u as lookupTelegramChatId } from "../../channel.setup-DGbvIghF.js"; import { i as resolveTelegramInlineButtonsScopeFromCapabilities, n as resolveTelegramInlineButtonsConfigScope, r as resolveTelegramInlineButtonsScope, t as isTelegramInlineButtonsEnabled } from "../../inline-buttons-4xnM1eKI.js"; import { a as isTelegramExecApprovalHandlerConfigured, c as resolveTelegramExecApprovalTarget, d as shouldInjectTelegramExecApprovalButtons, f as shouldSuppressLocalTelegramExecApprovalPrompt, i as isTelegramExecApprovalClientEnabled, l as shouldEnableTelegramExecApprovalButtons, n as isTelegramExecApprovalApprover, o as isTelegramExecApprovalTargetRecipient, r as isTelegramExecApprovalAuthorizedSender, s as resolveTelegramExecApprovalConfig, t as getTelegramExecApprovalApprovers, u as shouldHandleTelegramExecApprovalRequest } from "../../exec-approvals-CgxkwQwD.js"; import { B as withResolvedTelegramForumFlag, C as buildTypingThreadParams, G as hasBotMention, H as buildSenderName, I as resolveTelegramReplyId, K as isBinaryContent, L as resolveTelegramStreamMode, M as resolveTelegramForumFlag, N as resolveTelegramForumThreadId, O as resetTelegramForumFlagCacheForTest, P as resolveTelegramGroupAllowFromContext, R as resolveTelegramThreadSpec, S as buildTelegramThreadParams, T as extractTelegramForumFlag, U as extractTelegramLocation, V as buildSenderLabel, W as getTelegramTextParts, Y as resolveTelegramMediaPlaceholder, _ as buildTelegramGroupFrom, at as parseTelegramThreadId, b as buildTelegramParentPeer, g as buildGroupLabel, it as parseTelegramReplyToMessageId, j as resolveTelegramDirectPeerId, q as normalizeForwardedContext, rt as normalizeTelegramReplyToMessageId, v as buildTelegramGroupPeerId, w as describeReplyTarget, x as buildTelegramRoutingTarget } from "../../sent-message-cache-IpiNMjf9.js"; import { a as buildTelegramExecApprovalPendingPayload, n as resetTelegramProbeFetcherCacheForTests, o as shouldSuppressTelegramExecApprovalForwardingFallback, t as probeTelegram } from "../../probe-D1liUu9a.js"; import { n as listTelegramDirectoryPeersFromConfig, t as listTelegramDirectoryGroupsFromConfig } from "../../directory-config-BcXhpDlI.js"; import { i as markdownToTelegramHtmlChunks, n as markdownToTelegramChunks, o as splitTelegramHtmlChunks, r as markdownToTelegramHtml, t as escapeTelegramHtml } from "../../format-RoDvU0eA.js"; import { i as telegramOutbound, r as sendTelegramPayloadMessages, t as TELEGRAM_TEXT_CHUNK_LIMIT } from "../../outbound-adapter-DltSQb_u.js"; import { t as resolveTelegramReactionLevel } from "../../reaction-level-Dx393P0D.js"; import { t as collectTelegramSecurityAuditFindings } from "../../security-audit-BjYJuisi.js"; import { t as parseTelegramTopicConversation } from "../../topic-conversation-B6kdtLDb.js"; import { c as buildTelegramModelsProviderChannelData, d as buildModelsKeyboard, f as buildProviderKeyboard, g as resolveModelSelection, h as parseModelCallbackData, l as buildBrowseProvidersButton, m as getModelsPageSize, p as calculateTotalPages, t as buildCommandsPaginationKeyboard, u as buildModelSelectionCallbackData } from "../../command-ui-CF0gmLbR.js"; import { i as resolveTelegramCustomCommands, n as normalizeTelegramCommandDescription, r as normalizeTelegramCommandName, t as TELEGRAM_COMMAND_NAME_PATTERN } from "../../command-config-CnxQsFly.js"; import { a as getCacheStats, c as searchStickers, i as getAllCachedStickers, o as getCachedSticker, r as cacheSticker } from "../../sticker-cache-store-mh6jiBwt.js"; import { c as writeTelegramUpdateOffset, o as readTelegramUpdateOffset, r as deleteTelegramUpdateOffset } from "../../update-offset-store-Bh3Be6HH.js"; import { t as describeStickerImage } from "../../sticker-cache-BFNVd7JL.js"; 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, normalizeTelegramReplyToMessageId, parseModelCallbackData, parseTelegramReplyToMessageId, parseTelegramTarget, parseTelegramThreadId, parseTelegramTopicConversation, probeTelegram, readTelegramUpdateOffset, resetMissingDefaultWarnFlag, resetTelegramForumFlagCacheForTest, resetTelegramProbeFetcherCacheForTests, resolveDefaultTelegramAccountId, resolveModelSelection, resolveTelegramAccount, resolveTelegramAccountConfig, resolveTelegramAutoThreadId, resolveTelegramChatLookupFetch, resolveTelegramCustomCommands, resolveTelegramDirectPeerId, resolveTelegramExecApprovalConfig, resolveTelegramExecApprovalTarget, resolveTelegramForumFlag, resolveTelegramForumThreadId, resolveTelegramGroupAllowFromContext, resolveTelegramGroupRequireMention, resolveTelegramGroupToolPolicy, resolveTelegramInlineButtonsConfigScope, resolveTelegramInlineButtonsScope, resolveTelegramInlineButtonsScopeFromCapabilities, resolveTelegramMediaPlaceholder, resolveTelegramMediaRuntimeOptions, resolveTelegramPollActionGateState, resolveTelegramReactionLevel, resolveTelegramReplyId, resolveTelegramStreamMode, resolveTelegramTargetChatType, resolveTelegramThreadSpec, searchStickers, sendTelegramPayloadMessages, shouldEnableTelegramExecApprovalButtons, shouldHandleTelegramExecApprovalRequest, shouldInjectTelegramExecApprovalButtons, shouldSuppressLocalTelegramExecApprovalPrompt, shouldSuppressTelegramExecApprovalForwardingFallback, splitTelegramHtmlChunks, stripTelegramInternalPrefixes, telegramOutbound, telegramPlugin, telegramSetupPlugin, withResolvedTelegramForumFlag, writeTelegramUpdateOffset };