OptionalbothSides?: booleanWhether to pin for both sides (only for private chats)
Optionalnotify?: booleanWhether to send a notification (only for legacy groups and supergroups)
OptionalshouldDispatch?: trueWhether to dispatch the returned service message (if any) to the client's update handler.
Service message about pinned message, if one was generated.
Pin a message in a group, supergroup, channel or PM.
For supergroups/channels, you must have appropriate permissions, either as an admin, or as default permissions