# Telegrambot with multiple chatID

**URL:** <https://discourse.nodered.org/t/telegrambot-with-multiple-chatid/12711>\
**Category:** General\
**Created:** [28 June 2019 23:17 UTC](https://discourse.nodered.org/t/telegrambot-with-multiple-chatid/12711 "2019-06-28T23:17:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![holazit](https://avatars.discourse-cdn.com/v4/letter/h/ce73a5/32.png) [@holazit](https://discourse.nodered.org/u/holazit)\
**Post date:** [28 June 2019 23:17 UTC](https://discourse.nodered.org/t/telegrambot-with-multiple-chatid/12711/1 "2019-06-28T23:17:09Z")

</div>

Hello,

I need to send the same message to two users on telegram, is it possible to use multiple chatids in the same payload with node-red-contrib-telegrambot?  
I have tried with this function but does not work

```auto
msg.payload = {
 chatId: 'xxxxxxx,xxxxxxx',
 type: 'message',
 content: 'test'
}
return msg;

```

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [29 June 2019 15:29 UTC](https://discourse.nodered.org/t/telegrambot-with-multiple-chatid/12711/2 "2019-06-29T15:29:48Z")

</div>

If you are using node-red-contrib-telegrambot, you cannot do it that way, you will need to output multiple messages. The underlying library that the node uses doesn't take multiple chatId's.

---

<div class="post-metadata">

**Author:** ![windkh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/windkh/32/4713_2.png) [@windkh](https://discourse.nodered.org/u/windkh)\
**Post date:** [11 January 2020 22:02 UTC](https://discourse.nodered.org/t/telegrambot-with-multiple-chatid/12711/3 "2020-01-11T22:02:21Z")

</div>

Hm interesting.... maybe I should add this functionality in future.

---

<div class="post-metadata">

**Author:** ![windkh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/windkh/32/4713_2.png) [@windkh](https://discourse.nodered.org/u/windkh)\
**Post date:** [22 March 2020 21:25 UTC](https://discourse.nodered.org/t/telegrambot-with-multiple-chatid/12711/4 "2020-03-22T21:25:07Z")

</div>

Version 7.1.5 supports this feature now

---

<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:** [5 April 2020 21:25 UTC](https://discourse.nodered.org/t/telegrambot-with-multiple-chatid/12711/5 "2020-04-05T21:25:09Z")

</div>

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