-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
3,213 additions
and
567 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace MadmagesTelegram\Types\Type; | ||
|
||
abstract class AbstractChatMember extends AbstractType {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace MadmagesTelegram\Types\Type; | ||
|
||
use JMS\Serializer\Annotation\ExclusionPolicy; | ||
use JMS\Serializer\Annotation\AccessType; | ||
use JMS\Serializer\Annotation\SkipWhenEmpty; | ||
use JMS\Serializer\Annotation\SerializedName; | ||
use JMS\Serializer\Annotation\Accessor; | ||
use JMS\Serializer\Annotation\Type; | ||
|
||
/** | ||
* https://core.telegram.org/bots/api#botcommandscope | ||
* | ||
* This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported: | ||
* | ||
* @ExclusionPolicy("none") | ||
* @AccessType("public_method") | ||
*/ | ||
class BotCommandScope extends AbstractType | ||
{ | ||
|
||
/** | ||
* Returns raw names of properties of this type | ||
* | ||
* @return string[] | ||
*/ | ||
public static function _getPropertyNames(): array | ||
{ | ||
return [ | ||
]; | ||
} | ||
|
||
/** | ||
* Returns associative array of raw data | ||
* | ||
* @return array | ||
*/ | ||
public function _getData(): array | ||
{ | ||
$result = [ | ||
]; | ||
|
||
return parent::normalizeData($result); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace MadmagesTelegram\Types\Type; | ||
|
||
use JMS\Serializer\Annotation\ExclusionPolicy; | ||
use JMS\Serializer\Annotation\AccessType; | ||
use JMS\Serializer\Annotation\SkipWhenEmpty; | ||
use JMS\Serializer\Annotation\SerializedName; | ||
use JMS\Serializer\Annotation\Accessor; | ||
use JMS\Serializer\Annotation\Type; | ||
|
||
/** | ||
* https://core.telegram.org/bots/api#botcommandscopeallchatadministrators | ||
* | ||
* Represents the scope of bot commands, covering all group and supergroup chat | ||
* administrators. | ||
* | ||
* @ExclusionPolicy("none") | ||
* @AccessType("public_method") | ||
*/ | ||
class BotCommandScopeAllChatAdministrators extends AbstractType | ||
{ | ||
|
||
/** | ||
* Returns raw names of properties of this type | ||
* | ||
* @return string[] | ||
*/ | ||
public static function _getPropertyNames(): array | ||
{ | ||
return [ | ||
'type', | ||
]; | ||
} | ||
|
||
/** | ||
* Returns associative array of raw data | ||
* | ||
* @return array | ||
*/ | ||
public function _getData(): array | ||
{ | ||
$result = [ | ||
'type' => $this->getType(), | ||
]; | ||
|
||
return parent::normalizeData($result); | ||
} | ||
|
||
/** | ||
* Scope type, must be all_chat_administrators | ||
* | ||
* @var string | ||
* @SerializedName("type") | ||
* @Accessor(getter="getType",setter="setType") | ||
* @Type("string") | ||
*/ | ||
protected $type; | ||
|
||
|
||
/** | ||
* @param string $type | ||
* @return static | ||
*/ | ||
public function setType(string $type): self | ||
{ | ||
$this->type = $type; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getType(): string | ||
{ | ||
return $this->type; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace MadmagesTelegram\Types\Type; | ||
|
||
use JMS\Serializer\Annotation\ExclusionPolicy; | ||
use JMS\Serializer\Annotation\AccessType; | ||
use JMS\Serializer\Annotation\SkipWhenEmpty; | ||
use JMS\Serializer\Annotation\SerializedName; | ||
use JMS\Serializer\Annotation\Accessor; | ||
use JMS\Serializer\Annotation\Type; | ||
|
||
/** | ||
* https://core.telegram.org/bots/api#botcommandscopeallgroupchats | ||
* | ||
* Represents the scope of bot commands, covering all group and supergroup chats. | ||
* | ||
* @ExclusionPolicy("none") | ||
* @AccessType("public_method") | ||
*/ | ||
class BotCommandScopeAllGroupChats extends AbstractType | ||
{ | ||
|
||
/** | ||
* Returns raw names of properties of this type | ||
* | ||
* @return string[] | ||
*/ | ||
public static function _getPropertyNames(): array | ||
{ | ||
return [ | ||
'type', | ||
]; | ||
} | ||
|
||
/** | ||
* Returns associative array of raw data | ||
* | ||
* @return array | ||
*/ | ||
public function _getData(): array | ||
{ | ||
$result = [ | ||
'type' => $this->getType(), | ||
]; | ||
|
||
return parent::normalizeData($result); | ||
} | ||
|
||
/** | ||
* Scope type, must be all_group_chats | ||
* | ||
* @var string | ||
* @SerializedName("type") | ||
* @Accessor(getter="getType",setter="setType") | ||
* @Type("string") | ||
*/ | ||
protected $type; | ||
|
||
|
||
/** | ||
* @param string $type | ||
* @return static | ||
*/ | ||
public function setType(string $type): self | ||
{ | ||
$this->type = $type; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getType(): string | ||
{ | ||
return $this->type; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace MadmagesTelegram\Types\Type; | ||
|
||
use JMS\Serializer\Annotation\ExclusionPolicy; | ||
use JMS\Serializer\Annotation\AccessType; | ||
use JMS\Serializer\Annotation\SkipWhenEmpty; | ||
use JMS\Serializer\Annotation\SerializedName; | ||
use JMS\Serializer\Annotation\Accessor; | ||
use JMS\Serializer\Annotation\Type; | ||
|
||
/** | ||
* https://core.telegram.org/bots/api#botcommandscopeallprivatechats | ||
* | ||
* Represents the scope of bot commands, covering all private chats. | ||
* | ||
* @ExclusionPolicy("none") | ||
* @AccessType("public_method") | ||
*/ | ||
class BotCommandScopeAllPrivateChats extends AbstractType | ||
{ | ||
|
||
/** | ||
* Returns raw names of properties of this type | ||
* | ||
* @return string[] | ||
*/ | ||
public static function _getPropertyNames(): array | ||
{ | ||
return [ | ||
'type', | ||
]; | ||
} | ||
|
||
/** | ||
* Returns associative array of raw data | ||
* | ||
* @return array | ||
*/ | ||
public function _getData(): array | ||
{ | ||
$result = [ | ||
'type' => $this->getType(), | ||
]; | ||
|
||
return parent::normalizeData($result); | ||
} | ||
|
||
/** | ||
* Scope type, must be all_private_chats | ||
* | ||
* @var string | ||
* @SerializedName("type") | ||
* @Accessor(getter="getType",setter="setType") | ||
* @Type("string") | ||
*/ | ||
protected $type; | ||
|
||
|
||
/** | ||
* @param string $type | ||
* @return static | ||
*/ | ||
public function setType(string $type): self | ||
{ | ||
$this->type = $type; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getType(): string | ||
{ | ||
return $this->type; | ||
} | ||
|
||
} |
Oops, something went wrong.