@@ -59,42 +59,46 @@ i | **i**nterval: Number of seconds to wait between getUpdates requests
59
59
#### via browser
60
60
61
61
Simply point your browser to the ` manager.php ` file with the necessary ** GET** parameters:
62
- ` http://example.com/manager.php?s=<secret>&a=<action>&l=<loop>&i=<interval> `
62
+ - ` http://example.com/manager.php?s=<secret>&a=<action>&l=<loop>&i=<interval> `
63
63
64
64
** Webhook**
65
+
65
66
Set, unset and reset the webhook:
66
- ` http://example.com/manager.php?s=super_secret&a=set `
67
- ` http://example.com/manager.php?s=super_secret&a=unset `
68
- ` http://example.com/manager.php?s=super_secret&a=reset ` (unset & set combined)
67
+ - ` http://example.com/manager.php?s=super_secret&a=set `
68
+ - ` http://example.com/manager.php?s=super_secret&a=unset `
69
+ - ` http://example.com/manager.php?s=super_secret&a=reset ` (unset & set combined)
69
70
70
71
** getUpdates**
72
+
71
73
Handle updates once:
72
- ` http://example.com/manager.php?s=super_secret&a=handle ` or simply
73
- ` http://example.com/manager.php?s=super_secret ` (` handle ` action is the default)
74
+ - ` http://example.com/manager.php?s=super_secret&a=handle ` or simply
75
+ - ` http://example.com/manager.php?s=super_secret ` (` handle ` action is the default)
74
76
75
77
Handle updates for 30 seconds, fetching every 5 seconds:
76
- ` http://example.com/manager.php?s=super_secret&l=30&i=5 `
78
+ - ` http://example.com/manager.php?s=super_secret&l=30&i=5 `
77
79
78
80
#### via CLI
79
81
80
82
When using CLI, the secret is not necessary (since it could just be read from the file itself).
81
83
82
84
Call the ` manager.php ` file directly using ` php ` and pass the parameters:
83
- ` $ php manager.php a=<action> l=<loop> i=<interval> `
85
+ - ` $ php manager.php a=<action> l=<loop> i=<interval> `
84
86
85
87
** Webhook**
88
+
86
89
Set, unset and reset the webhook:
87
- ` $ php manager.php a=set `
88
- ` $ php manager.php a=unset `
89
- ` $ php manager.php a=reset ` (unset & set combined)
90
+ - ` $ php manager.php a=set `
91
+ - ` $ php manager.php a=unset `
92
+ - ` $ php manager.php a=reset ` (unset & set combined)
90
93
91
94
** getUpdates**
95
+
92
96
Handle updates once:
93
- ` $ php manager.php a=handle ` or simply
94
- ` $ php manager.php ` (` handle ` action is the default)
97
+ - ` $ php manager.php a=handle ` or simply
98
+ - ` $ php manager.php ` (` handle ` action is the default)
95
99
96
100
Handle updates for 30 seconds, fetching every 5 seconds:
97
- ` $ php manager.php l=30 i=5 `
101
+ - ` $ php manager.php l=30 i=5 `
98
102
99
103
### Create the manager PHP file
100
104
0 commit comments