@goodandready/dsh-messenger-gateway 0.3.9 → 0.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -508,9 +508,11 @@ export class TelegramAdapter {
508
508
  const { text: formatted, parseMode } = this.formatOutgoingText(text, payload)
509
509
  const chunks = splitText(formatted, TELEGRAM_MAX)
510
510
  const plainChunks = splitText(text, TELEGRAM_MAX)
511
- const effectiveMarkup = (replyMarkup === undefined && this.quickActions && !threadId)
512
- ? buildQuickActionsKeyboard()
513
- : replyMarkup
511
+ const effectiveMarkup = replyMarkup !== undefined
512
+ ? replyMarkup
513
+ : (this.quickActions && !threadId
514
+ ? buildQuickActionsKeyboard()
515
+ : (!threadId ? REMOVE_REPLY_KEYBOARD : undefined))
514
516
  for (let i = 0; i < chunks.length; i++) {
515
517
  const params = {
516
518
  chat_id: chatId,
package/lib/gateway.js CHANGED
@@ -558,7 +558,7 @@ export class Gateway {
558
558
  const parts = text.split(/\s+/)
559
559
  const cmd = parts[0].toLowerCase().split('@')[0]
560
560
  const { reply, userId, chatId, threadId = 0, platform } = input
561
- if (cmd === '/start') return reply('Шлюз подключён. Пишите сообщение агенту. /help — команды.')
561
+ if (cmd === '/start') return reply('Шлюз подключён. Пишите сообщение агенту. /help — команды.', { replyMarkup: REMOVE_REPLY_KEYBOARD })
562
562
  if (cmd === '/help') {
563
563
  return reply([
564
564
  'Команды:',
package/lib/index.js CHANGED
@@ -326,7 +326,7 @@ export function apply(ctx, config) {
326
326
 
327
327
  const dest = target || { platform, chatId, threadId, home }
328
328
  try {
329
- const result = await gw.messengerSend(dest, { text, files })
329
+ const result = await gw.messengerSend(dest, { text, files, replyMarkup: payload.replyMarkup })
330
330
  writeJson(res, 200, { ok: true, sent: result })
331
331
  } catch (err) {
332
332
  writeJson(res, 500, { ok: false, error: err.message })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-messenger-gateway",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Telegram messenger bridge for DeepSeek Harness: sessions, steer, homes, inline asks, notify bridge, and optional TTS voice notes.",
5
5
  "license": "MIT",
6
6
  "type": "module",