-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Esp8266 with the same Token #89
Comments
Hi garudaonekh, Cheers, Stefano |
Ok, if I use group chat, will everyone see each other's messages? If like that, it'll be messy. Another drawback is, I heard that a user can only create 20 bots. I just go thru Telegram API, its doc say Webhook can accept 100 concurrent connections. I don't know if this could help. Another scenario is to use Middleware(the middle ware can communicate with device thru MQTT or socket...):
But this scenario, looks complicated and I don't see any good library for me to do so. Thanks; |
My idea is to have 100 devices and give them to 100 users and I don't want to tell all of them that user A to use BotA, user C please use BotC and so on. I want to tell them to use the same bot. I also have another use cases where a single user may have multiple devices. In that case, I don't want the user to manage multple different bots. |
mmm it's a bit complicated. just go thru Telegram API, its doc say Webhook can accept 100 concurrent connections. I don't know if this could help. This mean that the infrastructure (Telegram server and a single bot) can handle up to 100 concurrent connection. In other words, a single bot can virtually handle 100 unique user that are asking someting to the bot in the same time (100 connections open at time). Anyway, if you're planning to give a device powered by an ESP8266 with a telegram bot, the user can create his own bot (token) and with WiFiManager (https://github.com/tzapu/WiFiManager) you can give the opportunity to configure the device to the user. My idea is to have 100 devices and give them to 100 users and I don't want to tell all of them that user A to use BotA, user C please use BotC and so on. I want to tell them to use the same bot. As I said, it is impossible to share the same token with multiple simultaneusly online bot, sorry. And this limitation cames from Telegram. Hoping this can help, cheers Stefano |
The customer journey I want is: a. A user will scan QR on the devices and it'll go to the Telegram bot which already created by me Thus based on the this scenario, I think it's important to have a middleware software that will stand between telegram and the device. The missing part for me is the communication between the device and the middleware which I don't know what kind of technology stack to use. What do you think? PS: For complicated project, I will use Blynk. But for simple 4 to 8 relay projects with a few sensors, I think Telegram bot is very convenient and users are very familiar with Telegram(at least in my country) |
So, is it possible that two esp32 in one group chat send data from different sensor? |
Hello FarhanSakti, as you can se here, you can have up to 20 bots in a group chat.
Doing these settings, all the bots added can use the chat group (read messages, post messages). Take in mind that: bots can't chat each others! In other word, even in a chat group, bots can't read bot's messages.
I hope this explain well how bots works each others and more specific in a chat group. Cheers, Stefano |
Hi,
My purpose is to have multiple users using the same Bot(same token) and devices are assigned to different chat_id(users) rather than 1 device one Bot. This is too tedious.
I want to use the same token to manage 20+ esp8266 relay.
But it shows conflict error in getUpdates().
"error_code": 409, "description": "Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"
Is there any way to filter update based on chat_id(user_id)?
Thanks;
The text was updated successfully, but these errors were encountered: