RequestFirebaseSmsRequest
Both users and bots may be able to use this request. See code examples.
---functions--- auth.requestFirebaseSms#8e39261e flags:# phone_number:string phone_code_hash:string safety_net_token:flags.0?string play_integrity_token:flags.2?string ios_push_secret:flags.1?string = Bool
Returns
Bool |
This type has no instances available.
Parameters
phone_number | string | |
phone_code_hash | string | |
safety_net_token | string | This argument defaults to None and can be omitted. |
play_integrity_token | string | This argument defaults to None and can be omitted. |
ios_push_secret | string | This argument defaults to None and can be omitted. |
Known RPC errors
This request can't cause any RPC error as far as we know.
Example
from telethon.sync import TelegramClient from telethon import functions, types with TelegramClient(name, api_id, api_hash) as client: result = client(functions.auth.RequestFirebaseSmsRequest( phone_number='some string here', phone_code_hash='some string here', safety_net_token='some string here', play_integrity_token='some string here', ios_push_secret='some string here' )) print(result)