<?php

namespace Telegram\Bot\Objects;

/**
 * Class ChatInviteLink.
 *
 * @link https://core.telegram.org/bots/api#chatinvitelink
 *
 * @property string $invite_link The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with “…”.
 * @property User $creator Creator of the link.
 * @property bool $creates_join_request True, if users joining the chat via the link need to be approved by chat administrators.
 * @property bool $is_primary True, if the link is primary.
 * @property bool $is_revoked True, if the link is revoked.
 * @property string|null $name (Optional). Invite link name.
 * @property int|null $expire_date (Optional). Point in time (Unix timestamp) when the link will expire or has been expired.
 * @property int|null $member_limit (Optional). Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999.
 * @property int|null $pending_join_request_count (Optional). Number of pending join requests created using this link.
 */
class ChatInviteLink extends BaseObject
{
    /**
     * {@inheritdoc}
     *
     * @return array{creator: string}
     */
    public function relations(): array
    {
        return [
            'creator' => User::class,
        ];
    }
}
