Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update thread message #199

Open
Alansyf opened this issue Jan 19, 2023 · 2 comments
Open

Update thread message #199

Alansyf opened this issue Jan 19, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Alansyf
Copy link

Alansyf commented Jan 19, 2023

Hi

I am using below sample code and it will work.

msg, err := adaptivecard.NewSimpleMessage(msgText, msgTitle, true)
	if err != nil {
		log.Printf(
			"failed to create message: %v",
			err,
		)
		os.Exit(1)
	}

	// Send the message with default timeout/retry settings.
	if err := mstClient.Send(webhookUrl, msg); err != nil {
		log.Printf(
			"failed to send message: %v",
			err,
		)
		os.Exit(1)
	}

Is that possible that I can get the "parentMessageId", so next time in my code, I can have my logic, i can do "reply" the same message thread, rather than create a new message.

image

@atc0005 atc0005 added enhancement New feature or request help wanted Extra attention is needed labels Jan 19, 2023
@atc0005
Copy link
Owner

atc0005 commented Jan 19, 2023

@Alansyf: Is that possible that I can get the "parentMessageId", so next time in my code, I can have my logic, i can do "reply" the same message thread, rather than create a new message.

Unfortunately, I'm not aware of a way to make this work.

The current implementation uses a webhook to deliver a message. While the remote endpoint accepts the message and confirms receipt, it doesn't provide a message ID in the response.

This said, if you come across a way to perform the action that we can implement in this library I'm interested in adding it.

@sgaunet
Copy link

sgaunet commented Nov 9, 2023

Hi,

I'm interested too. I just read the documentation quickly.

With send chatmessage we can get the id of the message and send reply by using the id of the chat message.

Here is a usefull link too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants