Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
TelegramBot
Commits
c9b896c6
Commit
c9b896c6
authored
Jul 14, 2018
by
smoqadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move all chat action constants into the new class
parent
6fea113e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
51 deletions
+65
-51
README.md
README.md
+1
-1
ChatAction.php
src/ChatAction.php
+64
-0
Telegram.php
src/Telegram.php
+0
-50
No files found.
README.md
View file @
c9b896c6
...
@@ -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
,
]);
]);
```
```
...
...
src/ChatAction.php
0 → 100644
View file @
c9b896c6
<?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'
;
}
src/Telegram.php
View file @
c9b896c6
...
@@ -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
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment