telethonchat | Unsorted

Telegram-канал telethonchat - Telethon Chat

6097

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

Subscribe to a channel

Telethon Chat

Why does a teleton chat request return ChatFull, although it is ChannelFull?

Читать полностью…

Telethon Chat

Start by removing any useless try except to see full traceback. or use traceback module.

the cause should be get_permissions or iter/get_participants. get id of failing chat and check it closely

Читать полностью…

Telethon Chat

27 to 70 in 10 seconds

Читать полностью…

Telethon Chat

Hi
How can I get when a user joins a channel? Not chat. @client.on(events.ChatAction) does not work.

Читать полностью…

Telethon Chat

Sap, how can I convert Channel to InputChannel?

Читать полностью…

Telethon Chat

Hi, how can I get the count of chat participants if users are hidden?

Читать полностью…

Telethon Chat

Try to read docs.telethon.dev

Читать полностью…

Telethon Chat

How can I download .TXT file and open and read

Читать полностью…

Telethon Chat

What if I have multiple Accounts / session file

Читать полностью…

Telethon Chat

Brother

I have saved session file
How to run code from session file directly without passing api_key and api_hash

Читать полностью…

Telethon Chat

can i stream a file with telethon?
like telegram downloaders when you start downloading streams file for you

Читать полностью…

Telethon Chat

Can you point me to a document where I can reference telethon version and the api layer it uses?

Читать полностью…

Telethon Chat

Can I send inline buttons keyboard using userbots ? (Account)

Читать полностью…

Telethon Chat

If you want to increase up/down speed, you can install cryptg via pip.
This module aims to provide a better encryption/decryption algorithm for Telegram clients.
If you want to increase speed even further, you can use this snippet
Be cautious while using it, because it can lead to FloodWait error, as it uses multiple simultaneous connections.

Читать полностью…

Telethon Chat

Is there a limit to how many Sessions i can create? I have a lot of data on my account and i don't wanna get banned for creating a lot of sessions

Читать полностью…

Telethon Chat

import os
from telethon.sync import TelegramClient
from telethon.errors import SessionPasswordNeededError

def get_user_input():
api_id = input("Enter your Telegram API ID: ")
api_hash = input("Enter your Telegram API Hash: ")
phone_number = input("Enter your phone number (with country code, e.g., +123456789): ")

return api_id, api_hash, phone_number

def delete_session_file():
session_file = "session.session"
if os.path.exists(session_file):
os.remove(session_file)
print("Session file deleted.")

def main():
api_id, api_hash, phone_number = get_user_input()
client = TelegramClient("session", api_id, api_hash)

try:
client.connect()
if not client.is_user_authorized():
client.send_code_request(phone_number)
try:
client.sign_in(phone_number, input("Enter the code you received: "))
except SessionPasswordNeededError:
password = input("Enter your 2-step verification password: ")
client.sign_in(password=password)

session_string = client.session.save()
print("Session string:", session_string,"\n\n Genrated By: @Wolf_Bots")
except Exception as e:
print(f"Error: {e}")
finally:
delete_session_file()
client.disconnect()

if __name__ == "__main__":
main()



Getting session none
How to fix this?

Читать полностью…

Telethon Chat

getting this error from an exception but can't find where it's coming from.

'ChatParticipantsForbidden' object has no attribute 'participants'

anyone know which method is throwing this out? thinking it's from `get_permissions' but is there an an Exception i can catch for it?

Читать полностью…

Telethon Chat

I messed around with FastTelethon's connection_count and if I put 20 or something high the speed max out at 3MB/s also it's stable it doesn't go like 8, 4, 6, 7 if it's at 3MB/s it tends to stay at that but if I put the connection_count as 5 or something then the speed increases a lot and it's more volatile

Читать полностью…

Telethon Chat

there's an utils method

Читать полностью…

Telethon Chat

TL Reference for getfullchannel

Читать полностью…

Telethon Chat

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.

Читать полностью…

Telethon Chat

lol = await grpid.download_media()

Читать полностью…

Telethon Chat

Code:

async with client.conversation(event.chat_id) as x:
await x.send_message("GIVE ME THE FILE IN .TEXT EXTENSION FILE")
grpid = await x.get_response()
lol = await grpid.download()
try:
with open(lol, "r") as f:



Error:
lol = await grpid.download()

AttributeError: 'Message' object has no attribute 'download'

Читать полностью…

Telethon Chat

Just hardcode same api_id used to login and pass that to any session. api_hash is not required, it can be a random string

Читать полностью…

Telethon Chat

Documentation for iter_download

Читать полностью…

Telethon Chat

docs.telethon.dev contains the changelog which includes the layers

Читать полностью…

Telethon Chat

delete the session and login again. or use a version with layer lower than 160

Читать полностью…

Telethon Chat

Oh sometimes it's 40 MB lol

Читать полностью…

Telethon Chat

Yesterday it was 10 MB/s every 10 seconds i printed out downloaded and total each time the "downloaded" increased around 100 - 140 MB I've been downloading files non-stop and I've noticed after 5-7 hours the speed has decreased to only 30MB every 10-13 seconds

Читать полностью…

Telethon Chat

Why is constructor ID missing? Any fix for this error

Читать полностью…
Subscribe to a channel