According to researches by the adsmember team
टेलीग्राम बॉट ट्यूटोरियल – 6 – नीचे टेलीग्राम बॉट कोड के साथ गूगल स्प्रैडशीट में फोटो और वीडियो अपलोड करना। testPhoto फ़ंक्शन में स्वयं के डेटा के साथ परीक्षण करना न भूलें और अपने स्वयं के doPost(e) फ़ंक्शन में एक चेक जोड़ें (नीचे दिखाई नहीं दे रहा है) फ़ंक्शन testPhoto() { var सामग्री = {} // इसे बदलें! एक फोटो भेजें और फिर इसे अपनी सामग्री प्रक्रिया फोटो (सामग्री) से बदलें; } फंक्शन प्रोसेस फोटो (कंटेंट) { var fileId = content.message.photo[contents.message.photo.length – 1][“file_id”]; वर यूआरएल = ‘ + टोकन + ‘/’ + ‘getFile?file_id=’ + fileId; वर प्रतिक्रिया = UrlFetchApp.fetch (यूआरएल); Logger.log (response.getContentText ()); प्रतिक्रिया = JSON.parse (response.getContentText ()); वर urlPhoto = ‘ + टोकन + ‘/’ + response.result[“file_path”]; लकड़हारा.लॉग (urlPhoto); var ssId = ‘replace_this_with_yourspreadsheet_id’; वर एसएस = स्प्रेडशीटऐप.ओपनबीआईडी ​​(एसएसआईडी); ss.appendRow([new Date(),urlPhoto]); sendText(contents.message.from.id,”आपका फोटो अपलोड कर दिया गया है।”); }

source

Rate us
0 0 votes
Article Rating
Subscribe
Notify of
guest
8 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Azatshatru singh
Azatshatru singh
1 month ago

Sometimes i have to upload 4 photos togther? Then what to do

Talib Abbas
Talib Abbas
1 month ago

Thanks for the video, however, can we get msg sender Lat long.

đặng tiên
đặng tiên
1 month ago

Hi Wim, I would like to take a link of google drive, which a user uploaded via telegram bot. Please help me with your code available. I run several times but it did not deployed yet.
Thanks for your help!

W wide stories
W wide stories
1 month ago

nice videos bro

ARMAR E.I.R.L
ARMAR E.I.R.L
1 month ago

Hi, I would like to ask if there is any way to update the URL of an uploaded Ami BOT image using some formula?

Aleksandra Malakutsko
Aleksandra Malakutsko
1 month ago

Thanks!!

Claudio Estevez
Claudio Estevez
1 month ago

Hi Wim, nice to see your still active. Question: it seems that the webhook (deployment) no longer has access option "anyone, even anonymous", so telegram no longer works. Did you find a workaround? Thanks.

Tan Wei Jie
Tan Wei Jie
1 month ago

You're alive!

8
0
Would love your thoughts, please comment.x
()
x