# Telegram bot to bot commands

**URL:** <https://discourse.nodered.org/t/telegram-bot-to-bot-commands/76689>\
**Category:** General\
**Created:** [18 March 2023 11:58 UTC](https://discourse.nodered.org/t/telegram-bot-to-bot-commands/76689 "2023-03-18T11:58:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tinbum1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tinbum1/32/60100_2.png) [@Tinbum1](https://discourse.nodered.org/u/Tinbum1)\
**Post date:** [18 March 2023 11:58 UTC](https://discourse.nodered.org/t/telegram-bot-to-bot-commands/76689/1 "2023-03-18T11:58:43Z")

</div>

Does anyone know a way to get round the setting in telegram that won't allow bot to bot commands.

see [Bots FAQ](https://core.telegram.org/bots/faq#why-doesn-39t-my-bot-see-messages-from-other-bots)

---

<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:** [18 March 2023 12:18 UTC](https://discourse.nodered.org/t/telegram-bot-to-bot-commands/76689/2 "2023-03-18T12:18:24Z")

</div>

I believe bots are not allowed to talk to each other security measure

> **[Bots FAQ](https://core.telegram.org/bots/faq#what-messages-will-my-bot-get)**
>
> If you are new to Telegram bots, we recommend checking out our Introduction to Bots first.
> You may also find the Bot API…

---

<div class="post-metadata">

**Author:** ![Tinbum1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tinbum1/32/60100_2.png) [@Tinbum1](https://discourse.nodered.org/u/Tinbum1)\
**Post date:** [18 March 2023 12:19 UTC](https://discourse.nodered.org/t/telegram-bot-to-bot-commands/76689/3 "2023-03-18T12:19:55Z")

</div>

That's why I asked the question.

---

<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:** [18 March 2023 12:24 UTC](https://discourse.nodered.org/t/telegram-bot-to-bot-commands/76689/4 "2023-03-18T12:24:27Z")

</div>

Maybe create another user account and use that to pass messages between bots using node red, Changing chatid's. Possibly using http request api.

---

<div class="post-metadata">

**Author:** ![Tinbum1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tinbum1/32/60100_2.png) [@Tinbum1](https://discourse.nodered.org/u/Tinbum1)\
**Post date:** [18 March 2023 12:28 UTC](https://discourse.nodered.org/t/telegram-bot-to-bot-commands/76689/5 "2023-03-18T12:28:13Z")

</div>

Sorry, yes, that would work within node red but, I should have said, I'm trying to send the command to an external bot. I've tried channels but the external bot doesn't seem to want to accept commands over a channel, even from an android phone. It will over groups.

---

<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:** [18 March 2023 12:40 UTC](https://discourse.nodered.org/t/telegram-bot-to-bot-commands/76689/6 "2023-03-18T12:40:44Z")

</div>

I don't see a way round this other than stated above, sorry  
[edit] i did see this [GitHub - zerobias/telegram-mtproto: Telegram client api (MTProto) library](https://github.com/zerobias/telegram-mtproto) and this [GitHub - LonamiWebs/Telethon: Pure Python 3 MTProto API Telegram client library, for bots too!](https://github.com/LonamiWebs/Telethon)

---

<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:** [18 March 2023 12:55 UTC](https://discourse.nodered.org/t/telegram-bot-to-bot-commands/76689/7 "2023-03-18T12:55:20Z")

</div>

Other than handling the bot-to-bot dialogs in Node-RED or some other external service and doing so in a group rather than direct to the bot.

---

<div class="post-metadata">

**Author:** ![Tinbum1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tinbum1/32/60100_2.png) [@Tinbum1](https://discourse.nodered.org/u/Tinbum1)\
**Post date:** [18 March 2023 13:04 UTC](https://discourse.nodered.org/t/telegram-bot-to-bot-commands/76689/8 "2023-03-18T13:04:48Z")

</div>

Thank you, that second link looks interesting.

---

<div class="post-metadata">

**Author:** ![Tinbum1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tinbum1/32/60100_2.png) [@Tinbum1](https://discourse.nodered.org/u/Tinbum1)\
**Post date:** [18 March 2023 16:59 UTC](https://discourse.nodered.org/t/telegram-bot-to-bot-commands/76689/9 "2023-03-18T16:59:07Z")

</div>

> [@E1cid](#):
>
> GitHub - LonamiWebs/Telethon: Pure Python 3 MTProto API Telegram client library, for bots too!

Works perfectly, thanks for the help. 😃

---

<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:** [17 May 2023 16:59 UTC](https://discourse.nodered.org/t/telegram-bot-to-bot-commands/76689/10 "2023-05-17T16:59:23Z")

</div>

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