TelegramBotAPI v0.35.5 Release Notes
-
🗄 MIME TYPES FOR REQUESTS HAVE BEEN DEPRECATED DUE TO REDUNDANCY OF MIME TYPES IN FILES SENDING
Core
:- Several new extensions
ByteReadChannel#asStorageFile
andByteReadChannelAllocator#asStorageFile
- Several new extensions
ByteArray#asMultipartFile
,ByteReadChannel#asMultipartFile
andByteReadChannelAllocator#asMultipartFile
- New extension
StorageFile#asMultipartFile
- Several new extensions
API
:- New extensions
TelegramBot#downloadFile
for writing of incoming bytes to the file - New extensions
TelegramBot#downloadFileStream
andTelegramBot#downloadFileStreamAllocator
for getting of input streams instead of whole bytes arrays - Old extensions
TelegramBot#downloadFile
has been replaced to the new package. Migration: replace in your projectimport dev.inmo.tgbotapi.extensions.api.downloadFile
withimport dev.inmo.tgbotapi.extensions.api.files.downloadFile
PathedFile#filename
extension has been deprecated, and new propertyPathedFile#fileName
has been included directly inPathedFile
- New extensions
Utils
:- Add several functions
convertToStorageFile
and extensionsTelegramBot#convertToStorageFile
- Add several functions