Skip to content

Commit 14d75a2

Browse files
committed
Replace non ascii chars with ascii ones
1 parent 50c9376 commit 14d75a2

File tree

2 files changed

+48
-48
lines changed

2 files changed

+48
-48
lines changed

telegram/passport/encryptedpassportelement.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -28,62 +28,62 @@ class EncryptedPassportElement(TelegramObject):
2828
by the user.
2929
3030
Attributes:
31-
type (:obj:`str`): Element type. One of personal_details”, “passport”, “driver_license,
32-
identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement,
33-
rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number,
34-
email.
31+
type (:obj:`str`): Element type. One of "personal_details", "passport", "driver_license",
32+
"identity_card", "internal_passport", "address", "utility_bill", "bank_statement",
33+
"rental_agreement", "passport_registration", "temporary_registration", "phone_number",
34+
"email".
3535
data (:obj:`str`): Optional. Base64-encoded encrypted Telegram Passport element data
36-
provided by the user, available for personal_details”, “passport”, “driver_license,
37-
identity_card”, “identity_passport and address types. Can be decrypted and verified
36+
provided by the user, available for "personal_details", "passport", "driver_license",
37+
"identity_card", "identity_passport" and "address" types. Can be decrypted and verified
3838
using the accompanying EncryptedCredentials.
3939
phone_number (:obj:`str`): Optional. User's verified phone number, available only for
40-
phone_number type
41-
email (:obj:`str`): Optional. User's verified email address, available only for email
40+
"phone_number" type
41+
email (:obj:`str`): Optional. User's verified email address, available only for "email"
4242
type
4343
files (List[:class:`telegram.PassportFile`]): Optional. Array of encrypted files with
44-
documents provided by the user, available for utility_bill”, “bank_statement,
45-
rental_agreement”, “passport_registration and temporary_registration types.
44+
documents provided by the user, available for "utility_bill", "bank_statement",
45+
"rental_agreement", "passport_registration" and "temporary_registration" types.
4646
Files can be decrypted and verified using the accompanying EncryptedCredentials.
4747
front_side (:class:`PassportFile`): Optional. Encrypted file with the front side of the
48-
document, provided by the user. Available for passport”, “driver_license,
49-
identity_card and internal_passport. The file can be decrypted and verified using
48+
document, provided by the user. Available for "passport", "driver_license",
49+
"identity_card" and "internal_passport". The file can be decrypted and verified using
5050
the accompanying EncryptedCredentials.
5151
reverse_side (:class:`PassportFile`): Optional. Encrypted file with the reverse side of the
52-
document, provided by the user. Available for driver_license and identity_card.
52+
document, provided by the user. Available for "driver_license" and "identity_card".
5353
The file can be decrypted and verified using the accompanying EncryptedCredentials.
5454
selfie (:class:`PassportFile`): Optional. Encrypted file with the selfie of the user
55-
holding a document, provided by the user; available for passport”, “driver_license,
56-
identity_card and internal_passport. The file can be decrypted and verified using
55+
holding a document, provided by the user; available for "passport", "driver_license",
56+
"identity_card" and "internal_passport". The file can be decrypted and verified using
5757
the accompanying EncryptedCredentials.
5858
bot (:class:`telegram.Bot`): Optional. The Bot to use for instance methods.
5959
6060
Args:
61-
type (:obj:`str`): Element type. One of personal_details”, “passport”, “driver_license,
62-
identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement,
63-
rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number,
64-
email.
61+
type (:obj:`str`): Element type. One of "personal_details", "passport", "driver_license",
62+
"identity_card", "internal_passport", "address", "utility_bill", "bank_statement",
63+
"rental_agreement", "passport_registration", "temporary_registration", "phone_number",
64+
"email".
6565
data (:obj:`str`, optional): Base64-encoded encrypted Telegram Passport element data
66-
provided by the user, available for personal_details”, “passport”, “driver_license,
67-
identity_card”, “identity_passport and address types. Can be decrypted and verified
66+
provided by the user, available for "personal_details", "passport", "driver_license",
67+
"identity_card", "identity_passport" and "address" types. Can be decrypted and verified
6868
using the accompanying EncryptedCredentials.
6969
phone_number (:obj:`str`, optional): User's verified phone number, available only for
70-
phone_number type
71-
email (:obj:`str`, optional): User's verified email address, available only for email
70+
"phone_number" type
71+
email (:obj:`str`, optional): User's verified email address, available only for "email"
7272
type
7373
files (List[:class:`telegram.PassportFile`], optional): Array of encrypted files with
74-
documents provided by the user, available for utility_bill”, “bank_statement,
75-
rental_agreement”, “passport_registration and temporary_registration types.
74+
documents provided by the user, available for "utility_bill", "bank_statement",
75+
"rental_agreement", "passport_registration" and "temporary_registration" types.
7676
Files can be decrypted and verified using the accompanying EncryptedCredentials.
7777
front_side (:class:`PassportFile`, optional): Encrypted file with the front side of the
78-
document, provided by the user. Available for passport”, “driver_license,
79-
identity_card and internal_passport. The file can be decrypted and verified using
78+
document, provided by the user. Available for "passport", "driver_license",
79+
"identity_card" and "internal_passport". The file can be decrypted and verified using
8080
the accompanying EncryptedCredentials.
8181
reverse_side (:class:`PassportFile`, optional): Encrypted file with the reverse side of the
82-
document, provided by the user. Available for driver_license and identity_card.
82+
document, provided by the user. Available for "driver_license" and "identity_card".
8383
The file can be decrypted and verified using the accompanying EncryptedCredentials.
8484
selfie (:class:`PassportFile`, optional): Encrypted file with the selfie of the user
85-
holding a document, provided by the user; available for passport”, “driver_license,
86-
identity_card and internal_passport. The file can be decrypted and verified using
85+
holding a document, provided by the user; available for "passport", "driver_license",
86+
"identity_card" and "internal_passport". The file can be decrypted and verified using
8787
the accompanying EncryptedCredentials.
8888
bot (:class:`telegram.Bot`, optional): The Bot to use for instance methods.
8989
**kwargs (:obj:`dict`): Arbitrary keyword arguments.

telegram/passport/passportelementerrors.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ class PassportElementErrorDataField(PassportElementError):
5252
5353
Attributes:
5454
type (:obj:`str`): The section of the user's Telegram Passport which has the error, one of
55-
personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport,
56-
address
55+
"personal_details", "passport", "driver_license", "identity_card", "internal_passport",
56+
"address"
5757
field_name (:obj:`str`): Name of the data field which has the error
5858
data_hash (:obj:`str`): Base64-encoded data hash
5959
message (:obj:`str`): Error message
6060
6161
Args:
6262
type (:obj:`str`): The section of the user's Telegram Passport which has the error, one of
63-
personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport,
64-
address
63+
"personal_details", "passport", "driver_license", "identity_card", "internal_passport",
64+
"address"
6565
field_name (:obj:`str`): Name of the data field which has the error
6666
data_hash (:obj:`str`): Base64-encoded data hash
6767
message (:obj:`str`): Error message
@@ -90,15 +90,15 @@ class PassportElementErrorFile(PassportElementError):
9090
9191
Attributes:
9292
type (:obj:`str`): The section of the user's Telegram Passport which has the issue, one of
93-
utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration,
94-
temporary_registration
93+
"utility_bill", "bank_statement", "rental_agreement", "passport_registration",
94+
"temporary_registration"
9595
file_hash (:obj:`str`): Base64-encoded file hash
9696
message (:obj:`str`): Error message
9797
9898
Args:
9999
type (:obj:`str`): The section of the user's Telegram Passport which has the issue, one of
100-
utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration,
101-
temporary_registration
100+
"utility_bill", "bank_statement", "rental_agreement", "passport_registration",
101+
"temporary_registration"
102102
file_hash (:obj:`str`): Base64-encoded file hash
103103
message (:obj:`str`): Error message
104104
**kwargs (:obj:`dict`): Arbitrary keyword arguments.
@@ -124,15 +124,15 @@ class PassportElementErrorFiles(PassportElementError):
124124
125125
Attributes:
126126
type (:obj:`str`): The section of the user's Telegram Passport which has the issue, one of
127-
utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration,
128-
temporary_registration
127+
"utility_bill", "bank_statement", "rental_agreement", "passport_registration",
128+
"temporary_registration"
129129
file_hash (:obj:`str`): Base64-encoded data hash
130130
message (:obj:`str`): Error message
131131
132132
Args:
133133
type (:obj:`str`): The section of the user's Telegram Passport which has the issue, one of
134-
utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration,
135-
temporary_registration
134+
"utility_bill", "bank_statement", "rental_agreement", "passport_registration",
135+
"temporary_registration"
136136
file_hashes (List[:obj:`str`]): List of base64-encoded file hashes
137137
message (:obj:`str`): Error message
138138
**kwargs (:obj:`dict`): Arbitrary keyword arguments.
@@ -159,13 +159,13 @@ class PassportElementErrorFrontSide(PassportElementError):
159159
160160
Attributes:
161161
type (:obj:`str`): The section of the user's Telegram Passport which has the issue, one of
162-
passport”, “driver_license”, “identity_card”, “internal_passport
162+
"passport", "driver_license", "identity_card", "internal_passport"
163163
file_hash (:obj:`str`): Base64-encoded hash of the file with the front side of the document
164164
message (:obj:`str`): Error message
165165
166166
Args:
167167
type (:obj:`str`): The section of the user's Telegram Passport which has the issue, one of
168-
passport”, “driver_license”, “identity_card”, “internal_passport
168+
"passport", "driver_license", "identity_card", "internal_passport"
169169
file_hash (:obj:`str`): Base64-encoded hash of the file with the front side of the document
170170
message (:obj:`str`): Error message
171171
**kwargs (:obj:`dict`): Arbitrary keyword arguments.
@@ -191,14 +191,14 @@ class PassportElementErrorReverseSide(PassportElementError):
191191
192192
Attributes:
193193
type (:obj:`str`): The section of the user's Telegram Passport which has the issue, one of
194-
passport”, “driver_license”, “identity_card”, “internal_passport
194+
"passport", "driver_license", "identity_card", "internal_passport"
195195
file_hash (:obj:`str`): Base64-encoded hash of the file with the reverse side of the
196196
document
197197
message (:obj:`str`): Error message
198198
199199
Args:
200200
type (:obj:`str`): The section of the user's Telegram Passport which has the issue, one of
201-
driver_license”, “identity_card
201+
"driver_license", "identity_card"
202202
file_hash (:obj:`str`): Base64-encoded hash of the file with the reverse side of the
203203
document
204204
message (:obj:`str`): Error message
@@ -225,13 +225,13 @@ class PassportElementErrorSelfie(PassportElementError):
225225
226226
Attributes:
227227
type (:obj:`str`): The section of the user's Telegram Passport which has the issue, one of
228-
passport”, “driver_license”, “identity_card”, “internal_passport
228+
"passport", "driver_license", "identity_card", "internal_passport"
229229
file_hash (:obj:`str`): Base64-encoded hash of the file with the selfie
230230
message (:obj:`str`): Error message
231231
232232
Args:
233233
type (:obj:`str`): The section of the user's Telegram Passport which has the issue, one of
234-
passport”, “driver_license”, “identity_card”, “internal_passport
234+
"passport", "driver_license", "identity_card", "internal_passport"
235235
file_hash (:obj:`str`): Base64-encoded hash of the file with the selfie
236236
message (:obj:`str`): Error message
237237
**kwargs (:obj:`dict`): Arbitrary keyword arguments.

0 commit comments

Comments
 (0)