Skip to content

Commit

Permalink
Fixed InputMessageContent
Browse files Browse the repository at this point in the history
  • Loading branch information
TiiFuchs committed May 10, 2022
1 parent a98d1c6 commit b5cc02d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Telegram/InputMessageContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,11 @@

namespace Tii\Telepath\Telegram;

use Tii\Telepath\Types\Factory;
use Tii\Telepath\Types\Type;

/**
* This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types:
*/
abstract class InputMessageContent extends Type implements Factory
abstract class InputMessageContent extends Type
{
public static function factory(array $data): self
{
return match($data[null]) {
'' => new InputInvoiceMessageContent($data),
};
}
}
Binary file modified telepathy
Binary file not shown.

0 comments on commit b5cc02d

Please sign in to comment.