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
0f17dc90
Commit
0f17dc90
authored
Aug 25, 2015
by
MBoretto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating README.md
parent
46df2f1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
README.md
README.md
+7
-4
No files found.
README.md
View file @
0f17dc90
...
...
@@ -144,6 +144,7 @@ try {
```
If you want insert in database messages/users for further usage in commands, create database and import structure.sql and enable mysql support after object creation and BEFORE handle method
```
php
<?php
...
...
@@ -151,27 +152,29 @@ $credentials = array('host'=>'localhost', 'user'=>'dbuser', 'password'=>'dbpass'
$telegram
->
enableMySQL
(
$credentials
);
```
Utilis
------
Maybe you would like to develop your own commands. A good practice is to store them outside vendor/. This can be done adding before the method:
''
'
php
```
php
$COMMANDS_FOLDER
=
__DIR__
.
'/Commands/'
;
$telegram
->
addCommandsPath
(
$COMMANDS_FOLDER
);
''
'
```
You can also log incoming messages on a text file, set this option with the methods:
''
'
php
```
php
$telegram
->
setLogRequests
(
true
);
$telegram
->
setLogPath
(
$BOT_NAME
.
'.log'
);
''
'
```
...
...
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