Telegrammer Versions Save

Telegram Bot - written with Swift 5.2 / NIO, supports Linux, macOS

1.0.0-alpha.3.1

4 years ago

In a group chat, Telegram allows specifying the bot to receive commands sent by a user by appending "@botUsername" in the command, while this feature is not working as expected currently in Telegrammer:

If the user specifies the bot, the CommandHandler considers it a different command with "@" in the command name. We need to manually add a new command "/originalCommand@botUsername" to support it, which could be somehow misleading since most users (at least me) of this package would normally consider this automatically handled.

Using the workaround in 1. would cause each command to be coded twice, which can be tedious and inelegant in cases where there are many commands in a CommandHandler. Therefore, I added the ability of checking the bot specified to the CommandHandler. This change does not break the existing API but only asks the username of the bot in the initializer optionally, and should then handle things correctly as intended.

1.0.0-alpha.3

4 years ago

1.0.0-alpha.2

4 years ago
  • Get rid of third party libraries
  • Using only multipart-kit from Vapor
  • Using new AsyncHTTPClient based on NIO 2.0
  • Updated to latest version of Telegram API

0.5.4

4 years ago
  • Added swift-log
  • Minor improvements and bug fixes

0.5.2

5 years ago

0.5.1

5 years ago

Added:

  • BasicJobQueue, OnceJob, RepeatedJob, DailyJob
  • SchedulerBot example, which demonstrate JobQueue works
  • SpellCheckerBot example, which demonstrate how to use InlineKeyboardButton and CallbackQueryHandler

0.5.0

5 years ago

Full support for Telegram Bot API 4.1, compatibility with swift 5.0

0.4.4

5 years ago

0.4.3

5 years ago

Temporarily switched from vapor/http to URLSession

0.4.0

5 years ago