Optional
bothSides?: booleanWhether to pin for both sides (only for private chats)
Optional
notify?: booleanWhether to send a notification (only for legacy groups and supergroups)
Optional
shouldDispatch?: 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