I have successfully used:
https://graph.microsoft.com/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages/{message-id}/replies
...to return the set of replies to one message. I was hoping I could add a wildcard to the message-id field but, the help for this script says it is limited to one item.
Could anyone suggest a way i could return replies for a complete set of messages in a channel?
Related
I'm using Twilio Studio and have two phone numbers.
I want to start a text conversation (A) with the customer and after a certain event (like keyword "manager") occurs, I want to alert a second text conversation (B) from a new phone number with that same customer.
I was thinking it might work to forward a message from (A) to (B), but I'm not sure how to give B the phone number that (A) was texting.
First off, I'm a newbie so take what I say with a grain of salt...
I'm almost positive there are 3 or 4 tutorials that you can link together to solve your issue. I think I've read/watched all of them 4x in the last 3 days trying to self learn.
To be honest, from what I've gathered in my self teachings your answers lie within their YouTube channel and their help docs on Functions, Webhooks, HTTP Requests and maybe even TwiML Redirects. But again, I'm a new guy.
If someone who is more knowledgeable doesn't respond back then I'll try to help you because I think I can if you can bear with me. Just reply with a tag so I'll get an alert. Good Luck (to us both!)
you can retrieve the phone number of the customer by referencing off any text you sent/received from the costumer in the flow.
For instance a if you texted them it would be {{widgets.your_widgets_name_here.outbound.To}}
Then just type in this syntax {{widgets.your_widgets_name_here.outbound.To}} in the message body of the widget you are using to alert conversation (B).
It will display the Number of the costumer.
You could then put that in the send message field of any widget in that conversation by refrencing the same way {{widgets.your_widgets_name_here.inbound.body}}
We are developing a chat system where users can be in many chat rooms, and I'd like to be able to show the most recent channels first.
This could be either by the time the last message was sent, or even by the number of unread messages, as long as there is some order and I don't need to go through all the pages of channels and get additional metadata to sort it manually.
I can't see any options in the docs and even though the response metadata has a "key" set to "channels", I haven't been able to figure out a query parameter that can change that.
It seems like channels will always be returned ordered by the random unique channel ID, so for pretty much every use case you'd need to get all channels and sort manually. Is that the case or am I missing something?
Twilio developer evangelist here.
I'm afraid you cannot order the channels within the API right now. This feature is on the roadmap though, however I can't give any time estimates for it.
The solution for now is sorting manually. I will update once that changes though.
Hi I have an automated system setup for twillio. When ever anyone texts our number we automatically respond with a thank you text. However we would like that text to be the only text that goes out. Currently if someone texts the number again responding to our thank you text, they get the same text response back. Since it's setup to trigger with any incoming sms text message. Does anyone know how to set this to just STOP after the first sms response on our part?
Its not really a twilio issue, but for every text you receive, you need to store the number in a database of some sort, and do a lookup against that table to check if a reply should be sent.
You won't be able to do this with just twiml, you'll need to add a bit of custom code in the language of your choice.
You can get the number as
from_number = request.POST.get('From', '')
and save it every number to which you send message in database.
Filter the table with number before an sms is being sent from your end.
if not from_number_exists in table:
send sms
I want to have a flow where I text a user, and that user can text back to trigger an event. I could have multiple outstanding messages to a user at any one time - is there anyway on receiving a text message I can figure out which message it is in reply to, without including an id number in the text message body?
Twilio evangelist here.
So, just to be clear about the problem, it sounds like you have multiple steps in your workflow that might happen in parallel, or at least before the user can response, rather than in a specific linear message/response workflow. Your app might send out 5 messages, and you want to match up each of 5 replies to a specific message.
If thats the case, then unfortunately there really isn't a direct way built into Twilio to let you match up a message reply without including some kind of ID or command in the response message.
Hope that helps.
I have asked this question in a different post here on SO:
How can a read receipt be suppressed?
I have been doing some research of my own to try and solve this problem and accessing the email account via IMAP seems like it is going to be a good solution. I have successfully been able to access my own inbox and mark messages as read with no issue.
I have been asked to perform the same task on an inbox that contains over 23,000 emails. I would like to run the test on a small amount of emails from that inbox before letting the whole 23,000 get it.
Here is the code I have been running via telnet:
LOGIN user#mailserver.com password
SELECT Inbox
STORE 1:* flags \Seen 'this line marks all the emails as read
So my question is, how can I execute that STORE command on a specific group of emails ... say emails that are going to / coming from a specific account? Is there a way to concatenate the commands like a FETCH then the STORE? Or is there a better way to go about getting a collection of emails based on certain criteria and then modifying ONLY those emails that can be accomplished through IMAP?
Take a look at the IMAP SEARCH command. The syntax is really awful, but it'll let you search for recipients or senders, for certain words in the subject or the body of messages. It will give you a list of message ids and you can use those message ids in your call to STORE.