Skip to content

Releases: ShaneQi/ZEGBot

Lowered Swift Requirement to `5.0`

04 Dec 07:39
Compare
Choose a tag to compare
4.2.8

Lower swift requirement to 5.0.

4.2.7 - Multipart Uploading

03 Dec 05:36
Compare
Choose a tag to compare

Now you can send resource (document, video, photo, etc) from a local file.

Completed All `MessageEntity` Types

24 Jun 14:57
Compare
Choose a tag to compare

underline and strikethrough types were missing from MessageEntity type enum, which has been causing parsing errors. Not it's fixed.

More Friendly to One-way Usage

12 Apr 04:31
Compare
Choose a tag to compare

By 'One-way Usage', I meant using ZEGBot to do stuff like sending messages without listening to updates. For some users, their bots don't care about what they receive, they only want to use the library to send content. An channel bot is a good example.

In this version:

  1. AnyChat and AnyMessage were introduced so that you can send content to any chat or replay to any message as long as you have the chat id or/and message id. Previously, you have to run the bot to listen to updates to get the Chat or Message objects to send content.
  2. Enum ServerStoredContent.Location (case telegramServer(fileId: String) and case internet(url: URL)) were introduced to support sending content that's either on Telegram server (with the file id), or on the internet (with an url).

API break change, edit message text/caption methods and `Message.mediaGroupId`.

21 Mar 03:12
Compare
Choose a tag to compare
  1. API break change: ZEGBot.run(withHandler:) now accepts a block of handling MULTIPLE Update objects, it used to accept a block of handling a single Update object.
  2. Added edit message text method and edit message caption method.
  3. Added Message.mediaGroupId.

Adopted FoundationNetworking (New Module w/ Swift 5.1)

20 Mar 03:43
Compare
Choose a tag to compare

Swift 5

29 Aug 19:58
Compare
Choose a tag to compare

Now we embraced Swift 5.

API Change Alert!

09 Nov 17:44
Compare
Choose a tag to compare

API change: methods that return Result<T> objects are now changed to throws -> T.

New supported methods:

  • deleteMessage
  • getChatAdministrators
  • answerCallbackQuery
  • restrictChatMember
  • kickChatMember

Swift 4.1

05 Jun 20:42
Compare
Choose a tag to compare
4.0.1

NO DEPENDENCY!

30 Sep 05:37
Compare
Choose a tag to compare

Thanks to Swift 4.0, we have this shining new Codable feature. And I love Codable!

I removed the last dependency IBM-Swift/SwiftyJSON, embraced Codable, and we don't have any dependencies anymore!

The only API change is:

UpdateHandler now handles Result<Update>. Which means that not only updates but also errors will be passed to the handler.