Create a Bot API schema, containing current Bot API version, all the objects, types and methods.
Currently, there is a JSON schema, but it only stands for MTProto and is not actually compatible with Bot API. And even if you wanted to infer types from Bot API documentation page, you would need to write a parser of that page (which is actually not that easy) like in ark0f/tg-bot-api.
Use Cases
New way for easy and flexible code/type generation
That would really useful for writing clients and testing them. E.g. I could write a generator for fake requests and responses to test serialization logic and also autogenerate types and requests for a client. I'd really like to have an OpenAPI 3.0+ compatible schema. Thanks.
Log in here to report bugs or suggest features. Please enter your phone number in the international format and we will send a confirmation message to your account via Telegram.