@@ -40,7 +40,7 @@ |
||
40 | 40 | * @param $reply_markup Inline keyboard object (Not JSON serialized, use getArray from InlineKeyboard class). |
41 | 41 | * @param $parse_mode <i>Optional</i>. Formattation of the message. |
42 | 42 | * @param $disable_web_preview <i>Optional</i>. Disables link previews for links in the sent message |
43 | - * @return Id the the article added |
|
43 | + * @return integer the the article added |
|
44 | 44 | */ |
45 | 45 | public function newArticle($title, $message_text, $description = '', array $reply_markup = null, $parse_mode = 'HTML', $disable_web_preview = false) { |
46 | 46 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | /** |
37 | 37 | * \brief (<i>Internal</i>) Process the message to check if it triggers a command of this type. |
38 | 38 | * @param $message Message to process. |
39 | - * @return True if the message triggered a command. |
|
39 | + * @return boolean if the message triggered a command. |
|
40 | 40 | */ |
41 | 41 | protected function processMessageRegexCommand(array $message) : bool { |
42 | 42 |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | * \brief (<i>Internal</i>)Get first update offset in redis. |
15 | 15 | * \details Called by getUpdatesRedis to get the offset saved in redis or to get it from telegram and save it in redis. |
16 | 16 | * @param $offset_key Name of the variable where the offset is saved on Redis |
17 | - * @return Id of the first update to process. |
|
17 | + * @return integer of the first update to process. |
|
18 | 18 | */ |
19 | 19 | protected function getUpdateOffsetRedis(string $offset_key) : int { |
20 | 20 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * \details Called by getUpdatesDatabase to get the offset saved in database or to get it from telegram and save it in database. |
103 | 103 | * @param $table_name Name of the table where offset is saved in the database |
104 | 104 | * @param $column_name Name of the column where the offset is saved in the database |
105 | - * @return Id of the first update to process. |
|
105 | + * @return integer of the first update to process. |
|
106 | 106 | */ |
107 | 107 | protected function getUpdateOffsetDatabase(string $table_name, string $column_name) : int { |
108 | 108 |
@@ -86,7 +86,7 @@ |
||
86 | 86 | * It also change $language parameter of the bot to the language returned. |
87 | 87 | * @param $default_language <i>Optional</i>. Default language to return in case of errors. |
88 | 88 | * @param $expiring_time <i>Optional</i>. Set the expiring time for the language on redis each time it is took from the sql database. |
89 | - * @return Language for the current user, $default_language on errors. |
|
89 | + * @return string for the current user, $default_language on errors. |
|
90 | 90 | */ |
91 | 91 | public function getLanguageRedis($default_language = 'en', $expiring_time = '86400') : string { |
92 | 92 |
@@ -233,7 +233,6 @@ |
||
233 | 233 | * \brief Called every time a post get edited in the channel where the bot is in. |
234 | 234 | * \details Override it to script the bot answer for each post edited in a channel. |
235 | 235 | * <code>$chat_id</code> set inside of this function. |
236 | - * @param Message $post The message edited in the channel. |
|
237 | 236 | */ |
238 | 237 | protected function processEditedChannelPost(Message $edited_post) { |
239 | 238 |