TelegramBots icon indicating copy to clipboard operation
TelegramBots copied to clipboard

Add Message.hasCaption() method

Open NikMAX2077 opened this issue 9 months ago • 0 comments

Is your feature request related to a problem? Please describe. I discovered that Message class has method hasText() that check message for text, but it have not similar method for media captions.

Describe the solution you'd like Method hasCaption() that return true if message has media caption and false if it's not.

Describe alternatives you've considered Of course I can check caption field for null or empty string, but it seems to me that hasCaption() method would look intuitive and checking messages for captions would not be out of general style of the library

NikMAX2077 avatar May 27 '24 21:05 NikMAX2077