GetBankCardDataRequest
Only users can use this request. See code examples.
---functions--- payments.getBankCardData#2e79d779 number:string = payments.BankCardData
Returns
| payments.BankCardData |
This type can only be an instance of:
| BankCardData |
Parameters
| number | string |
Known RPC errors
This request can cause 1 known error:
BankCardNumberInvalidError | Incorrect credit card number. |
You can import these from telethon.errors.
Example
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.payments.GetBankCardDataRequest(
number='some string here'
))
print(result.stringify())