# From webcam image to file \[for Telegram bot\]

**URL:** <https://discourse.nodered.org/t/from-webcam-image-to-file-for-telegram-bot/50300>\
**Category:** General\
**Tags:** telegram\
**Created:** [27 August 2021 21:02 UTC](https://discourse.nodered.org/t/from-webcam-image-to-file-for-telegram-bot/50300 "2021-08-27T21:02:42Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 August 2021 06:14 UTC](https://discourse.nodered.org/t/from-webcam-image-to-file-for-telegram-bot/50300/5 "2021-08-28T06:14:20Z")

</div>

There is no need to create a file, this can be all done in-memory

grab the a buffer image from camera, build the telegram msg in a function, send it...

Here is a demo: [Node red sending picture to telegram - #4 by Steve-Mcl](https://discourse.nodered.org/t/node-red-sending-picture-to-telegram/39656/4)

---

_[View the full topic](https://discourse.nodered.org/t/from-webcam-image-to-file-for-telegram-bot/50300)._
