intergram icon indicating copy to clipboard operation
intergram copied to clipboard

Multiple chats ids

Open lorenzodetomasi opened this issue 7 years ago • 3 comments

If I manage multiple websites, I would like to understand from which website the message comes from. So, a custom user prefix, like "[website1] " or "[website2] " can be useful. So we can receive messages like: [website1] 6d81a5 has left [website2] 3f52e3 has left

Thank you.

lorenzodetomasi avatar Jan 04 '18 09:01 lorenzodetomasi

Hi, @lorenzodetomasi , I also thought about this feature, since I'm also managing 2 Intergram chats, but I found a simpler solution. I created two different Telegram groups for the two different websites and added the Intergram bot to each of them. This way each group gets its own unique ID, and each has it's own website context. (To create a group that has only me in it, I invited someone to it, and removed him after creating the group 😃)

That leaves the context management to the Telegram app which is easier.

idoco avatar Jan 04 '18 14:01 idoco

Well, @idoco thanks for this tip. It does work for me.

Additionally, I figured it out by just replying an specific message from telegram and then my reply is routed to that particular user (automatically). This is great and I'm not sure if is part of your great code or telegram's behavior, but in that way I was able to deal with multiple users and with one single telegram chat/group.

enzojimenez avatar Nov 22 '18 18:11 enzojimenez

Thanks @enzojimenez 😄

This is implemented in Intergram by extracting the unique visitor ID from that specific visitor message (The random letters before every message).

See here - link

idoco avatar Nov 22 '18 18:11 idoco