Closed luckydonald closed 3 years ago
In that case it should be changed in the code to be camelCase IMO. It really doesn't make sense to have a single endpoint work differently to all the others.
It's a bit of a mixture between an endpoint and the /bot
or /user
path part. I think having it lowercase is fine
@code1mountain
If it would be /user/login
I'd be all on board with you.
Most users would expect it to be like the telegram docs do it, camelCase.
The ability for lower case has not been documented, and are not widely known or used.
@luckydonald In the official docs of bot api is stated that all the methods names are case insensitive
@skrtdev Ah yes. Indeed. Missed that. Still, I'd rather keep it similar to the documentation's casing.
@giuseppeM99 merge?
@andrew-ld the build failed (because GitHub), I just restarted it. Wait until it's completed.
@luckydonald No, only userlogin in lowercase works. The case is usually ignored, but this is a special method where this is not possible. Please have a look at the respective code.