帖子内容
✳️ API | JAVA ✳️ ➡️ Version: 0.5.1 ➡️ Creator: @zackpollard ➡️ Channel: @javatelegrambotapi https://github.com/zackpollard/JavaTelegramBot-API ✳️ Changelog ✳️ ➡️ Provided API key is now checked to see if it's invalid. TelegramBot.login(String key) will return null if the key is invalid and will print an error to the console. ➡️ Supported downloading files from URL for sending in messages. Added InputFile(URL url) to support this. Automatic cacheing of downloaded files is implemented. ➡️ Feature: Added ability to use markdown in messages as specified in the API here https://core.telegram.org/bots/api#using-markdown You can do this for SendableTextMessage's by setting the parse mode to ParseMode.MARKDOWN. This feature is currently only supported by a few clients such as the android client, desktop client does not have support just yet. ➡️ Bugfixes.