TelegramBotAPI v0.30.0 Release Notes
Release Date: 2020-11-07 // over 3 years ago-
⚡️ THIS UPDATE CONTAINS A LOT OF BREAKING CHANGES. PLEASE, BE CAREFUL ON UPGRADING OF YOUR PROJECT
Common
:Version
:Coroutine
:1.4.0
->1.4.1
- NEW
MicroUtils
:0.2.7
Core
:- Support of
logOut
method (LogOut
object as aRequest
) - Support of
close
method (Close
object as aRequest
) SetWebhook
updates:- New field
ipAddress
. It works the same asip_address
in setWebhook section - New field
dropPendingUpdates
. It works the same asdrop_pending_updates
in setWebhook section
- New field
- New field
ExtendedPrivateChat#bio
- New data class
ChatLocation
- New field
UnbanChatMember#onlyIfBanned
- New fields
ExtendedChannelChat#linkedGroupChatId
andExtendedSupergroupChat#linkedChannelChatId
- New fields
ExtendedSupergroupChat#location
- New fields
AudioFile#fileName
andVideoFile#fileName
- New fields
SendDocument#disableContentTypeDetection
andInputMediaDocument#disableContentTypeDetection
- New request
UnpinAllChatMessages
- New parameter for
unpinChatMessage
method:messageId
- New dice type
FootballDiceAnimationType
- Limits for dices has been changed
commonDiceResultLimit
has been deprecated- New field
DiceAnimationType#valueLimits
- Locations updates:
- New interface
Headed
with propertyheading
- New interface
HorizontallyAccured
with propertyhorizontalAccuracy
- New interface
ProximityAlertable
with propertyproximityAlertRadius
Location
class has been separated:StaticLocation
for static locationsLiveLocation
for live locations
- Property
Livable#livePeriod
now use typealias typeSeconds
(the same by meaning -Int
) EditLocationMessage
now extendsLocationed
,HorizontallyAccured
,ProximityAlertable
andHeaded
interfaces- New properties in
EditChatMessageLiveLocation
:horizontalAccuracy
,heading
,proximityAlertRadius
- New properties in
EditInlineMessageLiveLocation
:horizontalAccuracy
,heading
,proximityAlertRadius
- New properties in
- Main constructor of
SendLocation
now is internal. Instead of that currently available next factories:SendLocation
- sending of static location without live parametersSendStaticLocation
- sending of static location without live parametersSendLiveLocation
- sending of live location with live parameters
PositionedSendMessageRequest
now extendsLocationed
LocationContent#createResend
now can createLiveLocation
- New interface
- Support of
ProximityAlertTriggered
. It isCommonEvent
- Property
pollQuestionTextLength
now have maximum up to300
- Anonymous Admins:
- New field
AdministratorChatMember#isAnonymous
- New field
- Several new interfaces of messages:
SignedMessage
- any message which possibly haveauthorSignature
WithSenderChatMessage
- any message which havesenderChat
. PropertysenderChat
is not-nullable due to separation of implementatorsPublicMessage
- all channel messages have propertyval chat: PublicChat
instead of commonval chat: Chat
ChannelMessage
- all channel messages have propertyval chat: ChannelChat
instead of commonval chat: Chat
- Old
ChannelMessage
was safely renamed toChannelMessageImpl
(old name was set as typealias and deprecated)
- Old
GroupMessage
- all group messages have propertyval chat: GroupChat
instead of commonval chat: Chat
FromChannelGroupMessage
- instances should have propertyval channel: ChannelChat
AnonymousGroupMessage
- instances may have setup propertyauthorSignature
CommonGroupMessage
- just common message
PrivateMessage
- works like previousCommonMessageImpl
- Previous
CommonMessageImpl
safely renamed toPrivateMessageImpl
- New property
PromoteChatMember#isAnonymous
- Update all classes which must have
entities
/caption_entities
fields - New request
CopyMessage
- New extension
List<TextSource>#makeString
for more comfortable work with new api with entities - Support for Google Places identifiers for venues
- New extensions for text sources separating:
List<TextSource>#separateForMessage
List<TextSource>#separateForCaption
List<TextSource>#separateForText
- Rewritten work with text sources and text parts:
- Now any
Message
type with entities will have full list of entities. That means that parts without any formatter entities will useRegularTextSource
MultilevelTextSource#textParts
has been deprecated. Now eachMultilevelTextSource
have its owntextSources
list
- Now any
- New dsl for creating of
TextSource
lists - Built-in
handleSafely
andExceptionHandler
is deprecated - New common factories for
StorageFile
- Support of
API
:- Extensions
TelegramBot#pinChatMessage
now support anyChat
andMessage
s from anyChat
- New extensions
TelegramBot#unpinAllChatMessages
- Extensions
TelegramBot#promoteChatMember
gotisAnonymous
parameter - All old api methods has been actualized to their analogs in
Core
- All
telegramBot
withtoken: String
gotapiUrl
parameter - Factory
telegramBotWithCustomClientConfig
has been renamed totelegramBot
- Extensions