Skip to content

TextMessageV2 Substitution should be interface instead of struct #599

@SarawinT

Description

@SarawinT

Expected Behavior

To use Substitution field in TextMessageV2 should be able to use any of the substition type.

Current Behavior

Cannot use any of the substitions type (eg. MentionSubstitutionObject) as value in map of Substitution to push message.

Fix

Change type of Substitution from map[string]SubstitutionObject to map[string]SubstitutionObjectInterface in File: linebot/messaging_api/model_text_message_v2.go Line: 50 (or wherever it's defined) seems to fixed the issue.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions