A method was created in the library to detect the type of message sent by the user in a Telegram bot.
Values returned by the method include 'text', 'photo', 'video', 'audio', 'document', 'sticker', 'animation', 'location', 'contact', 'poll'.
Constants for message types were put in the Message class for easy access and usage in conditions.
A separate method 'isCallbackQuery' was developed to detect when a client clicks on an inline button in the Telegram bot, providing access to the callback data.