Skip to content

Breaking Bot API v7.0 and v7.1 support and other minor changes

Compare
Choose a tag to compare
@mr-linch mr-linch released this 18 Feb 13:02
· 12 commits to main since this release
c6ec119

⚠️ This release is not compatible with previous releases. Bot API v7.0 has many changes in methods and types. Since types and methods are generated from official documentation, backward compatibility is broken.

Major breaking changes:

  • Types:
    • Fields Message.Forward* replaced with Message.ForwardOrigin.*
    • Change type of Message.PinnedMessage from Message to MaybeInaccessibleMessage
    • Renaming field of Message and type UserShared -> UsersShared
    • Change type of CallbackQuery.Message from Message to MaybeInaccessibleMessage
    • InputTextMessageContent.DisableWebPagePreview replaced with InputTextMessageContent.LinkPreviewOptions
  • Methods:
    • Replace *.DisableWebPagePreview(...) with *.LinkPreviewOptions(...)
    • Replace *.AllowSendingWithoutReply(...) and *.ReplyToMessageID(...) with *.ReplyParameters(...)
image image

Other changes

  • allow to use custom func for get ip from request by @mr-linch in #133
  • chore(deps): bump actions/setup-go from 4 to 5 by @dependabot in #134
  • chore(deps): bump codecov/codecov-action from 3 to 4 by @dependabot in #136
  • Add blockquote support for HTML and MD2 by @adasauce in #138
  • chore(deps): bump golangci/golangci-lint-action from 3 to 4 by @dependabot in #139

New Contributors

Full Changelog: v0.11.0...v0.12.0