Unverified Commit 9bf5c34e authored by Armando Lüscher's avatar Armando Lüscher Committed by GitHub

Merge pull request #859 from smoqadam/develop

#858 add chat action constants
parents 112049b5 5b8a8f1b
......@@ -5,6 +5,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
## [Unreleased]
### Added
- `ChatAction` class to simplify chat action selection.
### Changed
- [:exclamation:][unreleased-bc-rename-constants] Rename and ensure no redefinition of constants: `BASE_PATH` -> `TB_BASE_PATH`, `BASE_COMMANDS_PATH` -> `TB_BASE_COMMANDS_PATH`.
### Deprecated
......
......@@ -371,7 +371,7 @@ See the [*ImageCommand.php*][ImageCommand.php] for a full example.
```php
Request::sendChatAction([
'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';
}
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