-
Notifications
You must be signed in to change notification settings - Fork 2
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
Alex Belenky
committed
Jul 29, 2018
1 parent
a442f0c
commit 26a9f0e
Showing
17 changed files
with
117 additions
and
2 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -7,4 +7,5 @@ class Contact extends Type { | |
public $first_name; | ||
public $last_name; | ||
public $user_id; | ||
public $vcard; | ||
} |
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,9 @@ | ||
<?php namespace Telegram\Bot\Types; | ||
|
||
use Telegram\Bot\Type; | ||
|
||
class EncryptedCredentials extends Type { | ||
public $data; | ||
public $hash; | ||
public $secret; | ||
} |
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,21 @@ | ||
<?php namespace Telegram\Bot\Types; | ||
|
||
use Telegram\Bot\Type; | ||
|
||
class EncryptedPassportElement extends Type { | ||
protected $meta = [ | ||
'files' => PassportFile::class, | ||
'front_side' => PassportFile::class, | ||
'reverse_side' => PassportFile::class, | ||
'selfie' => PassportFile::class | ||
]; | ||
|
||
public $type; | ||
public $data; | ||
public $phone_number; | ||
public $email; | ||
public $files; | ||
public $front_side; | ||
public $reverse_side; | ||
public $selfie; | ||
} |
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,13 @@ | ||
<?php namespace Telegram\Bot\Types; | ||
|
||
use Telegram\Bot\Type; | ||
|
||
class PassportData extends Type { | ||
protected $meta = [ | ||
'data' => EncryptedPassportElement::class, | ||
'credentials' => EncryptedCredentials::class | ||
]; | ||
|
||
public $data; | ||
public $credentials; | ||
} |
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,9 @@ | ||
<?php namespace Telegram\Bot\Types; | ||
|
||
use Telegram\Bot\Type; | ||
|
||
class PassportElementError extends Type { | ||
public $source; | ||
public $type; | ||
public $message; | ||
} |
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,6 @@ | ||
<?php namespace Telegram\Bot\Types; | ||
|
||
class PassportElementErrorDataField extends PassportElementError { | ||
public $field_name; | ||
public $data_hash; | ||
} |
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 namespace Telegram\Bot\Types; | ||
|
||
class PassportElementErrorFile extends PassportElementError { | ||
public $file_hash; | ||
} |
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 namespace Telegram\Bot\Types; | ||
|
||
class PassportElementErrorFiles extends PassportElementError { | ||
public $file_hashes; | ||
} |
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 namespace Telegram\Bot\Types; | ||
|
||
class PassportElementErrorFrontSide extends PassportElementError { | ||
public $file_hash; | ||
} |
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 namespace Telegram\Bot\Types; | ||
|
||
class PassportElementErrorReverseSide extends PassportElementError { | ||
public $file_hash; | ||
} |
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 namespace Telegram\Bot\Types; | ||
|
||
class PassportElementErrorSelfie extends PassportElementError { | ||
public $file_hash; | ||
} |
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,9 @@ | ||
<?php namespace Telegram\Bot\Types; | ||
|
||
use Telegram\Bot\Type; | ||
|
||
class PassportFile extends Type { | ||
public $file_id; | ||
public $file_size; | ||
public $file_date; | ||
} |
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 |
---|---|---|
|
@@ -11,4 +11,5 @@ class Venue extends Type { | |
public $title; | ||
public $address; | ||
public $foursquare_id; | ||
public $foursquare_type; | ||
} |