td icon indicating copy to clipboard operation
td copied to clipboard

How do I use the test DC to test auth flow?

Open comerc opened this issue 7 months ago • 3 comments

Repeat ? Ver 1.8.47

Does not work (useTestDc as True). I used 9996625555 as phone number and sent 22222 as code.

Dump:

state.CodeInfo: &{
	meta:{Type: Extra: ClientId:0} 
	PhoneNumber:9996625555 
	Type:&{
		meta:{Type:authenticationCodeTypeSms Extra: ClientId:0} 
		Length:5
	} 
	NextType:<nil> 
	Timeout:0
}

comerc avatar Jun 13 '25 09:06 comerc

You need to use a real phone number to log in. The test phone numbers don't work anymore for regular users.

levlam avatar Jun 14 '25 20:06 levlam

I tried with my real phone number instead of the test one, but I am not receiving the confirmation code by sms. Do I need to take an additional step to trigger code delivery? or is the code predefined?

daler445 avatar Aug 25 '25 14:08 daler445

You need to create the account using an official mobile app first.

levlam avatar Aug 25 '25 16:08 levlam