openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
24 lines (23 loc) • 8.08 kB
JavaScript
import { S as parseStrictInteger } from "../../number-coercion-CuVhdCBs.mjs";
import { a as mergeTelegramAccountConfig, o as resolveTelegramAccountConfig } from "../../account-selection-BxJHPbrw.mjs";
import { a as resolveTelegramAccount, i as resolveDefaultTelegramAccountId, n as listEnabledTelegramAccounts, o as resolveTelegramMediaRuntimeOptions, r as listTelegramAccountIds, s as resolveTelegramPollActionGateState, t as createTelegramActionGate } from "../../accounts-CRT4NMMs.mjs";
import { n as isNumericTelegramUserId, r as normalizeTelegramAllowFromEntry, t as isNumericTelegramSenderUserId } from "../../allow-from-Byf7JKVc.mjs";
import { r as inspectTelegramAccount } from "../../account-inspect-BoNOSe1D.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-C-lzScEI.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-BBDOgfwv.mjs";
import { i as resolveTelegramInlineButtonsScopeFromCapabilities, n as resolveTelegramInlineButtonsConfigScope, r as resolveTelegramInlineButtonsScope, t as isTelegramInlineButtonsEnabled } from "../../inline-buttons-BbTysNhP.mjs";
import { a as shouldSuppressTelegramExecApprovalForwardingFallback, i as buildTelegramExecApprovalPendingPayload, t as probeTelegram } from "../../probe-BXz3uBAm.mjs";
import { t as resolveTelegramReactionLevel } from "../../reaction-level-CiNaXKoO.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-DDOUtk0-.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-wAr93DRL.mjs";
import { C as resolveTelegramPreviewStreamMode, D as getTelegramTextParts, E as extractTelegramLocation, G as parseTelegramReplyToMessageId, K as parseTelegramThreadId, N as normalizeForwardedContext, O as hasBotMention, S as withResolvedTelegramForumFlag, T as buildSenderName, _ 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-8klSsO8Z.mjs";
import { t as telegramSetupPlugin } from "../../channel.setup-C_g-kbxm.mjs";
import { o as resolveTelegramDirectPeerId } from "../../conversation-route-BquojKBV.mjs";
import { n as listTelegramDirectoryPeersFromConfig, t as listTelegramDirectoryGroupsFromConfig } from "../../directory-config-BAzLmU23.mjs";
import { i as writeTelegramUpdateOffset, r as readTelegramUpdateOffset, t as deleteTelegramUpdateOffset } from "../../update-offset-store-CNfvKiuP.mjs";
import { n as sendTelegramPayloadMessages, r as telegramOutbound } from "../../outbound-adapter-DVqZX8gE.mjs";
import { t as collectTelegramSecurityAuditFindings } from "../../security-audit-DrnCGN6_.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-BWxzbSOj.mjs";
import { i as resolveTelegramCustomCommands, n as normalizeTelegramCommandDescription, r as normalizeTelegramCommandName, t as TELEGRAM_COMMAND_NAME_PATTERN } from "../../command-config-ozqrV5Vm.mjs";
import { a as getCachedSticker, i as getCacheStats, n as cacheSticker, o as searchStickers, r as getAllCachedStickers, t as describeStickerImage } from "../../sticker-cache-CMT589Zc.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 };