td
td copied to clipboard
gen: derive mappings with parameters
Description
PR #374 removed mapping for Photo -> InputPhotoFileLocation
due to InputPhotoFileLocation
requires ThumbSize
field.
But gotdgen
can generate mapping like AsInputPhotoFileLocation(thumbSize string) *tg.InputPhotoFileLocation
, where thumbSize
passed by user.
References
mappableFields
returns possible As
mapping.
https://github.com/gotd/td/blob/9ce051b1eb02739de38fc6973b14fd4ccaa5aa98/internal/gen/fields.go#L28-L73
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.