Bug Report
Package: @chat-adapter/telegram
Version: 4.27.0
File: packages/adapter-telegram/src/index.ts
Function: extractAttachments (line 1129)
Description
The extractAttachments function handles photo, video, audio, voice, and document attachments, but silently drops video_note messages — Telegram's round (circular) video clips sent by recording in-chat.
When a user sends a video_note, the parsed message has no attachments and no text, resulting in an effectively empty message delivered to the adapter consumer.
Type definition gap
TelegramMessage in src/types.ts also has no video_note field, so the omission is at both the type and runtime level.
Telegram Bot API reference
video_note: https://core.telegram.org/bots/api#videonote
Fields:
file_id: string
file_unique_id: string
length: number (width = height, always equal for round clips)
duration: number (seconds)
file_size?: number
Expected behavior
A video_note should be extracted as a "video" attachment with width/height set to length, analogous to how video is handled.
Proposed fix
A fix is available in PR #457.
Bug Report
Package:
@chat-adapter/telegramVersion: 4.27.0
File:
packages/adapter-telegram/src/index.tsFunction:
extractAttachments(line 1129)Description
The
extractAttachmentsfunction handlesphoto,video,audio,voice, anddocumentattachments, but silently dropsvideo_notemessages — Telegram's round (circular) video clips sent by recording in-chat.When a user sends a
video_note, the parsed message has noattachmentsand notext, resulting in an effectively empty message delivered to the adapter consumer.Type definition gap
TelegramMessageinsrc/types.tsalso has novideo_notefield, so the omission is at both the type and runtime level.Telegram Bot API reference
video_note: https://core.telegram.org/bots/api#videonoteFields:
file_id: stringfile_unique_id: stringlength: number (width = height, always equal for round clips)duration: number (seconds)file_size?: numberExpected behavior
A
video_noteshould be extracted as a"video"attachment withwidth/heightset tolength, analogous to howvideois handled.Proposed fix
A fix is available in PR #457.