TelegramBotAPI v0.22.0 Release Notes

    • KtorCallFactory must return HttpStatement instead of HttpClientCall
    • ๐Ÿ—„ SendMessage was renamed to SendTextMessage and previous SendMessage is deprecated
    • All AbleToBe* interfaces was renamed to Possibly*
      • AbleToBeEditedMessage -> PossiblyEditedMessage
      • AbleToBeForwardedMessage -> PossiblyForwardedMessage
      • AbleToBeMarkedUp -> PossiblyMarkedUp
      • AbleToBeEditedMessage -> PossiblyEditedMessage
    • ForwardedMessage type was renamed to ForwardInfo
      • AnonymousForwardedMessage -> AnonymousForwardInfo
      • UserForwardedMessage -> UserForwardInfo
      • ForwardedFromChannelMessage -> ForwardFromChannelInfo
      • PossiblyForwardedMessage#forwarded field now renamed to forwardInfo
    • All serializers in library now are internal. If you have used some of them or I have marked as internal by a mistake - don't hesitate to say this.
    • EditChatMessage now have generic type and extends SimpleRequest<ContentMessage<GenericType>>
    • ResendableContent now extends Request<out Message> instead of Request<Message>
    • Most part of requests have changed return type. They are listed below:

      • ForwardMessage
      • GetChatAdministrators
      • EditChatMessageLiveLocation
      • StopChatMessageLiveLocation
      • EditChatMessageText
      • EditChatMessageCaption
      • EditChatMessageMedia
      • EditChatMessageReplyMarkup
      • SendAnimation
      • SendAudio
      • SendContact
      • SendLocation
      • SendTextMessage
      • SendPoll
      • SendVenue
      • SendGame
      • SendDocument
      • SendMediaGroup
      • SendPhoto
      • SendVideo
      • SendVideoNote
      • SendVoice
      • SendSticker
    • ๐Ÿ”„ Changed type of createResend

      • GameContent
      • LocationContent
      • PollContent
      • TextContent
      • VenueContent
      • AnimationContent
      • AudioContent
      • DocumentContent
      • ContactContent
      • PhotoContent
      • VideoContent
      • VideoNoteContent
      • VoiceContent
      • StickerContent
    • ๐Ÿ”– Version updates:

      • Ktor 1.2.6 -> 1.3.0