Commit c9b896c6 authored by smoqadam's avatar smoqadam

move all chat action constants into the new class

parent 6fea113e
...@@ -371,7 +371,7 @@ See the [*ImageCommand.php*][ImageCommand.php] for a full example. ...@@ -371,7 +371,7 @@ See the [*ImageCommand.php*][ImageCommand.php] for a full example.
```php ```php
Request::sendChatAction([ Request::sendChatAction([
'chat_id' => $chat_id, 'chat_id' => $chat_id,
'action' => 'typing', 'action' => Longman\TelegramBot\ChatAction::TYPING,
]); ]);
``` ```
......
<?php
/**
* This file is part of the TelegramBot package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Longman\TelegramBot;
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';
/**
* Upload Video chat action
*/
const UPLOAD_VIDEO = 'upload_video';
/**
* Record Audio chat action
*/
const RECORD_AUDIO = 'record_audio';
/**
* Upload Audio chat action
*/
const UPLOAD_AUDIO = 'upload_audio';
/**
* Upload Document chat action
*/
const UPLOAD_DOCUMENT = 'upload_document';
/**
* Find Location chat action
*/
const FIND_LOCATION = 'find_location';
/**
* Record Video Note chat action
*/
const RECORD_VIDEO_NOTE = 'record_video_note';
/**
* Upload Video note chat action
*/
const UPLOAD_VIDEO_NOTE = 'upload_video_note';
}
...@@ -26,56 +26,6 @@ use RegexIterator; ...@@ -26,56 +26,6 @@ use RegexIterator;
class Telegram class Telegram
{ {
/**
* Typing chat action
*/
const ACTION_TYPING = 'typing';
/**
* Upload Photo chat action
*/
const ACTION_UPLOAD_PHOTO = 'upload_photo';
/**
* Record Video chat action
*/
const ACTION_RECORD_VIDEO = 'record_video';
/**
* Upload Video chat action
*/
const ACTION_UPLOAD_VIDEO = 'upload_video';
/**
* Record Audio chat action
*/
const ACTION_RECORD_AUDIO = 'record_audio';
/**
* Upload Audio chat action
*/
const ACTION_UPLOAD_AUDIO = 'upload_audio';
/**
* Upload Document chat action
*/
const ACTION_UPLOAD_DOCUMENT = 'upload_document';
/**
* Find Location chat action
*/
const ACTION_FIND_LOCATION = 'find_location';
/**
* Record Video Note chat action
*/
const ACTION_RECORD_VIDEO_NOTE = 'record_video_note';
/**
* Upload Video note chat action
*/
const ACTION_UPLOAD_VIDEO_NOTE = 'record_video_note';
/** /**
* Version * Version
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment