Correction

This commit is contained in:
netkas 2024-11-06 15:10:25 -05:00
parent 9817608eb7
commit 59af689364
12 changed files with 17 additions and 12 deletions

View file

@ -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));
}
/**