This repository has two schema inputs. They are updated differently.
- Replace
schema/main_api.tl,schema/sys_msgs.tlandschema/auth_key.tlwith the new layer. Keep the layer line inmain_api.tlcurrent. - Set the layer the client sends:
kLayerinsrc/client.cpp. - Regenerate:
make tl-generate. - Check:
make schema-check. It must pass, andschema/SHA256SUMS.txtmust be updated withbash tools/update_schema_checksums.sh. - Run the offline suites (
make test). Read the results. Do not edit generated files by hand.
See schema/README.md for the inputs and the generated files.
src/ApiMethods.cpp and include/cppgram/bot/ApiMethods.inc.h say they are generated by make api-generate. That
target, its generator, and the make api-update step do not exist in this repository. The Bot API spec files in api/
(telegram-bot-api.yaml, codegen.yaml) are inputs to that external generator and are not read by any build step here.
The Bot API layer compiles and its tests pass (cppgram_bot_test), but the generated files cannot be regenerated from this
repository. Changing the Bot API surface means editing the generated files, which the headers forbid, or restoring the
generator. Until one of those happens, treat the Bot API layer as frozen. This is listed in KNOWN_LIMITATIONS.md.