feat(telegram): support sending audio as native voice notes via asVoice param in message tool
This commit is contained in:
committed by
Peter Steinberger
parent
f6456c2883
commit
f2a0e8e5bb
@@ -39,6 +39,7 @@ function buildSendSchema(options: { includeButtons: boolean }) {
|
||||
media: Type.Optional(Type.String()),
|
||||
replyTo: Type.Optional(Type.String()),
|
||||
threadId: Type.Optional(Type.String()),
|
||||
asVoice: Type.Optional(Type.Boolean()),
|
||||
bestEffort: Type.Optional(Type.Boolean()),
|
||||
gifPlayback: Type.Optional(Type.Boolean()),
|
||||
buttons: Type.Optional(
|
||||
|
||||
@@ -175,6 +175,7 @@ export async function handleTelegramAction(
|
||||
buttons,
|
||||
replyToMessageId: replyToMessageId ?? undefined,
|
||||
messageThreadId: messageThreadId ?? undefined,
|
||||
asVoice: typeof params.asVoice === "boolean" ? params.asVoice : undefined,
|
||||
});
|
||||
return jsonResult({
|
||||
ok: true,
|
||||
|
||||
Reference in New Issue
Block a user