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
466ba2af
Commit
466ba2af
authored
Oct 20, 2015
by
MBoretto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
README fix
parent
a812b42e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
README.md
README.md
+9
-9
No files found.
README.md
View file @
466ba2af
...
...
@@ -25,7 +25,7 @@ and have interactions in a matter of minutes.
The Bot can:
-
retrive update with webhook and getUpdate methods.
-
supports all types and methods according to Telegram API (2015 October 8).
-
handle commads in chat with other bots.
-
handle comma
n
ds in chat with other bots.
It is ready for the channels support.
...
...
@@ -172,9 +172,9 @@ try {
```
###Self Signed Certificate
To upload the certificate add the certificate path as param in
*set.php*
:
To upload the certificate
,
add the certificate path as param in
*set.php*
:
```
php
$result
=
$telegram
->
setWebHook
(
$url
,
$certificate_path
);
$result
=
$telegram
->
setWebHook
(
$url
,
$certificate_path
);
```
## getUpdate installation
...
...
@@ -233,18 +233,18 @@ $result = Request::sendPhoto($data);
*sendAudio*
,
*sendDocument*
,
*sendSticker*
,
*sendVideo*
and
*sendVoice*
works in the same way.
See
*ImageCommand.php*
for a full example.
###
#
Send Chat Action
###Send Chat Action
```
php
Request
::
sendChatAction
([
'chat_id'
=>
$chat_id
,
'action'
=>
'typing'
]);
```
###
#
getUserProfilePhoto
###getUserProfilePhoto
Retrieve the user photo, see the
*WhoamiCommand.php*
for a full example.
###
#
GetFile and dowloadFile
###GetFile and dowloadFile
Get the file path and download it, see the
*WhoamiCommand.php*
for a full example.
###
#
Send message to all active chats
### Send message to all active chats
To do this you have to enable the Mysql connection.
Here's an example of use:
...
...
@@ -278,7 +278,7 @@ $telegram->enableMySQL($credentials, $BOT_NAME.'_');
```
### Commands
The bot is able to recognise commands in chat with multiple bot(/command@mybot ).
The bot is able to recognise commands in chat with multiple bot
(/command@mybot ).
It can execute command triggering a chat event. Here's the list:
-
Group chat created (
**GroupchatcreatedCommand.php**
)
...
...
@@ -326,7 +326,7 @@ $telegram->setCommandConfig('date',
array
(
'google_api_key'
=>
'your_google_api_key_here'
));
```
### Upload and Download directory
You can overwrite the default Upload and
d
ownload directory with:
You can overwrite the default Upload and
D
ownload directory with:
```
php
$telegram
->
setDownloadPath
(
"yourpath/Download"
);
$telegram
->
setUploadPath
(
"yourpath../Upload"
);
...
...
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