1818use Longman \TelegramBot \Entities \Payments \PreCheckoutQuery ;
1919use Longman \TelegramBot \Entities \Payments \ShippingQuery ;
2020use Longman \TelegramBot \Entities \Poll ;
21+ use Longman \TelegramBot \Entities \ServerResponse ;
2122use Longman \TelegramBot \Entities \Update ;
23+ use Longman \TelegramBot \Exception \TelegramException ;
2224use Longman \TelegramBot \Request ;
2325use Longman \TelegramBot \Telegram ;
2426
@@ -43,14 +45,14 @@ abstract class Command
4345 /**
4446 * Telegram object
4547 *
46- * @var \Longman\TelegramBot\ Telegram
48+ * @var Telegram
4749 */
4850 protected $ telegram ;
4951
5052 /**
5153 * Update object
5254 *
53- * @var \Longman\TelegramBot\Entities\ Update
55+ * @var Update
5456 */
5557 protected $ update ;
5658
@@ -120,8 +122,8 @@ abstract class Command
120122 /**
121123 * Constructor
122124 *
123- * @param \Longman\TelegramBot\ Telegram $telegram
124- * @param \Longman\TelegramBot\Entities\ Update $update
125+ * @param Telegram $telegram
126+ * @param Update $update
125127 */
126128 public function __construct (Telegram $ telegram , Update $ update = null )
127129 {
@@ -133,9 +135,9 @@ public function __construct(Telegram $telegram, Update $update = null)
133135 /**
134136 * Set update object
135137 *
136- * @param \Longman\TelegramBot\Entities\ Update $update
138+ * @param Update $update
137139 *
138- * @return \Longman\TelegramBot\Commands\ Command
140+ * @return Command
139141 */
140142 public function setUpdate (Update $ update = null )
141143 {
@@ -149,8 +151,8 @@ public function setUpdate(Update $update = null)
149151 /**
150152 * Pre-execute command
151153 *
152- * @return \Longman\TelegramBot\Entities\ ServerResponse
153- * @throws \Longman\TelegramBot\Exception\ TelegramException
154+ * @return ServerResponse
155+ * @throws TelegramException
154156 */
155157 public function preExecute ()
156158 {
@@ -182,16 +184,16 @@ public function preExecute()
182184 /**
183185 * Execute command
184186 *
185- * @return \Longman\TelegramBot\Entities\ ServerResponse
186- * @throws \Longman\TelegramBot\Exception\ TelegramException
187+ * @return ServerResponse
188+ * @throws TelegramException
187189 */
188190 abstract public function execute ();
189191
190192 /**
191193 * Execution if MySQL is required but not available
192194 *
193- * @return \Longman\TelegramBot\Entities\ ServerResponse
194- * @throws \Longman\TelegramBot\Exception\ TelegramException
195+ * @return ServerResponse
196+ * @throws TelegramException
195197 */
196198 public function executeNoDb ()
197199 {
@@ -210,7 +212,7 @@ public function executeNoDb()
210212 /**
211213 * Get update object
212214 *
213- * @return \Longman\TelegramBot\Entities\ Update
215+ * @return Update
214216 */
215217 public function getUpdate ()
216218 {
@@ -260,7 +262,7 @@ public function getConfig($name = null)
260262 /**
261263 * Get telegram object
262264 *
263- * @return \Longman\TelegramBot\ Telegram
265+ * @return Telegram
264266 */
265267 public function getTelegram ()
266268 {
@@ -399,8 +401,8 @@ protected function removeNonPrivateMessage()
399401 * @param string $text
400402 * @param array $data
401403 *
402- * @return \Longman\TelegramBot\Entities\ ServerResponse
403- * @throws \Longman\TelegramBot\Exception\ TelegramException
404+ * @return ServerResponse
405+ * @throws TelegramException
404406 */
405407 public function replyToChat ($ text , array $ data = [])
406408 {
@@ -420,8 +422,8 @@ public function replyToChat($text, array $data = [])
420422 * @param string $text
421423 * @param array $data
422424 *
423- * @return \Longman\TelegramBot\Entities\ ServerResponse
424- * @throws \Longman\TelegramBot\Exception\ TelegramException
425+ * @return ServerResponse
426+ * @throws TelegramException
425427 */
426428 public function replyToUser ($ text , array $ data = [])
427429 {
0 commit comments