Skip to content

Releases: ExpressApp/pybotx

0.24.0 (Sep 14, 2021)

14 Sep 14:14
6a2c7e4
Compare
Choose a tag to compare

Removed

  • File extensions validation.
  • File.has_supported_extension classmethod.

Added

  • Multiple mime-types.

Changed

  • File.get_ext_by_mimetype now don't raise ValueError and returns None if mimetype not found.

0.23.2 (Sep 09, 2021)

09 Sep 09:29
4d0d827
Compare
Choose a tag to compare

Added

  • Add file_name param to download_file method to provide ability to change the returned file name.

0.23.1 (Aug 30, 2021)

31 Aug 07:14
Compare
Choose a tag to compare

Fixed

  • Memory leak in bot.tasks collection.

0.23.0 (Aug 25, 2021)

25 Aug 12:10
7e2cef0
Compare
Choose a tag to compare

Added

  • Add method for uploading files to chat.
  • Add method for downloading files from chat.

Changed

  • Add data and files fields to HTTPRequest for sending multipart/form-data in request.
  • Add expected_type field to HTTPRequest and expected_type property to BaseBotXMethod
    to allow interacting with non JSON responses.
  • Add should_process_as_error field to HTTPRequest so that errors that are not in
    the range of 400 to 599 can be added.
  • Add raw_data to HTTPResponseso that you can process raw content of response.

0.22.1 (Aug 25, 2021)

25 Aug 09:26
Compare
Choose a tag to compare

Added

  • Add embed_mentions argument in from_message method.

Fixed

  • Fix EMBED_MENTION_RE expression

0.22.0 (Aug 19, 2021)

23 Aug 08:19
371b631
Compare
Choose a tag to compare

Tested on BotX 1.44.0-rc2

Added

  • Sending and handling internal bot notifications.

0.21.3 (Aug 23, 2021)

23 Aug 06:47
832c257
Compare
Choose a tag to compare

Fixed

  • Bot's method authorize() now not fall if cant take some tokens. Just logging and skip invalid credentials.

0.21.2 (Aug 3, 2021)

03 Aug 09:17
036a844
Compare
Choose a tag to compare

Fixed

  • File is now serializing when sending message.

0.21.1 (Jul 28, 2021)

28 Jul 09:34
71eedab
Compare
Choose a tag to compare

Fixed

  • Make the body attribute of Reply event optional.
  • Add AttachmentMeta model to Reply event instead of Attachments.

0.21.0 (Jul 23, 2021)

23 Jul 13:41
97e0962
Compare
Choose a tag to compare

Tested on BotX 1.42.0-rc4

Fixed

  • Remove Dict[str, Any] from type of error_data field of BotDisabledResponse,
    now it can only be BotDisabledErrorData.