When working with shell scripts, make sure that the EOL of ALL related files, let it be the script itself or the configuration files, are LF instead of CR LF
You can only only pin messages in a Super Group. If you convert a normal group to a Super Group, only messages posted after the Super Group conversion can be pinned.