# Telegram Question

**URL:** <https://discourse.nodered.org/t/telegram-question/39082>\
**Category:** General\
**Created:** [13 January 2021 19:07 UTC](https://discourse.nodered.org/t/telegram-question/39082 "2021-01-13T19:07:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Post date:** [13 January 2021 19:07 UTC](https://discourse.nodered.org/t/telegram-question/39082/1 "2021-01-13T19:07:31Z")

</div>

hello  
i have two Telegram bot with different Name and different Token of course!  
should the "chatId" be the same on both? or should it be different?

have a nice day  
vinc

---

<div class="post-metadata">

**Author:** ![greengolfer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greengolfer/32/28276_2.png) [@greengolfer](https://discourse.nodered.org/u/greengolfer)\
**Post date:** [13 January 2021 19:46 UTC](https://discourse.nodered.org/t/telegram-question/39082/2 "2021-01-13T19:46:03Z")

</div>

The easiest is to try 🙂  
In my case, it is the same... I assume it is true for all.

---

<div class="post-metadata">

**Author:** ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Post date:** [13 January 2021 20:06 UTC](https://discourse.nodered.org/t/telegram-question/39082/3 "2021-01-13T20:06:41Z")

</div>

in my case also but found this strange, because it is important to add on the message! so why to have only 1 ID for multiple bot's?  
but ok - thanks for the confirmation @greengolfer

---

<div class="post-metadata">

**Author:** ![greengolfer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greengolfer/32/28276_2.png) [@greengolfer](https://discourse.nodered.org/u/greengolfer)\
**Post date:** [13 January 2021 20:11 UTC](https://discourse.nodered.org/t/telegram-question/39082/4 "2021-01-13T20:11:41Z")

</div>

I find this strange too. I have tried to understand and look at the documentation on telegram... and couldn't find any explaining it.  
My understanding:

- the token is the "identity" of the bot
- the chatid is the "name" of your phone.

So, with the same token, but with a different chatid, you could reach another phone. This is what I am doing.  
Don't ask why. It is just like that 🙂 or at least my (limited) experience shows this.

---

<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:** [13 January 2021 20:18 UTC](https://discourse.nodered.org/t/telegram-question/39082/5 "2021-01-13T20:18:23Z")

</div>

The chatid isn't for the bot. It is for the user or group that the bot is talking to.

---

<div class="post-metadata">

**Author:** ![greengolfer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greengolfer/32/28276_2.png) [@greengolfer](https://discourse.nodered.org/u/greengolfer)\
**Post date:** [13 January 2021 22:13 UTC](https://discourse.nodered.org/t/telegram-question/39082/6 "2021-01-13T22:13:11Z")

</div>

Yes. But as the name suggests, it should be something identifying the chat. And not the user.  
So, with different bots (that is different chat), you use the same chatid and a different tokens. I find this weird.

---

<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:** [14 January 2021 00:16 UTC](https://discourse.nodered.org/t/telegram-question/39082/7 "2021-01-14T00:16:29Z")

</div>

The chat is _with_ a person or a group. so the id aligns to the user/group.

---

<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:** [15 March 2021 00:16 UTC](https://discourse.nodered.org/t/telegram-question/39082/8 "2021-03-15T00:16:32Z")

</div>

Closed on 15 March 2021 00:16 UTC

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