Official Telethon's chat! Rules: • Speak English • Stay on topic (questions about Telethon) • Be respectful • Don't ask to ask • Spam-related uses lead to ban • Read https://docs.telethon.dev before asking things here Read more about us @TelethonUpdates
try harder, you'll see a SentCode() object printed when the code isn't wrong
Читать полностью…I mean, I want to know if a phone number is linked to the email address shown in the picture
Читать полностью…sent_code_info = await client.send_code_request(...)
Читать полностью…Can someone help me know if a number is linked to an email or not when requesting a code?
Читать полностью…does telethon pass deivelmodel sys ver and app ver everytime i start my client or connect? (userbot)
Читать полностью…Why is there an error when parsing groups it does not show user username?
Читать полностью…module 'telethon.tl.types.account' has no attribute 'SentEmailCodePurposeLoginSetup'
Читать полностью…what import is this using? because it always gives error
[x] Error sending verification code: module 'telethon.tl.types.account' has no attribute 'SentEmailCodePurposeLoginSetup'
can I work with 10k+ accounts in one script and disable the necessary clients without any problems?
Читать полностью…Hi and welcome to the group. Before asking any questions, please read the rules from the group's description, and don't forget to read the docs. Make sure you are using the latest version with pip3 install -U telethon
, since most problems have already been fixed in newer versions.
That's not a vulnerability. You can't chat with the user without joining to the secret chat. So that's a must in secret chats. If you be online in Telegram, it will immediately join, if you be online but in other apps, it will take 3-4 seconds to join, and if you be offline it will take about 10 seconds to join the chat.
Читать полностью…If yes, then it's another vulnerability of Telegram
Читать полностью…You tried it wrong. that's the only place you'll know where the code went.
GetSecureValue you're doing is wrong, you aren't passing required arguments to it too and its always going to error to except:
my code
from telethon.tl.types import SecureValueTypeEmailЧитать полностью…
async def process_phone_number(phone_number: str):
client = TelegramClient(StringSession(), api_id, api_hash)
status_message = ""
try:
await client.connect()
await client.send_code_request(phone_number)
try:
secure_values = await client(GetSecureValueRequest())
email_status = "Verified Email" if any(isinstance(value.type, SecureValueTypeEmail) for value in secure_values) else "Not Linked to Email"
except Exception:
email_status = "Not Linked to Email"
if email_status == "Verified Email":
status_message = f"Number: {phone_number}\nStatus: NOT WORKING (Email Linked) ❌"
else:
status_message = f"Number: {phone_number}\nStatus: Working ✅"
except PhoneNumberBannedError:
status_message = f"Number: {phone_number}\nStatus: Banned ❌"
except FloodWaitError as e:
status_message = f"Number: {phone_number}\nStatus: Flood Error (Wait {e.seconds} seconds) ❌"
except SessionPasswordNeededError:
status_message = f"Number: {phone_number}\nStatus: Two-step verification required ❌"
except Exception as e:
status_message = f"An error occurred:\n\n{e}"
finally:
await client.disconnect()
return status_message
We don't have such type. Look at the referenced link carefully
Читать полностью…It's given example, take a look at the link. Also make sure of using the latest version of telethon
Читать полностью…can anyone tell me why after i generate a mtproto authorization key successfully,
if i send a tl request or ping request or any other request using that auth_key and auth_key_id, server always returns
b'\x01l\xfe\xff\xff'
be more specific, what's wrong with those two ways to want another
Читать полностью…How can I stop secret chats revealing my online status by automatically joining the secret chat?
Читать полностью…What proxy is best to use with Telethon ?
Socks or MTProto proxies ?