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
32b47a05
Commit
32b47a05
authored
Jul 13, 2018
by
smoqadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add chat action constants
parent
586d14cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
1 deletion
+55
-1
README.md
README.md
+4
-1
Telegram.php
src/Telegram.php
+51
-0
No files found.
README.md
View file @
32b47a05
...
...
@@ -368,7 +368,10 @@ See the [*ImageCommand.php*][ImageCommand.php] for a full example.
#### Send Chat Action
```
php
Request
::
sendChatAction
([
'chat_id'
=>
$chat_id
,
'action'
=>
'typing'
]);
Request
::
sendChatAction
([
'chat_id'
=>
$chat_id
,
'action'
=>
Longman\TelegramBot\Telegram
::
ACTION_TYPING
]);
```
#### getUserProfilePhoto
...
...
src/Telegram.php
View file @
32b47a05
...
...
@@ -25,6 +25,57 @@ use RegexIterator;
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
*
...
...
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