We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are no enums in PHP, but it might be useful to add constants for available string values.
For example, in sendChatAction there is a parameter action with available values: typing, upload_photo , record_video etc.
For this values it's possible to add constants in SendChatAction class: const TYPE_TYPING = 'typing'; const TYPE_UPLOAD_PHOTO = 'upload_photo'; ...
const TYPE_TYPING = 'typing';
const TYPE_UPLOAD_PHOTO = 'upload_photo';
IDE will allow you to avoid typos and will give a prompt with autocomplete.
The text was updated successfully, but these errors were encountered:
Hi @kavnik : This is certainly possible and also a good idea 👍
You can shoot in a PR or wait until I got time to implement it (which will possibly be tonight)
Sorry, something went wrong.
Implements #107
ecba9e7
Implemented in v3.6.0!
No branches or pull requests
There are no enums in PHP, but it might be useful to add constants for available string values.
For example, in sendChatAction there is a parameter action with available values:
typing, upload_photo , record_video etc.
For this values it's possible to add constants in SendChatAction class:
const TYPE_TYPING = 'typing';
const TYPE_UPLOAD_PHOTO = 'upload_photo';
...
IDE will allow you to avoid typos and will give a prompt with autocomplete.
The text was updated successfully, but these errors were encountered: