I'm developing some service using Smooch.
I'd like to update ( or change ) specific message in conversation history.
Is it possible? If it is, how can I do that?
Thanks for all of your hint. :)
Unfortunately Smooch does not support editing a message in place. The nearest workarounds you have are:
You can delete a single message https://docs.smooch.io/rest/#delete-single-message
You can delete all of a user's messages (without deleting the user or their associated clients) https://docs.smooch.io/rest/#delete-all-messages
Related
I have a use scenario where I'm testing a bot in google hangout. To facilitate testing of multiple users, I'd like to create a series of other bots that replicate the functions of users. But this is all dependent on the bots in the room listening to one another. It also requires that I get the userid of the bots so they can name each other. In Google Scripts I can find no way to retrieve that (the rest API is not an option).
Any suggestions?
The information is documented, but I understand GCP docs aren't the easiest to navigate. According to the Event Format reference: "Only messages from "real", non-bot users are delivered to bots. A bot will never receive messages posted by itself or by a different bot."
So the answer to the question appears to be no. Bots do not appear to be able to talk to each other. When you put the userid in the text property of the bot it does not replace it to an #botname as it does with human users. If anyone can figure out another way to do it I would appreciate it.
But the second question of where to get the bots userid I can now answer and I leave here in case anyone else is curious. This appears only in a message event, when a bot is mentioned as the property event.message.annotations[0].userMention.user.name
Hi i want to develop the bot , but first i ask users to share the link of my bot to 5 other users then continue and register in my bot , i develop all sections but i cannot handle the first one, how can i detect that the use send share link to other user ?
i user laravel + talageram bot SDK to develop my bot.
i just want to know that user share the link and continue , i search in many docs and site bud i cannot find anythings that useful to me.
please help me to handle this problem in my telegram bot . thanks :)
Basically, you can't find out if your user has sent the link to others. You can only find out when the other user taps on the link and starts your bot. This can be done by Deep Linking. You should create a unique identifier for each user and add it as a query string to the special link made for the user.
Example:
https://telegram.me/my_bot?invitedFrom=user1
You have to check for invitedFrom parameter each time a user starts your bot in order to credit the referrer user.
By using above method, you will only be notified when the other user starts your bot.
However there is a trick you can do in order to see if a special message is forwarded to other users. Here are the steps:
Make a private channel.
Create a message containing your bot link.
Forward the message to your bot user.
Ask your bot user to forward the message to friends.
Check the view count of the message to know if it's seen by others.
By using this trick you can find out how many times the message containing your bot link is seen.
I see on Smooch there is a way to retrieve all messages for a given user, using GET /v1/appusers/{smoochId|userId}/messages but how can I get a list of all users (or, at least, all userIds) who are currently using my app. There doesn't seem to be an endpoint for that in the API. Is this possible?
Unfortunately, it's not possible at this point. However, you can subscribe to webhooks (listening for the message:appUser event) and keep track of your users yourself.
See https://docs.smooch.io/rest/#webhooks for the details about webhooks.
After the installation of ejabberd, and configure to the domain. I add the mod_blocking to block users, and it works.
The problem is that when one user open a chat with another user (from the same domain), can send message. In my case, only will be valid that the user receive messages from his friend list. The user could accept request from other users, before receive texts.
Any idea of how can I configure ejabberd to this functionality? (I think that is normal, but I can't find anything similar)
Thanks a lot!!
There is not default feature in XMPP to block message only from friend list. Even if you do that to avoid spam, a user can probably still spam by sending contact request with message.
Anyway, you will have to develop a custom module for that.
How do I delete email messages in a mailbox using EWS?
There doesn't seem to be much online for it?
I'm planning an application and I need to know if it's possible and how to do it.
The Item class has a Delete method. You can open the message and then delete it.
http://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.item.delete.aspx