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
abd1c227
Commit
abd1c227
authored
May 21, 2016
by
Jack'lul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
botan.io integration instructions
parent
308d451f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
README.md
README.md
+22
-0
No files found.
README.md
View file @
abd1c227
...
...
@@ -34,6 +34,7 @@ A Telegram Bot based on the official [Telegram Bot API](https://core.telegram.or
-
[
Utils
](
#utils
)
-
[
MySQL storage (Recommended)
](
#mysql-storage-recommended
)
-
[
Channels Support
](
#channels-support
)
-
[
Botan.io integration (Optional)
](
#botanio-integration-optional
)
-
[
Commands
](
#commands
)
-
[
Predefined Commands
](
#predefined-commands
)
-
[
Custom Commands
](
#custom-commands
)
...
...
@@ -401,6 +402,27 @@ $telegram->enableExternalMysql($external_pdo_connection)
All methods implemented can be used to manage channels.
With
[
admin commands
](
#admin-commands
)
you can manage your channels directly with your bot private chat.
### Botan.io integration (Optional)
You can enable the integration using this line:
```
php
$telegram
->
enableBotan
(
'your_token'
);
```
Replace
```'your_token'```
with your Botan.io token, check
[
this page
](
https://github.com/botanio/sdk#creating-an-account
)
to see how to obtain one.
The following actions will be tracked:
-
Commands (shown as
`Command (/command_name)`
in the stats
-
Inline Queries, Chosen Inline Results and Callback Queries
-
Messages sent to the bot (or replies in groups)
In order to use the URL shortener you must include the class
```use Longman\TelegramBot\Botan;```
and call it like this:
```
Botan::shortenUrl('https://github.com/akalongman/php-telegram-bot', $user_id);```
Shortened URLs are cached in the database (if MySQL storage is enabled).
### Commands
#### Predefined Commands
...
...
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