>&2echo -e "\033[1;31mMissing Github Token! Please get a BotToken from 'Github Settings->Developer settings->Personal access tokens' and set it in Repo Secrect\033[0m"
exit1
fi
if[ -z $BOTTOKEN];then
>&2echo -e "\033[1;31mMissing Bot Token! Please get a BotToken from @Botfather on Telegram and set it in Repo Secrect\033[0m"
exit2
fi
if[ -z $CHATIDS];then
>&2echo -e "\033[1;31mMissing ChatIds! Please get ChatId from @GroupIDbot on Telegram Chats(Muti chatids split with comma ',') and set it in Repo Environment Values\033[0m"
exit2
fi
chat_ids=`echo$CHATIDS| sed 's/,/ /g'`
function login_gh(){
printf"#%.0s"{1..60}
echo
echo -e "## \033[1;33mLogin to github to use github-cli...\033[0m"