Is there a way for message to have read status in quickblox group chat only after everyone in group have read it - quickblox

Me and my team are working on React app and are using QuickBlox for chat feature.
We have one on one chat and group chat features. I have searched very carefully in documentation but was not able to find answer to the question: 'Is there a way for message to have read status in quickblox group chat only after everyone in group have read it'?

In order to mark a message as 'read' only after all occupants of a group dialog have read the message, you could use the read_ids field of response to the retrieve messages API call, as shown in this section of QuickBlox documentation.
This field contains user IDs that have read the message, for example: "read_ids": [2792283,4374458]. In this way, you can compare this array to the array of all occupants and if their length is the same, display it as 'read' on your UI.

Related

How to chat and call automatically in MS Teams?

I'm working on a solution to build a system that automatically alerts users on Microsoft Teams. The order of execution will be:
Automatically scan alarm logs
Sort and send MS Teams messages to personnel for corresponding processing
If the processing staff does not receive the message, make a call on MS Teams to read the pre-recorded voice record.
I used python to automatically get the warning list, to send this alert list to the handler, I have tried MS Teams REST API but it only supports sending messages to Channel. How do I automatically chat and voice calls to an MS Teams user? Can chatbot help me with this problem? I see there are many types of bots that can be added to the conversation:
I think a chatbot is definitely the best way to deal with this. Essentially, you're wanting the bot to message a user on demand, which is something called "Proactive Messaging". You can read more here and here. There are a few things you need to know about this, but in a nutshell you need a way to specifically identify the user for sending the message, which you can get when the user first installs your bot (mostly you need "ServiceUrl" and "ConversationId").
With regards to knowing if the user has read the message, you might want to send an "adaptive card" with a button for the user to acknowledge that they've read the message, and if you don't get a callback within some time frame, start the voice call.

Go to chat message with specific text with Telegram API

I'm looking for information about this, but I don't find anything.
Is possible send to user to a chat message that contains a specific text?
This request below can be made with multiple languages.
https://api.telegram.org/bot[BOT_API_KEY]/sendMessage?chat_id=[MY_CHANNEL_NAME]&text=[MY_MESSAGE_TEXT]
where:
BOT_API_KEY is the API Key when you created your bot
MY_CHANNEL_NAME is the handle of your channel (e.g. #my_channel_name)
MY_MESSAGE_TEXT is the message you want to send (URL-encoded)
https://medium.com/#xabaras/sending-a-message-to-a-telegram-channel-the-easy-way-eb0a0b32968

How to get authenticated by Telegram bot in Group chats?

Please kindly someone explain me how can the Telegram bot could understand who is sending the command in group chats and respond it with the the unique answer which is just for that user.
Surely in this case security issues should be considered and a user must not send command as another user.
I guess I can use username to send along with command.
Any suggestions...
The Message Object contains two objects apart from other objects:
Chat, message['chat'] which represents the Chat from which the message is coming. In your case the group.
User, message['from'] which represents the user that sent the message/command.
So it's easy to differentiate which user sent the message. And in case of Private chats, both the Chat object and the User Object are same.

QuickBlox Chat - Are messages stored?

I have a doubt about QuickBlox.
I want to use the chat functionality but I need to know if the messages exchanged between users are stored in database. because I need to retrieve them to show a list of the users I've talked to and the last message, such as facebook app in iOS and Android.
Thanks!
Here is info about chat history
http://quickblox.com/developers/SimpleSample-chat_users-ios#Manage_Chat_History

Live chat on website using QuickBlox API

We want to develop website live chat widget using QuickBlox Chaa API.
1) In such widget user need not to login and just start chatting. Can we create one generic user that can be used for all chat sessions ?
2) Second requirement is store chat conversation , is there a way to store chat session there a way to get chat session text. Can we hook into it ?
Please tell us if its possible or not.
1) You have to register on quickblox.com. After that, create your project for an your application. Get tokens and keys to access your application. And you will have one primary user to work with QB and its modules.
2) You do not have to ask the user registration. Just give them names for a chat. If you want to use the source code of the widget ChattAR, just remove the registration code. Allow the user to enter a user name by which he enters.
3) Keep the message history you can in a module "Custom objects". This module is a flexible tool, you can create any number of data fields, and select one for each type of data you need.
Also, you can save any files (text etc.) in "Content" module for getting chat session text.