#Is there any way to check if an image is set to view-once?

1 messages · Page 1 of 1 (latest)

devout tulip
#

As per title, is there any method to determine if a Message contains an image that can only be viewed once?

stray crescent
#

Sure, with the image data you get there isViewOnce value (is boolean: true or false)

#
  if(msg.hasMedia && msg._data.isViewOnce){
    // This media can be seen only once.
  }
});```
gloomy gull
stray crescent
# gloomy gull Excuse me, how can I send a once photo?

ii think you can try to add the same value in the send message media options but i think it didn't work (if they havn't update the library in the last times)... some time ago i try but it didn't work. also you can read the documentation and find some infos.