Skip to content

Generalize interactive button to support lists selection too#235

Merged
kzu merged 1 commit intomainfrom
dev/Selection
Jul 10, 2025
Merged

Generalize interactive button to support lists selection too#235
kzu merged 1 commit intomainfrom
dev/Selection

Conversation

@kzu
Copy link
Member

@kzu kzu commented Jul 10, 2025

Our previous InteractiveMessage assumed the payload to the webhook would always be a response to a button interactive message. The responses for list selection can be modeled similiarly since they contain id/title too.

So we make the interactive message more general by creating a new Selection record for both buttons and lists.

@kzu kzu added the enhancement New feature or request label Jul 10, 2025
@kzu kzu enabled auto-merge (rebase) July 10, 2025 13:29
@kzu
Copy link
Member Author

kzu commented Jul 10, 2025

39 passed 39 passed 10 skipped

🧪 Details on Ubuntu 24.04.2 LTS

from dotnet-retest v0.7.1 on .NET 8.0.18 with 💜 by @devlooped

Our previous InteractiveMessage assumed the payload to the webhook would always be a response to a button interactive message. The responses for list selection can be modeled similiarly since they contain id/title too.

So we make the interactive message more general by creating a new Selection record for both buttons and lists.
@kzu kzu force-pushed the dev/Selection branch from 8827921 to c24317f Compare July 10, 2025 13:35
@kzu kzu merged commit 8edcae3 into main Jul 10, 2025
7 checks passed
@kzu kzu deleted the dev/Selection branch July 10, 2025 13:37
@devlooped devlooped locked and limited conversation to collaborators Aug 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant