Commit f65006c5 authored by Jack'lul's avatar Jack'lul

Add 'editMessageText', 'editMessageCaption', 'editMessageReplyMarkup' methods

parent 60d14ab1
......@@ -59,6 +59,9 @@ class Request
'unbanChatMember',
'answerCallbackQuery',
'answerInlineQuery',
'editMessageText',
'editMessageCaption',
'editMessageReplyMarkup'
];
/**
......@@ -697,6 +700,54 @@ class Request
return self::send('answerInlineQuery', $data);
}
/**
* Edit message text
*
* @param array $data
*
* @return mixed
*/
public static function editMessageText(array $data)
{
if (empty($data)) {
throw new TelegramException('Data is empty!');
}
return self::send('editMessageText', $data);
}
/**
* Edit message caption
*
* @param array $data
*
* @return mixed
*/
public static function editMessageCaption(array $data)
{
if (empty($data)) {
throw new TelegramException('Data is empty!');
}
return self::send('editMessageCaption', $data);
}
/**
* Edit message reply markup
*
* @param array $data
*
* @return mixed
*/
public static function editMessageReplyMarkup(array $data)
{
if (empty($data)) {
throw new TelegramException('Data is empty!');
}
return self::send('editMessageReplyMarkup', $data);
}
/**
* Return an empty Server Response
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment