td icon indicating copy to clipboard operation
td copied to clipboard

"searchUserByPhoneNumber" Method Returns 404 on Production Server

Open masoodgharahi opened this issue 1 year ago • 3 comments

I'm using TDLib in a .NET application. On my local machine, the searchUserByPhoneNumber method works as expected and successfully finds the user. However, when deployed to the production server, the same method returns a 404 error.

Has anyone encountered this issue? Does the Telegram API have any rate limits or restrictions that might cause this behavior?

masoodgharahi avatar Aug 14 '24 06:08 masoodgharahi

This is intended behavior. Server may not return the user if it isn't in your contact list.

levlam avatar Aug 14 '24 08:08 levlam

@levlam Thanks. you mean it may vary from devices or phone numbers? because as I said it works and returns data on my local machine..

masoodgharahi avatar Aug 17 '24 11:08 masoodgharahi

It definitely can.

levlam avatar Aug 17 '24 15:08 levlam