File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
src/Commands/AdminCommands Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
7
7
### Added
8
8
- Callbacks can be added to be executed when callback queries are called.
9
9
- New Bot API 3.1 changes (#550 ).
10
+ - ` /cleanup ` command for admins, that cleans out old entries from the DB.
10
11
### Changed
11
12
- [ :exclamation : ] [ unreleased-bc-request-class-refactor ] Big refactor of the ` Request ` class, removing most custom method implementations.
12
13
### Deprecated
Original file line number Diff line number Diff line change 19
19
20
20
/**
21
21
* User "/cleanup" command
22
+ *
23
+ * Configuration options:
24
+ *
25
+ * $telegram->setCommandConfig('cleanup', [
26
+ * // Define which tables should be cleaned.
27
+ * 'tables_to_clean' => [
28
+ * 'message',
29
+ * 'edited_message',
30
+ * ],
31
+ * // Define how old cleaned entries should be.
32
+ * 'clean_older_than' => [
33
+ * 'message' => '7 days',
34
+ * 'edited_message' => '30 days',
35
+ * ]
36
+ * );
22
37
*/
23
38
class CleanupCommand extends AdminCommand
24
39
{
You can’t perform that action at this time.
0 commit comments