[*] комбинированный класс для работы с телеграм
This commit is contained in:
1 parent
1d6124a975
commit
f74c23b527
3 files changed
+22
-5
No files matched your search
@@ -172,8 +172,8 @@
|
||||
/**
|
||||
* Изменяет уже отправленное сообщение на указанное
|
||||
*
|
||||
* @param $chatId
|
||||
* @param $messageId
|
||||
* @param int $chatId
|
||||
* @param int $messageId
|
||||
* @param string $text
|
||||
*
|
||||
* @return array
|
||||
|
||||
@@ -136,6 +136,24 @@
|
||||
return $text;
|
||||
}
|
||||
|
||||
/**
|
||||
* Изменяет уже отправленное сообщение на указанное
|
||||
*
|
||||
* @param int $messageId
|
||||
* @param string $text
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function updateMessage(int $messageId, string $text): array
|
||||
{
|
||||
$response = [
|
||||
'chat_id' => $this->chatId,
|
||||
'message_id' => $messageId,
|
||||
'text' => $text,
|
||||
];
|
||||
return $this->setMethod('editMessageText')->sendRequest($response);
|
||||
}
|
||||
|
||||
/**
|
||||
* Отправка изображения
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user