nerzh / swift-telegram-sdk

🤖 The wrapper for the Telegram Bot API written in Swift. It's not a framework. There is no special syntax here. This is a library that implements all Telegram Bot API methods, which is available to you to work with Vapor, Smoke, Hummingbird, FlyingFox.
https://core.telegram.org/bots/api#available-methods
MIT License
208 stars 32 forks source link

Update TGInaccessibleMessage.swift #18

Closed crescentheaded closed 9 months ago

crescentheaded commented 9 months ago

Always 0.

nerzh commented 9 months ago

Hello, ok, but you do not understand one nuance, this code is generated. And at the next release, the generator will delete all your changes.

nerzh commented 9 months ago
Снимок экрана 2024-01-21 в 02 22 25

I understand that you can write it more beautifully, but then you will have to manually check all the classes and changes with your eyes every day. Search manually every day for these changes on the documentation site in the Telegram API. If you're ready for it, you can try it. Now all classes fully comply with the official Telegram API.

nerzh commented 9 months ago

if in this class the field is always 0, then this is a question not for this library, but for the developers of the telegram api, I will not make my class changes to the official telegram api, simply because it is convenient at the moment.

crescentheaded commented 9 months ago

didn't know about automatic generation. roger that