You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tg api takes a space-separated flag value as true #68
tg api <method> --name value passes true for name: citty reads unknown flags without = as booleans and leaves value as a positional. So tg api account.checkUsername --username myuser fails with TELEGRAM_ERROR (exit 5), while --username=myuser and --json '{"username":"myuser"}' work.
Fix: either read --name value pairs for unknown flags in tg api, or fail with INVALID_ARGS that suggests --name=value when a method argument comes out as true and a stray positional follows it.
Done when an e2e test shows tg api account.checkUsername --username myuser and --username=myuser build the same call (or the first fails with INVALID_ARGS and the suggestion), and docs/api-design.md says which form works.
Activity
docs: pass the tg api example's argument as --username=myuser
docs: add the changelog entries for the 0.4.1 bug fixes