tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

"searchUserByPhoneNumber" Method Returns 404 on Production Server #3023

Closed MasoodGharahi closed 1 week ago

MasoodGharahi commented 2 months ago

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?

levlam commented 2 months ago

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

MasoodGharahi commented 2 months ago

@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..

levlam commented 2 months ago

It definitely can.