raveen2k3 / ZeroTwo

A Telegram Group Management Bot made In pyrogram , contributors Welcomed
5 stars 3 forks source link

TypeError: int() argument #3

Open mhmdrzkii opened 2 years ago

mhmdrzkii commented 2 years ago

sir i tried it and

Traceback (most recent call last): File "c:\Users\rizkirdp\ZeroTwo\zerotwo.py", line 10, in import configs File "c:\Users\rizkirdp\ZeroTwo\configs.py", line 9, in API_ID = int(os.getenv("13937340")) TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

how to fix?

raveen2k3 commented 2 years ago

Will try to fix it tmrw :-)

mhmdrzkii commented 2 years ago

thank you sir, i'm waiting for that goodluck

mhmdrzkii commented 2 years ago

and some filters also seem to have errors for some reason, like

/ban 'NoneType' object has no attribute 'message_id'

/promote 'NoneType' object has no attribute 'message_id'

rozari0 commented 2 years ago

@mhmdrzkii message_id became id. Replace it.

mhmdrzkii commented 2 years ago

@rozari0 how about,

Traceback (most recent call last): File "c:\Users\rizkirdp\ZeroTwo\zerotwo.py", line 10, in import configs File "c:\Users\rizkirdp\ZeroTwo\configs.py", line 9, in API_ID = int(os.getenv("13937340")) TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

mhmdrzkii commented 2 years ago

i use in vscode

rozari0 commented 2 years ago

@mhmdrzkii API_ID = 13937340

mhmdrzkii commented 2 years ago

same,

raise AttributeError("No API Key found. More info: https://docs.pyrogram.org/intro/setup")
AttributeError: No API Key found. More info: https://docs.pyrogram.org/intro/setup
PS C:\Users\rizkirdp\ZeroTwo>
mhmdrzkii commented 2 years ago

i think it's right

API_ID = 13937340
API_HASH = os.getenv("823650e1894861c0d812c0bxxxx")
BOT_TOKEN = os.getenv("55694xxxx"
rozari0 commented 2 years ago

@mhmdrzkii Remove os.getenv(blahblahblah)

Just declare variable with value.

TAMILVIP007 commented 2 years ago

@STBxD Nou

TAMILVIP007 commented 2 years ago

@TAMILVIP007 Stfu

TAMILVIP007 commented 2 years ago

@TAMILVIP007 Fu

TAMILVIP007 commented 2 years ago

@TAMILVIP007 Mf

TAMILVIP007 commented 2 years ago

@TAMILVIP007 Gay

TAMILVIP007 commented 2 years ago

@TAMILVIP007 Shit

TAMILVIP007 commented 2 years ago

@TAMILVIP007 Slut

TAMILVIP007 commented 2 years ago

@TAMILVIP007 .

TAMILVIP007 commented 2 years ago

@TAMILVIP007 .

TAMILVIP007 commented 2 years ago

@TAMILVIP007 .

TAMILVIP007 commented 2 years ago

@TAMILVIP007 .

TAMILVIP007 commented 2 years ago

@TAMILVIP007 .

TAMILVIP007 commented 2 years ago

@TAMILVIP007 .

TAMILVIP007 commented 2 years ago

@TAMILVIP007 .