mirror of https://github.com/openclaw/openclaw.git
fix: widen telegram reply progress typing
This commit is contained in:
parent
5b53481d1d
commit
d886ca6474
|
|
@ -32,15 +32,19 @@ export function markDelivered(progress: DeliveryProgress): void {
|
||||||
progress.hasDelivered = true;
|
progress.hasDelivered = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function sendChunkedTelegramReplyText<TChunk, TReplyMarkup = unknown>(params: {
|
export async function sendChunkedTelegramReplyText<
|
||||||
|
TChunk,
|
||||||
|
TReplyMarkup = unknown,
|
||||||
|
TProgress extends DeliveryProgress = DeliveryProgress,
|
||||||
|
>(params: {
|
||||||
chunks: readonly TChunk[];
|
chunks: readonly TChunk[];
|
||||||
progress: DeliveryProgress;
|
progress: TProgress;
|
||||||
replyToId?: number;
|
replyToId?: number;
|
||||||
replyToMode: ReplyToMode;
|
replyToMode: ReplyToMode;
|
||||||
replyMarkup?: TReplyMarkup;
|
replyMarkup?: TReplyMarkup;
|
||||||
replyQuoteText?: string;
|
replyQuoteText?: string;
|
||||||
quoteOnlyOnFirstChunk?: boolean;
|
quoteOnlyOnFirstChunk?: boolean;
|
||||||
markDelivered?: (progress: DeliveryProgress) => void;
|
markDelivered?: (progress: TProgress) => void;
|
||||||
sendChunk: (opts: {
|
sendChunk: (opts: {
|
||||||
chunk: TChunk;
|
chunk: TChunk;
|
||||||
isFirstChunk: boolean;
|
isFirstChunk: boolean;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue