TelegramBots
TelegramBots copied to clipboard
message.hasPhoto() never be true
This method always false, when I tried to send photos. I wrote this simple code: `if (message.hasPhoto()) { messageActions.sendMsg(message,"OK"); }
if (message.getText().toLowerCase().matches("(\W*)?hi")) { messageActions.sendMsg("OK"); }` so, second condition works perfectly, but first condition never works. P.S. sorry for some troubles in my English
The source code for hasPhoto looks pretty clean. How are you sending photos? Keep in mind that uncompressed Pictures are not Photos but Documents.