Add ParseMode to EditMessageCaption#183
Conversation
Syfaro
left a comment
There was a problem hiding this comment.
Thank you for the new types! There's just the one issue about breaking backwards compatibility that needs to be resolved.
|
|
||
| // NewEditMessageCaption allows you to edit the caption of a message. | ||
| func NewEditMessageCaption(chatID int64, messageID int, caption string) EditMessageCaptionConfig { | ||
| func NewEditMessageCaption(chatID int64, messageID int, caption, parseMode string) EditMessageCaptionConfig { |
There was a problem hiding this comment.
This breaks backwards compatibility.
Instead of adding a new required parameter you can modify the returned EditMessageCaptionConfig. If you find yourself doing this frequently, you could add a helper function to your own code. Due to go's lack of overloading or optional parameters, it's unreasonable to create a helper function for each additional possible field.
There was a problem hiding this comment.
You are right!
I removed parseMode from the function for sake of backwards compatibility.
|
@733amir I see that almost all your |
Yes, I believe so. |
No description provided.