We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9779c32 commit a1569b2Copy full SHA for a1569b2
1 file changed
src/activities/telegram/generateVectorIngestionPayload.ts
@@ -66,7 +66,7 @@ export async function generateVectorIngestionPayload(
66
text: update.message?.text || update.edited_message?.text,
67
docId: update.message?.message_id.toString() || update.edited_message?.message_id.toString(),
68
metadata: {
69
- author: update.message.from.first_name,
+ author: update.message?.from?.first_name || update.edited_message?.from?.first_name,
70
createdAt: messageDate,
71
updatedAt: editDate,
72
mentions,
0 commit comments