Closed JulianGarcia04 closed 2 months ago
I'll try to take a look later on.
I don't understand, is this library bug or it is something in your code?
The bug is from library. Because when I set a component as button type then the parameter type must be change to TemplateMessageButtonParameter[].
Another error is the TemplateMessageButtonParameter is bad. Because it is doing merge with GenerateMappedNever and the type parameter change to never.
Problem solve in pull request #43
Thanks for this @JulianGarcia04 , I just came across this issue yesterday when sending a template message by the first time :)
I have a error with this type when i try to set button parameters.
And I try to change the type for a custom type...
And it show this error.
Because "TemplateMessageButtonParameter" has a "GenerateMappedNever" being the problem
And another problem is that when I try set a component with type equal to "button", the paramaters must be "TemplateMessageButtonParameter" and it doesn't change the type from "TemplateMessageParameter[]" to TemplateMessageButtonParameter[]", and I can't set a parameter with type equal "payload".
A image with more details of the problem...
Some solution ???
Thanks