-
-
Notifications
You must be signed in to change notification settings - Fork 963
#858 add chat action constants #859
New issue
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
Conversation
src/Telegram.php
Outdated
/** | ||
* Upload Video note chat action | ||
*/ | ||
const ACTION_UPLOAD_VIDEO_NOTE = 'record_video_note'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...to prevent from future mistakes like typos.
Unless they are built-in 😁
Please correct this one.
@php-telegram-bot/developers class Action
{
const TYPING = 'typing';
const UPLOAD_PHOTO = 'upload_photo';
const RECORD_VIDEO = 'record_video';
const UPLOAD_VIDEO = 'upload_video';
const RECORD_AUDIO = 'record_audio';
const UPLOAD_AUDIO = 'upload_audio';
const UPLOAD_DOCUMENT = 'upload_document';
const FIND_LOCATION = 'find_location';
const RECORD_VIDEO_NOTE = 'record_video_note';
const UPLOAD_VIDEO_NOTE = 'upload_video_note';
} We'd also have to decide what namespace to put them in. |
+1 for separate class |
# Conflicts: # README.md
class ChatAction
{
/**
* Typing chat action
*/
const TYPING = 'typing';
/**
* Upload Photo chat action
*/
const UPLOAD_PHOTO = 'upload_photo';
/**
* Record Video chat action
*/
const RECORD_VIDEO = 'record_video';
..... usageRequest::sendChatAction([
'chat_id' => $chat_id,
'action' => Longman\TelegramBot\ChatAction::TYPING,
]); |
Absolutely! Thanks for the fixed PR 👍 |
#858 add chat action constants