Finding message IDs in Discord channel - discord

POST https://discord.com/api/webhooks/{webhook.id}/{webhook.token}
I can successfully send messages to the discord channel with this method.
Get Webhook Message
GET/webhooks/{webhook.id}/{webhook.token}/messages/{message.id}
I want to get back the message I sent with this method. But how can I get the messages id automatically?

Related

How to handle incoming message to create a conversation in Twilio conversation api?

I have a chat app link now I need to add a SMS participant.
My use case is say you have a number and you send a message in my twilio number. Now I want to create a conversation between us.
I need to know what are the steps to handle an incoming message using webhook and create a private channel so that it automatically creates a conversation between the twilio number and the user. I am not able to capture the message in my backend api endpoint which I specified in pre-event and post-event webhook under conversations.Any help would be appreciated.
You will find the steps required for turning an inbound SMS message into a conversation message in the documentation on Inbound Message Handling & Autocreation. All I can do is recommend you read through there.

discord - send message to bot from client

I am using discord.js
The scenario is something like this:
User posts something in one of the channel.
Bot replies to this user in a DM with
msg.author.send("I am the bot, and sending you this message as DM")
now, I want user to reply back to this bot in the DM again and i want bot and this user to communicate in the DM.
It seems like I can't achieve the user to send back the message to bot in the same DM.
I am using discord.js
Any idea ?
to dm a person, you must use message.author.send("Your message here.")
but you must have client code.

Discord API forwarding a message from one webhook to another webhook

I would like to know if it's possible to forward a message received to a one webhook to another webhook
Does Discord messaging API supports this?

Last Message Sent by User Messenger Bot

I'm working with Facebook Messenger Bots and I need a way to make an HTTP Request for the last message sent by the user. All I can find is that Messenger Bots send a web hook with the information but, I specifically need to be able to manually check for the last message sent by the user. Any input would be helpful. Thank you.

Facebook Messenger Bot cannot send message to a given ID not working

I want to send message to a user any time using facebook messenger API.
I'm using developer version of messaging app and has not submitted for review yet.
We are two friends both as developer in the app. I want when my friend sends message to my page, Bot replies and a copy of message sent by friend comes to my inbox. But when I tried api throws following error.
{"error":{"message":"(#100) Parameter error: You cannot send messages to this id","type":"OAuthException","code":100,"fbtrace_id":"HRTLdvidA4u"}}
Is there any solution.
Thanks.

Resources