How can I make it look like a bot is typing in slack? - slack-api

My slack bot has a slight built-in delay (1.2 seconds) in its responses, but I'd like the user to know that it is intending to respond. When a user is typing, a "user is typing..." indicator shows on the screen. I'd like to trigger that indicator for my slack bot. How can I do this?

There is no way to do this through the slack api at this time.
One option would be to send a message that just said "..." and then 1.2 seconds later replace that message with the full message.

Related

Phoenix channels, How I kick a user from a channel?

So I am trying to understand the workflow in kicking a user from a channel. I have a command I can issue to the channel #kick username. This is handle by a handle in which parse the message and will detect is a command. That will call the kick function in my channel. My issue is how I actually make the user leave. There is no such thing as Endpoint.Broadcast with a leave event like we have for disconnecting a socket from everything.
I've been told to use a Endpoint.Broadcast an event like kick and use a handle_out to intercept it. Well even if I use it, how is this disconnecting the user I want specifically to be kick as an admin.

Remove a cell number from the Twilio unsubscribe list

I have a very simple alert mechanism to alert drivers "in-the-field" when a new pickup has been assigned to them. I have had an instance twice where a driver has responded with a STOP and became un-subscribed. Once discovered we acquired the proper opt-in documentation from them. Is there any way to re-subscribe a user that opted out and changed their mind on receiving the messaging. i.e. they issued the STOP to the incorrect SMS. And have deleted the original message to START. Or do I need to code something for them to opt back in
My SendGrid provides a method to remove suppression from email but am not finding anything like that here in Twilio.
They need to send a START to the number they previously opted out of, this is currently a requirement. You will also get an error when trying to send messages to them, to alert you they opted out.
Error 21610 - Attempt to send to unsubscribed recipient

Twilio ChatApp - post webhook is not adding me when OnConversationAdded webhook fires off to my ngrok url

The title says it all. My goal is for a User to send an SMS to my Twilio Number and to be able to Chat back via ChatApp.
I'm using the Twilio ChatApp from Codesource and Ngrok reserved domain.
My tunnel is working and Twilio log shows Status was received but it seems like my webhook isn't firing off to add me to the conversation. I know the code is correct because its straight from Codesandbox.
When I do a terminal twilio-cli command to Create Participant (ident) with Chat Service SID that was created upon incoming text, the ChatApp works fine and I'm added in.
Any thoughts?
Thanks!
Having just come up with this myself, I believe that this Twilio webhook only fires in response to a 200 of onConversationAdd, not all conversations, as you may assume.
This in turn is only called as part of auto-creation.
Therefore, check that auto-creation is enabled, but also that the phone number isn't already part of a conversation, else it won't go into auto-creation too.

ios/xcode: Possible to send notification when app is in foreground (as alternative to alert)

This may be contrary to HIG...it is not standard..but it occurred to me that after a user sends feedback from withinmy app, it might be nice to flash a quick unobtrusive message "Thank you for your feedback" or something. I don't want to hit the user with a full blown alert. But a discreet notification banner along the top might be nice.
Is it possible to do this or is it disallowed?
Thanks for any suggestions.
If this notification is initiated from an action from within your app, an Apple notification may not be necessary. You want to simply show a thank you message, so it doesn't even have to wait for a response from a server, but you may want to check if you have Internet connectivity, just to be able to say that the message couldn't be sent, and offer the option to retry.
These are good options for a Toast-style alert that Android uses and is unobtrusive:
https://www.cocoacontrols.com/controls/toast
https://github.com/scalessec/Toast
You can configure it to slide in from the top or bottom. And, it slides away without user interaction.
Local notification will be received in this case but will not be displayed as you want it. However you can make a custom view similar to iOS view. Also please check https://github.com/OpenFibers/OTNotification
Unless the notification is from other application in background,
your currently active app has every right and responsibility in interacting with user with any types of visuals.
There are no class from iOS SDK to allow you to use the same notification banner used for Push Notification. To achieve the same result while your app is active, you may need to adopt your own solution or a module.

USSD session timeout (udp PROMPT)

I want to develop a ussd application that waits for user input (PROMPT). I was wondering how to handle a case, when for example ussd message is sent at night and user replies after several hours. For sure any timeout cannot handle it. On my phone (sony xperia) the message with the question is still displayed and i can reply seeing no error. But server side, I do not receive this reply because ussd session expired.
Resending the message several times is not a solution.
You cannot do it!
You want to develop an application(server side) that accept input from mobile handset(client side)
I didn't understand well if your application is:
Mobile-initiated (USSD/ PULL)
Network-initiated (USSD/ PUSH)
but however in both cases you cannot achieve your goal.
Because session timeout is server side and there is nothing client could do about it, beside to resend the request which is not an option in your case.

Resources