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
549eb259
Unverified
Commit
549eb259
authored
Mar 18, 2018
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an entry to the readme about using getUpdates without a database.
parent
617b94f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
README.md
README.md
+10
-3
No files found.
README.md
View file @
549eb259
...
@@ -186,7 +186,7 @@ The bot can handle updates with **Webhook** or **getUpdates** method:
...
@@ -186,7 +186,7 @@ The bot can handle updates with **Webhook** or **getUpdates** method:
| ---- | :----: | :----: |
| ---- | :----: | :----: |
| Description | Telegram sends the updates directly to your host | You have to fetch Telegram updates manually |
| Description | Telegram sends the updates directly to your host | You have to fetch Telegram updates manually |
| Host with https | Required | Not required |
| Host with https | Required | Not required |
| MySQL | Not required | Required |
| MySQL | Not required |
(
[
Not
](
#getupdates-without-database
)
)
Required |
## Webhook installation
## Webhook installation
...
@@ -257,9 +257,9 @@ $result = $telegram->setWebhook($hook_url, ['certificate' => '/path/to/certifica
...
@@ -257,9 +257,9 @@ $result = $telegram->setWebhook($hook_url, ['certificate' => '/path/to/certifica
Edit
[
*unset.php*
][
unset.php
]
with your bot credentials and execute it.
Edit
[
*unset.php*
][
unset.php
]
with your bot credentials and execute it.
##
#
getUpdates installation
## getUpdates installation
The MySQL database must be enabled for the getUpdates
method!
For best performance, the MySQL database should be enabled for the
`getUpdates`
method!
Create
[
*getUpdatesCLI.php*
][
getUpdatesCLI.php
]
with the following contents:
Create
[
*getUpdatesCLI.php*
][
getUpdatesCLI.php
]
with the following contents:
```
php
```
php
...
@@ -301,6 +301,13 @@ Lastly, run it!
...
@@ -301,6 +301,13 @@ Lastly, run it!
$
./getUpdatesCLI.php
$
./getUpdatesCLI.php
```
```
### getUpdates without database
If you choose to / or are obliged to use the
`getUpdates`
method without a database, you can replace the
`$telegram->useMySQL(...);`
line above with:
```
php
$telegram
->
useGetUpdatesWithoutDatabase
();
```
## Support
## Support
### Types
### Types
...
...
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