How to Find If Any Text Is Present Inside Any Presentation Object in Python?

How to check if there is any text present inside an object and the object can be a textbox, chart, rectangle shape, oval shape, ole object etc?
Suppose if I pass on a textbox it should give me True, on the other hand, if I pass on a chart or ole object it should give me False.
Python-pptx has function called “has_text” which exactly serve my requirement but looking for if anything we have in Aspose.slides for python

@a0pro0b,
Thank you for posting the question.

You can check if any presentation object contains a text frame like this:

has_text_frame = hasattr(shape, "text_frame")

then you can check text in the shape using the following property:

shape.text_frame.text

Useful articles: Manage Text