Don't have Telegram yet? Try it now!
https://napitwptech.com/tutorial/wordpress-development/check-for-custom-post-types-condiotionally-wordpress/
Check For Custom Post Types Condiotionally In WordPress