gramjs
gramjs copied to clipboard
Phone baned
I'm using sample from this page https://gram.js.org/#advanced-documentation . After first auth i've copied value from session.save() and past into StringSession(""); But after few runs i got ban (RPCError: 400: PHONE_NUMBER_BANNED (caused by auth.SendCode)). Also same result when changed StringSession to StoreSession("folder_name"). Telegram has banned my five phone numbers. What i'm doing wrong?
it happens randomly by telegram. email them for unban
First of all write Telegram Support and tell them to unban
Then always make sure these client options are set
const client_options = {
systemLanguage: "en",
systemVersion: "Windows 15",
deviceType: "Desktop",
appVersion: "2.7.1",
}
Put them here
const client = new TelegramClient(session, api_id, api_hash, client_options)