elbekD / kt-telegram-bot

Telegram Bot Library for Kotlin language
MIT License
103 stars 19 forks source link

Create codegen tooling #41

Open elbekD opened 2 years ago

elbekD commented 2 years ago

Now in order to support changes in API it is necessary to do eye-parsing of changes and then write additional code. It is manual, time consuming and error prone activity. Consider next solutions:

  1. Maybe there is some structured file(s) with definitions of the API(like yaml or json files). If there are then make code generation tool
  2. Make code generation tool which will parse html file of the API page
SonicNorg commented 8 months ago

Here yaml and json TelegramBot API can be found: https://github.com/sys-001/telegram-bot-api-versions/tree/main/files/openapi/yaml