python-telegram-bot/telegram/passport
Jasmin Bom 09bdb88822
Bot api 4.1 (#1198)
* Fix passport decryption failing at random times

Sometimes a decrypted secret was being treated as b64 and therefore got decoded even further. Fix by decoding b64 right before call to decrypt so we have better control of when not to do it

* Bot api 4.1

Telegram passport 1.1
Added support for middle names.
Added support for translations for documents
Add errors for translations for documents
Added support for requesting names in the language of the user's country of residence
Replaced the payload parameter with the new parameter nonce

NOTE: Scope stuff is NOT implemented, as we wanna STRONGLY encourage users to use the telegram provided SDKs anyway (and not generate telegram auth links in their bot, but rather on a server)

* Minor fixes

* Add hash to EncryptedPassportElement

For use with PassportElementErrorUnspecified apparently
2018-09-01 16:58:08 +02:00
..
__init__.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
credentials.py Bot api 4.1 (#1198) 2018-09-01 16:58:08 +02:00
data.py Bot api 4.1 (#1198) 2018-09-01 16:58:08 +02:00
encryptedpassportelement.py Bot api 4.1 (#1198) 2018-09-01 16:58:08 +02:00
passportdata.py Bot API 4.0 (#1168) 2018-08-29 14:18:58 +02:00
passportelementerrors.py Bot api 4.1 (#1198) 2018-09-01 16:58:08 +02:00
passportfile.py Bot api 4.1 (#1198) 2018-09-01 16:58:08 +02:00