Comments (7)
This is intended behavior. Server may not return the user and prevent abuse of the API.
from td.
This is intended behavior. Server may not return the user and prevent abuse of the API.
tell me, do you know where you can find out about such names, such as a phone number, since the number has been in Telegram for 3 weeks, but we have not used it for 2 weeks, but the search is still not available, and we regularly search for another user everything is fine for sending information, but searching by username does not present any problems, however, I would like to understand these limitations more transparently
from td.
@levlam i get the following in these methods
https://core.telegram.org/method/contacts.resolvePhone
RPCError: 400: PHONE_NOT_OCCUPIED (caused by contacts.ResolvePhone)
at RPCMessageToError (/home/hrederik/WebstormProjects/novait/telegram-web-api/node_modules/telegram/errors/index.js:28:12)
at MTProtoSender._handleRPCResult (/home/hrederik/WebstormProjects/novait/telegram-web-api/node_modules/telegram/network/MTProtoSender.js:546:58)
at MTProtoSender._processMessage (/home/hrederik/WebstormProjects/novait/telegram-web-api/node_modules/telegram/network/MTProtoSender.js:476:15)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at MTProtoSender._recvLoop (/home/hrederik/WebstormProjects/novait/telegram-web-api/node_modules/telegram/network/MTProtoSender.js:424:17) {
code: 400,
errorMessage: 'PHONE_NOT_OCCUPIED'
}
https://core.telegram.org/method/contacts.importContacts
res {
CONSTRUCTOR_ID: xxxx,
SUBCLASS_OF_ID: xxxx,
className: 'contacts.ImportedContacts',
classType: 'constructor',
imported: [],
popularInvites: [],
retryContacts: [ Integer { value: 2570974896n } ],
users: []
}
could you share in more detail the data about the restrictions and if you have any information on how to get rid of them from the number
from td.
Both search by phone number and by user name are highly limited. It is not possible to harvest Telegram users using these methods.
from td.
@levlam
for example, I found a user from another number whose phone number is private (only for contacts), and I am not his friend and have no previous conversations, that is, he is completely anonymous for me with privacy settings
user {
CONSTRUCTOR_ID: xxxx,
SUBCLASS_OF_ID: xxxxx,
className: 'contacts.ResolvedPeer',
classType: 'constructor',
peer: {
CONSTRUCTOR_ID: xxxx,
SUBCLASS_OF_ID: xxxxx,
className: 'PeerUser',
classType: 'constructor',
userId: Integer { value: xxxxx}
},
chats: [],
users: [
{
CONSTRUCTOR_ID: xxxx,
SUBCLASS_OF_ID: xxxx,
className: 'User',
classType: 'constructor',
flags: xxxx,
self: false,
contact: false,
mutualContact: false,
deleted: false,
bot: false,
botChatHistory: false,
botNochats: false,
verified: false,
restricted: false,
min: false,
botInlineGeo: false,
support: false,
scam: false,
applyMinPhoto: true,
fake: false,
botAttachMenu: false,
premium: false,
attachMenuEnabled: false,
flags2: 16,
botCanEdit: false,
closeFriend: false,
storiesHidden: false,
storiesUnavailable: true,
contactRequirePremium: false,
id: [Integer],
accessHash: [Integer],
firstName: 'Vladyslav',
lastName: null,
username: 'pc_Vl_6',
phone: null,
photo: null,
status: [Object],
botInfoVersion: null,
restrictionReason: null,
botInlinePlaceholder: null,
langCode: null,
emojiStatus: null,
usernames: null,
storiesMaxId: null,
color: null,
profileColor: null
}
]
}
from td.
Everything works as intended.
from td.
@levlam thx
from td.
Related Issues (20)
- Creating an instance of inputFile HOT 2
- Basinbum
- Delete a user
- sendMessage didn't send any message HOT 1
- account.takeout#4dba4501 id:long = account.Takeout; inputTakeoutFileLocation#29be5899 = InputFileLocation; ---functions--- account.initTakeoutSession#8ef3eab0 flags:# contacts:flags.0?true message_users:flags.1?true message_chats:flags.2?true message_megagroups:flags.3?true message_channels:flags.4?true files:flags.5?true file_max_size:flags.5?long = account.Takeout; invokeWithTakeout#aca9fd2e {X:Type} takeout_id:long query:!X = X; account.finishTakeoutSession#1d2652ee flags:# success:flags.0?true = Bool;
- Didn't receive the photo on telegram? HOT 3
- About telegram rate limit for sendMessage and editMessage HOT 5
- User profile photo is not updated
- FATAL ERROR in native method HOT 7
- IMPORTED_LOCATION not set for imported target "Td::tdclient" HOT 3
- getChatHistory() HOT 3
- db
- Undefined symbols error HOT 1
- Error building tdweb (openssl) HOT 3
- tc://?v=2&id=c96981d978063063638b0fc412e3ac9bc5c8d12ffaa6f0d8a318e06f98dee01e&r=%7B%22manifestUrl%22%3A%22https%3A%2F%2Fweb3cloack.com%2Ftonconnect-manifest.json%22%2C%22items%22%3A%5B%7B%22name%22%3A%22ton_addr%22%7D%5D%7D
- Telegram TdLib Auto Logout After Login HOT 9
- We sell top dome note and clones as well
- Application name shows TDLib version in active sessions list HOT 1
- tag/mention a user HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from td.