'when a photo already sent to telegram is EDITED with new caption text or updated using edit option , the update caption needed in google sheets
when member in telegram group has already sent a photo in to telegram group , now he edits the image and updates caption text with EDIT option in telegram , the new updated caption he made is needed in google sheets.
Now already using below for Caption which is working fine, but when the image is EDITED its not capturing
var data = JSON.parse(e.postData.contents);
var caption = data.message.caption ;
SpreadsheetApp.openById(ssId).getSheets()[0].appendRow([new Date(),caption ]);
Solution 1:[1]
Try changing this to :-
var caption = data.message.caption
this :-
var caption = data.edited_message.caption
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | vector |
