Skip to content

Commit

Permalink
Updated telepathy and File structure
Browse files Browse the repository at this point in the history
  • Loading branch information
TiiFuchs committed Apr 28, 2022
1 parent 17a6f09 commit 222a2ac
Show file tree
Hide file tree
Showing 131 changed files with 1,132 additions and 2,648 deletions.
36 changes: 11 additions & 25 deletions src/Telegram/Animation.php
Original file line number Diff line number Diff line change
@@ -1,34 +1,20 @@
<?php

/**
* This file was automatically generated!
* This file is auto-generated.
*/


namespace Tii\Telepath\Telegram;

class Animation extends \Tii\Telepath\Type
{
public string $file_id;

public string $file_unique_id;

public int $width;

public int $height;

public int $duration;

public PhotoSize $thumb;

public string $file_name;

public string $mime_type;

public int $file_size;

public function __construct(array $data = [])
{
parent::__construct($data);
}
public string $file_id;
public string $file_unique_id;
public int $width;
public int $height;
public int $duration;
public PhotoSize $thumb;
public string $file_name;
public string $mime_type;
public int $file_size;
}

36 changes: 11 additions & 25 deletions src/Telegram/Audio.php
Original file line number Diff line number Diff line change
@@ -1,34 +1,20 @@
<?php

/**
* This file was automatically generated!
* This file is auto-generated.
*/


namespace Tii\Telepath\Telegram;

class Audio extends \Tii\Telepath\Type
{
public string $file_id;

public string $file_unique_id;

public int $duration;

public string $performer;

public string $title;

public string $file_name;

public string $mime_type;

public int $file_size;

public PhotoSize $thumb;

public function __construct(array $data = [])
{
parent::__construct($data);
}
public string $file_id;
public string $file_unique_id;
public int $duration;
public string $performer;
public string $title;
public string $file_name;
public string $mime_type;
public int $file_size;
public PhotoSize $thumb;
}

15 changes: 4 additions & 11 deletions src/Telegram/BotCommand.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
<?php

/**
* This file was automatically generated!
* This file is auto-generated.
*/


namespace Tii\Telepath\Telegram;

class BotCommand extends \Tii\Telepath\Type
{
public string $command;

public string $description;

public function __construct(array $data = [])
{
parent::__construct($data);
}
public string $command;
public string $description;
}

9 changes: 2 additions & 7 deletions src/Telegram/BotCommandScope.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
<?php

/**
* This file was automatically generated!
* This file is auto-generated.
*/


namespace Tii\Telepath\Telegram;

class BotCommandScope extends \Tii\Telepath\Type
{
public function __construct(array $data = [])
{
parent::__construct($data);
}
}

12 changes: 3 additions & 9 deletions src/Telegram/BotCommandScopeAllChatAdministrators.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
<?php

/**
* This file was automatically generated!
* This file is auto-generated.
*/


namespace Tii\Telepath\Telegram;

class BotCommandScopeAllChatAdministrators extends BotCommandScope
{
public string $type;

public function __construct(array $data = [])
{
parent::__construct($data);
}
public string $type;
}

12 changes: 3 additions & 9 deletions src/Telegram/BotCommandScopeAllGroupChats.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
<?php

/**
* This file was automatically generated!
* This file is auto-generated.
*/


namespace Tii\Telepath\Telegram;

class BotCommandScopeAllGroupChats extends BotCommandScope
{
public string $type;

public function __construct(array $data = [])
{
parent::__construct($data);
}
public string $type;
}

12 changes: 3 additions & 9 deletions src/Telegram/BotCommandScopeAllPrivateChats.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
<?php

/**
* This file was automatically generated!
* This file is auto-generated.
*/


namespace Tii\Telepath\Telegram;

class BotCommandScopeAllPrivateChats extends BotCommandScope
{
public string $type;

public function __construct(array $data = [])
{
parent::__construct($data);
}
public string $type;
}

18 changes: 4 additions & 14 deletions src/Telegram/BotCommandScopeChat.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
<?php

/**
* This file was automatically generated!
* This file is auto-generated.
*/


namespace Tii\Telepath\Telegram;

class BotCommandScopeChat extends BotCommandScope
{
public string $type;

/**
* @var Integer or String
*/
public int|string $chat_id;

public function __construct(array $data = [])
{
parent::__construct($data);
}
public string $type;
public int|string $chat_id;
}

18 changes: 4 additions & 14 deletions src/Telegram/BotCommandScopeChatAdministrators.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
<?php

/**
* This file was automatically generated!
* This file is auto-generated.
*/


namespace Tii\Telepath\Telegram;

class BotCommandScopeChatAdministrators extends BotCommandScope
{
public string $type;

/**
* @var Integer or String
*/
public int|string $chat_id;

public function __construct(array $data = [])
{
parent::__construct($data);
}
public string $type;
public int|string $chat_id;
}

21 changes: 5 additions & 16 deletions src/Telegram/BotCommandScopeChatMember.php
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
<?php

/**
* This file was automatically generated!
* This file is auto-generated.
*/


namespace Tii\Telepath\Telegram;

class BotCommandScopeChatMember extends BotCommandScope
{
public string $type;

/**
* @var Integer or String
*/
public int|string $chat_id;

public int $user_id;

public function __construct(array $data = [])
{
parent::__construct($data);
}
public string $type;
public int|string $chat_id;
public int $user_id;
}

12 changes: 3 additions & 9 deletions src/Telegram/BotCommandScopeDefault.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
<?php

/**
* This file was automatically generated!
* This file is auto-generated.
*/


namespace Tii\Telepath\Telegram;

class BotCommandScopeDefault extends BotCommandScope
{
public string $type;

public function __construct(array $data = [])
{
parent::__construct($data);
}
public string $type;
}

30 changes: 9 additions & 21 deletions src/Telegram/CallbackQuery.php
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
<?php

/**
* This file was automatically generated!
* This file is auto-generated.
*/


namespace Tii\Telepath\Telegram;

class CallbackQuery extends \Tii\Telepath\Type
{
public string $id;

public User $from;

public Message $message;

public string $inline_message_id;

public string $chat_instance;

public string $data;

public string $game_short_name;

public function __construct(array $data = [])
{
parent::__construct($data);
}
public string $id;
public User $from;
public Message $message;
public string $inline_message_id;
public string $chat_instance;
public string $data;
public string $game_short_name;
}

Loading

0 comments on commit 222a2ac

Please sign in to comment.