Correction
This commit is contained in:
parent
9817608eb7
commit
59af689364
12 changed files with 17 additions and 12 deletions
|
@ -5,6 +5,7 @@
|
|||
use TgBotLib\Abstracts\Method;
|
||||
use TgBotLib\Bot;
|
||||
use TgBotLib\Enums\Methods;
|
||||
use TgBotLib\Objects\ChatInviteLink;
|
||||
|
||||
class ExportChatInviteLink extends Method
|
||||
{
|
||||
|
@ -14,7 +15,7 @@
|
|||
*/
|
||||
public static function execute(Bot $bot, array $parameters = []): string
|
||||
{
|
||||
return $bot->sendRequest(Methods::EXPORT_CHAT_INVITE_LINK->value, $parameters);
|
||||
return (string)self::executeCurl(self::buildPost($bot, Methods::EXPORT_CHAT_INVITE_LINK->value, $parameters));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue