gramjs icon indicating copy to clipboard operation
gramjs copied to clipboard

Phone baned

Open misterx opened this issue 2 years ago • 3 comments

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?

misterx avatar Feb 28 '22 23:02 misterx

it happens randomly by telegram. email them for unban

painor avatar Mar 02 '22 18:03 painor

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)

ghost avatar May 08 '22 14:05 ghost