Skip to content

Commit a1569b2

Browse files
committed
fix ?.from
1 parent 9779c32 commit a1569b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/activities/telegram/generateVectorIngestionPayload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export async function generateVectorIngestionPayload(
6666
text: update.message?.text || update.edited_message?.text,
6767
docId: update.message?.message_id.toString() || update.edited_message?.message_id.toString(),
6868
metadata: {
69-
author: update.message.from.first_name,
69+
author: update.message?.from?.first_name || update.edited_message?.from?.first_name,
7070
createdAt: messageDate,
7171
updatedAt: editDate,
7272
mentions,

0 commit comments

Comments
 (0)