Completed
Branch master (49b677)
by Alexander J. Rodriguez
01:46
created
bot.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@  discard block
 block discarded – undo
6 6
 define('WEBHOOK_URL', 'https://your.webhook/url/bot.php');
7 7
 define('API_URL', 'https://api.telegram.org/bot'.BOT_TOKEN.'/');
8 8
 
9
+/**
10
+ * @param string $method
11
+ */
9 12
 function apiRequestWebhook($method, $parameters)
10 13
 {
11 14
     if (!is_string($method)) {
@@ -29,6 +32,9 @@  discard block
 block discarded – undo
29 32
     return true;
30 33
 }
31 34
 
35
+/**
36
+ * @param resource $handle
37
+ */
32 38
 function exec_curl_request($handle)
33 39
 {
34 40
     $response = curl_exec($handle);
@@ -70,6 +76,9 @@  discard block
 block discarded – undo
70 76
     return $response;
71 77
 }
72 78
 
79
+/**
80
+ * @param string $method
81
+ */
73 82
 function apiRequest($method, $parameters)
74 83
 {
75 84
     if (!is_string($method)) {
@@ -105,6 +114,9 @@  discard block
 block discarded – undo
105 114
     return exec_curl_request($handle);
106 115
 }
107 116
 
117
+/**
118
+ * @param string $method
119
+ */
108 120
 function apiRequestJson($method, $parameters)
109 121
 {
110 122
     if (!is_string($method)) {
Please login to merge, or discard this patch.