openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
24 lines (23 loc) • 8.08 kB
JavaScript
import { n as resolveTelegramAccountConfig, t as mergeTelegramAccountConfig } from "../../account-config-B05_z8M7.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-CgIQ5mFD.js";
import { n as isNumericTelegramUserId, r as normalizeTelegramAllowFromEntry, t as isNumericTelegramSenderUserId } from "../../allow-from-Byf7JKVc.js";
import { r as inspectTelegramAccount } from "../../account-inspect-3WXhWjZW.js";
import { a as normalizeTelegramLookupTarget, c as resolveTelegramTargetChatType, i as normalizeTelegramChatId, l as stripTelegramInternalPrefixes, n as parseTelegramTopicConversation, r as isNumericTelegramChatId, s as parseTelegramTarget } from "../../topic-conversation-Cl4csGES.js";
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-CC1ikhRa.js";
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-CmtRI1wa.js";
import { i as parseTelegramThreadId, r as parseTelegramReplyToMessageId, t as normalizeTelegramReplyToMessageId } from "../../outbound-params-BUIfhgvx.js";
import { A as hasBotMention, C as resolveTelegramThreadSpec, D as buildSenderName, E as buildSenderLabel, F as normalizeForwardedContext, N as isBinaryContent, O as extractTelegramLocation, S as resolveTelegramStreamMode, T as withResolvedTelegramForumFlag, _ as resolveTelegramForumThreadId, c as buildTelegramThreadParams, d as extractTelegramForumFlag, g 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, v as resolveTelegramGroupAllowFromContext, x as resolveTelegramReplyId } from "../../helpers-C9zWfRKz.js";
import { i as resolveTelegramInlineButtonsScopeFromCapabilities, n as resolveTelegramInlineButtonsConfigScope, r as resolveTelegramInlineButtonsScope, t as isTelegramInlineButtonsEnabled } from "../../inline-buttons-BTfJdkW_.js";
import { a as shouldSuppressTelegramExecApprovalForwardingFallback, i as buildTelegramExecApprovalPendingPayload, t as probeTelegram } from "../../probe-yJpzfPmM.js";
import { t as telegramSetupPlugin } from "../../channel.setup-DQPX2ITg.js";
import { o as resolveTelegramDirectPeerId } from "../../conversation-route-3KrSriUe.js";
import { F as markdownToTelegramHtml, H as normalizeTelegramMessagingTarget, I as markdownToTelegramHtmlChunks, N as escapeTelegramHtml, P as markdownToTelegramChunks, R as splitTelegramHtmlChunks, V as looksLikeTelegramTargetId, t as TELEGRAM_TEXT_CHUNK_LIMIT } from "../../text-chunk-limit-C3EsGj6Q.js";
import { n as listTelegramDirectoryPeersFromConfig, t as listTelegramDirectoryGroupsFromConfig } from "../../directory-config-IEt7MP2T.js";
import { n as sendTelegramPayloadMessages, r as telegramOutbound } from "../../outbound-adapter-DLB9tW1S.js";
import { t as resolveTelegramReactionLevel } from "../../reaction-level-DY32Tfrq.js";
import { t as collectTelegramSecurityAuditFindings } from "../../security-audit-D-4Na7uY.js";
import { _ as resolveModelSelection, c as buildTelegramModelsProviderChannelData, d as buildModelsKeyboard, f as buildProviderKeyboard, h as parseModelCallbackData, l as buildBrowseProvidersButton, m as getModelsPageSize, p as calculateTotalPages, t as buildCommandsPaginationKeyboard, u as buildModelSelectionCallbackData } from "../../command-ui-ByrwcEVA.js";
import { i as resolveTelegramCustomCommands, n as normalizeTelegramCommandDescription, r as normalizeTelegramCommandName, t as TELEGRAM_COMMAND_NAME_PATTERN } from "../../command-config-BipFmZLM.js";
import { a as getCachedSticker, i as getCacheStats, n as cacheSticker, o as searchStickers, r as getAllCachedStickers, t as describeStickerImage } from "../../sticker-cache-B79pDLqm.js";
import { c as writeTelegramUpdateOffset, o as readTelegramUpdateOffset, r as deleteTelegramUpdateOffset } from "../../update-offset-store-CeQf7TkD.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, resolveDefaultTelegramAccountId, resolveModelSelection, resolveTelegramAccount, resolveTelegramAccountConfig, resolveTelegramAutoThreadId, resolveTelegramChatLookupFetch, resolveTelegramCustomCommands, resolveTelegramDirectPeerId, resolveTelegramExecApprovalConfig, resolveTelegramExecApprovalTarget, resolveTelegramForumFlag, resolveTelegramForumThreadId, resolveTelegramGroupAllowFromContext, resolveTelegramGroupRequireMention, resolveTelegramGroupToolPolicy, resolveTelegramInlineButtonsConfigScope, resolveTelegramInlineButtonsScope, resolveTelegramInlineButtonsScopeFromCapabilities, resolveTelegramMediaRuntimeOptions, resolveTelegramPollActionGateState, resolveTelegramReactionLevel, resolveTelegramReplyId, resolveTelegramStreamMode, resolveTelegramTargetChatType, resolveTelegramThreadSpec, searchStickers, sendTelegramPayloadMessages, shouldHandleTelegramExecApprovalRequest, shouldInjectTelegramExecApprovalButtons, shouldSuppressLocalTelegramExecApprovalPrompt, shouldSuppressTelegramExecApprovalForwardingFallback, splitTelegramHtmlChunks, stripTelegramInternalPrefixes, telegramOutbound, telegramPlugin, telegramSetupPlugin, withResolvedTelegramForumFlag, writeTelegramUpdateOffset };