File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -217,15 +217,15 @@ export class TelegramWebhookHandler {
217
217
*/
218
218
async handleConversationUpdated ( event ) {
219
219
try {
220
+ // 1. Get conversation ID from webhook event (try both fields)
221
+ const conversationId = event . data . conversationId || event . data . id ;
222
+
220
223
LogEngine . info ( '🔄 Processing conversation status update webhook' , {
221
- conversationId : event . data . conversationId || event . data . id ,
224
+ conversationId : conversationId ,
222
225
newStatus : event . data . status ,
223
226
previousStatus : event . data . previousStatus ,
224
227
timestamp : event . timestamp
225
228
} ) ;
226
-
227
- // 1. Get conversation ID from webhook event (try both fields)
228
- const conversationId = event . data . conversationId || event . data . id ;
229
229
const newStatus = typeof event . data . status === 'string' ? event . data . status . toLowerCase ( ) : String ( event . data . status || '' ) . toLowerCase ( ) ;
230
230
231
231
if ( ! conversationId ) {
You can’t perform that action at this time.
0 commit comments