# How to pass information from MySQL querry to telegram bot message?

**URL:** <https://discourse.nodered.org/t/how-to-pass-information-from-mysql-querry-to-telegram-bot-message/49740>\
**Category:** General\
**Created:** [15 August 2021 09:47 UTC](https://discourse.nodered.org/t/how-to-pass-information-from-mysql-querry-to-telegram-bot-message/49740 "2021-08-15T09:47:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uarik](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/uarik/32/45945_2.png) [@Uarik](https://discourse.nodered.org/u/Uarik)\
**Post date:** [15 August 2021 09:47 UTC](https://discourse.nodered.org/t/how-to-pass-information-from-mysql-querry-to-telegram-bot-message/49740/1 "2021-08-15T09:47:24Z")

</div>

![red1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/8/78438c6180e08070a9dcbb1c77e46c519ebc1dd7.png)  
 ![red2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/4/c486a56d6ddffdfd2de9a9608d93829d916a40b8.png)  
What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [15 August 2021 09:56 UTC](https://discourse.nodered.org/t/how-to-pass-information-from-mysql-querry-to-telegram-bot-message/49740/2 "2021-08-15T09:56:43Z")

</div>

The text node is none standard, so hard to say with out the info on the node. But it looks like it does not accept mustache.

Have you tried using the inbuilt template node?

---

<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:** [15 August 2021 09:58 UTC](https://discourse.nodered.org/t/how-to-pass-information-from-mysql-querry-to-telegram-bot-message/49740/3 "2021-08-15T09:58:11Z")

</div>

Use `.0`

See this : [How to access array element by index in mustache in template node - #4 by Steve-Mcl](https://discourse.nodered.org/t/how-to-access-array-element-by-index-in-mustache-in-template-node/26588/4)

---

<div class="post-metadata">

**Author:** ![Uarik](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/uarik/32/45945_2.png) [@Uarik](https://discourse.nodered.org/u/Uarik)\
**Post date:** [15 August 2021 10:12 UTC](https://discourse.nodered.org/t/how-to-pass-information-from-mysql-querry-to-telegram-bot-message/49740/4 "2021-08-15T10:12:54Z")

</div>

GREAT! it works! Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 August 2021 10:13 UTC](https://discourse.nodered.org/t/how-to-pass-information-from-mysql-querry-to-telegram-bot-message/49740/5 "2021-08-29T10:13:09Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
