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
731e3cd2
Unverified
Commit
731e3cd2
authored
Jul 15, 2017
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment regarding configuration options and update changelog.
parent
4cbce0d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
CHANGELOG.md
CHANGELOG.md
+1
-0
CleanupCommand.php
src/Commands/AdminCommands/CleanupCommand.php
+15
-0
No files found.
CHANGELOG.md
View file @
731e3cd2
...
...
@@ -7,6 +7,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
### Added
-
Callbacks can be added to be executed when callback queries are called.
-
New Bot API 3.1 changes (#550).
-
`/cleanup`
command for admins, that cleans out old entries from the DB.
### Changed
-
[
:exclamation:
][
unreleased-bc-request-class-refactor
]
Big refactor of the
`Request`
class, removing most custom method implementations.
### Deprecated
...
...
src/Commands/AdminCommands/CleanupCommand.php
View file @
731e3cd2
...
...
@@ -19,6 +19,21 @@ use PDOException;
/**
* User "/cleanup" command
*
* Configuration options:
*
* $telegram->setCommandConfig('cleanup', [
* // Define which tables should be cleaned.
* 'tables_to_clean' => [
* 'message',
* 'edited_message',
* ],
* // Define how old cleaned entries should be.
* 'clean_older_than' => [
* 'message' => '7 days',
* 'edited_message' => '30 days',
* ]
* );
*/
class
CleanupCommand
extends
AdminCommand
{
...
...
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